projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86-64: Emulate legacy vsyscalls
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
include
/
linux
/
seccomp.h
diff --git
a/include/linux/seccomp.h
b/include/linux/seccomp.h
index
167c333
..
cc7a4e9
100644
(file)
--- a/
include/linux/seccomp.h
+++ b/
include/linux/seccomp.h
@@
-19,6
+19,11
@@
static inline void secure_computing(int this_syscall)
extern long prctl_get_seccomp(void);
extern long prctl_set_seccomp(unsigned long);
extern long prctl_get_seccomp(void);
extern long prctl_set_seccomp(unsigned long);
+static inline int seccomp_mode(seccomp_t *s)
+{
+ return s->mode;
+}
+
#else /* CONFIG_SECCOMP */
#include <linux/errno.h>
#else /* CONFIG_SECCOMP */
#include <linux/errno.h>
@@
-37,6
+42,11
@@
static inline long prctl_set_seccomp(unsigned long arg2)
return -EINVAL;
}
return -EINVAL;
}
+static inline int seccomp_mode(seccomp_t *s)
+{
+ return 0;
+}
+
#endif /* CONFIG_SECCOMP */
#endif /* _LINUX_SECCOMP_H */
#endif /* CONFIG_SECCOMP */
#endif /* _LINUX_SECCOMP_H */