projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tree-wide: replace config_enabled() with IS_ENABLED()
[cascardo/linux.git]
/
kernel
/
seccomp.c
diff --git
a/kernel/seccomp.c
b/kernel/seccomp.c
index
54d15eb
..
ef6c6c3
100644
(file)
--- a/
kernel/seccomp.c
+++ b/
kernel/seccomp.c
@@
-347,7
+347,7
@@
static struct seccomp_filter *seccomp_prepare_filter(struct sock_fprog *fprog)
{
struct seccomp_filter *sfilter;
int ret;
{
struct seccomp_filter *sfilter;
int ret;
- const bool save_orig =
config_enabled
(CONFIG_CHECKPOINT_RESTORE);
+ const bool save_orig =
IS_ENABLED
(CONFIG_CHECKPOINT_RESTORE);
if (fprog->len == 0 || fprog->len > BPF_MAXINSNS)
return ERR_PTR(-EINVAL);
if (fprog->len == 0 || fprog->len > BPF_MAXINSNS)
return ERR_PTR(-EINVAL);
@@
-542,7
+542,7
@@
void secure_computing_strict(int this_syscall)
{
int mode = current->seccomp.mode;
{
int mode = current->seccomp.mode;
- if (
config_enabled
(CONFIG_CHECKPOINT_RESTORE) &&
+ if (
IS_ENABLED
(CONFIG_CHECKPOINT_RESTORE) &&
unlikely(current->ptrace & PT_SUSPEND_SECCOMP))
return;
unlikely(current->ptrace & PT_SUSPEND_SECCOMP))
return;
@@
-655,7
+655,7
@@
int __secure_computing(const struct seccomp_data *sd)
int mode = current->seccomp.mode;
int this_syscall;
int mode = current->seccomp.mode;
int this_syscall;
- if (
config_enabled
(CONFIG_CHECKPOINT_RESTORE) &&
+ if (
IS_ENABLED
(CONFIG_CHECKPOINT_RESTORE) &&
unlikely(current->ptrace & PT_SUSPEND_SECCOMP))
return 0;
unlikely(current->ptrace & PT_SUSPEND_SECCOMP))
return 0;