{ }
#endif /* CONFIG_SECURITY */
-#if CONFIG_SECURITY_YAMA
+#ifdef CONFIG_SECURITY_YAMA
extern int yama_ptrace_access_check(struct task_struct *child,
unsigned int mode);
extern int yama_path_link(struct dentry *old_dentry, struct path *new_dir,
unsigned long arg4, unsigned long arg5);
#else
static inline int yama_ptrace_access_check(struct task_struct *child,
- unsigned int mode);
+ unsigned int mode)
{
return 0;
}
static inline int yama_path_link(struct dentry *old_dentry,
struct path *new_dir,
- struct dentry *new_dentry);
+ struct dentry *new_dentry)
{
return 0;
}
static inline int yama_inode_follow_link(struct dentry *dentry,
- struct nameidata *nameidata);
+ struct nameidata *nameidata)
{
return 0;
}
-static inline void yama_task_free(struct task_struct *task);
+static inline void yama_task_free(struct task_struct *task)
{
}