diff options
| author | James Morris <james.l.morris@oracle.com> | 2017-11-29 12:48:48 +1100 |
|---|---|---|
| committer | James Morris <james.l.morris@oracle.com> | 2017-11-29 12:48:48 +1100 |
| commit | 26025bf58b9fe3806ce4f92600e96a2c214c0d9c (patch) | |
| tree | e5b9fbb6661848e22324fc70678bbd432bae2688 /include/linux | |
| parent | cf40a76e7d5874bb25f4404eecc58a2e033af885 (diff) | |
| parent | 26500475ac1b499d8636ff281311d633909f5d20 (diff) | |
Merge tag 'seccomp-next' of https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux into next-seccomp
add support for retrieving seccomp filter metadata (Tycho Andersen)
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/seccomp.h | 8 |
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) #if defined(CONFIG_SECCOMP_FILTER) && defined(CONFIG_CHECKPOINT_RESTORE) extern long seccomp_get_filter(struct task_struct *task, unsigned long filter_off, void __user *data); +extern long seccomp_get_metadata(struct task_struct *task, + unsigned long filter_off, void __user *data); #else static inline long seccomp_get_filter(struct task_struct *task, unsigned long n, void __user *data) { return -EINVAL; } +static inline long seccomp_get_metadata(struct task_struct *task, + unsigned long filter_off, + void __user *data) +{ + return -EINVAL; +} #endif /* CONFIG_SECCOMP_FILTER && CONFIG_CHECKPOINT_RESTORE */ #endif /* _LINUX_SECCOMP_H */ |
