aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/seccomp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/seccomp.h')
-rw-r--r--include/linux/seccomp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h
index 10f25f7e4304..c723a5c4e3ff 100644
--- a/include/linux/seccomp.h
+++ b/include/linux/seccomp.h
@@ -95,11 +95,19 @@ static inline void get_seccomp_filter(struct task_struct *tsk)
95#if defined(CONFIG_SECCOMP_FILTER) && defined(CONFIG_CHECKPOINT_RESTORE) 95#if defined(CONFIG_SECCOMP_FILTER) && defined(CONFIG_CHECKPOINT_RESTORE)
96extern long seccomp_get_filter(struct task_struct *task, 96extern long seccomp_get_filter(struct task_struct *task,
97 unsigned long filter_off, void __user *data); 97 unsigned long filter_off, void __user *data);
98extern long seccomp_get_metadata(struct task_struct *task,
99 unsigned long filter_off, void __user *data);
98#else 100#else
99static inline long seccomp_get_filter(struct task_struct *task, 101static inline long seccomp_get_filter(struct task_struct *task,
100 unsigned long n, void __user *data) 102 unsigned long n, void __user *data)
101{ 103{
102 return -EINVAL; 104 return -EINVAL;
103} 105}
106static inline long seccomp_get_metadata(struct task_struct *task,
107 unsigned long filter_off,
108 void __user *data)
109{
110 return -EINVAL;
111}
104#endif /* CONFIG_SECCOMP_FILTER && CONFIG_CHECKPOINT_RESTORE */ 112#endif /* CONFIG_SECCOMP_FILTER && CONFIG_CHECKPOINT_RESTORE */
105#endif /* _LINUX_SECCOMP_H */ 113#endif /* _LINUX_SECCOMP_H */