From 87a7a9b482ace3b8e913e676dc3e482f190e3951 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Thu, 3 Apr 2014 17:37:29 -0400 Subject: [PATCH] remove unused syscall flag --- include/syscall.h | 15 +++++++-------- syscalls/delete_module.c | 1 - syscalls/fanotify_init.c | 1 - syscalls/finit_module.c | 1 - syscalls/init_module.c | 1 - syscalls/kexec_load.c | 1 - syscalls/lookup_dcookie.c | 1 - syscalls/pivot_root.c | 1 - syscalls/reboot.c | 1 - syscalls/setdomainname.c | 1 - syscalls/sethostname.c | 1 - 11 files changed, 7 insertions(+), 18 deletions(-) diff --git a/include/syscall.h b/include/syscall.h index 2c680b2..67aa3a9 100644 --- a/include/syscall.h +++ b/include/syscall.h @@ -98,13 +98,12 @@ struct syscalltable { struct syscallentry *entry; }; -#define CAPABILITY_CHECK (1<<0) -#define AVOID_SYSCALL (1<<1) -#define NI_SYSCALL (1<<2) -#define BORING (1<<3) -#define ACTIVE (1<<4) -#define NEED_ALARM (1<<5) -#define TO_BE_DEACTIVATED (1<<6) -#define EXTRA_FORK (1<<7) +#define AVOID_SYSCALL (1<<0) +#define NI_SYSCALL (1<<1) +#define BORING (1<<2) +#define ACTIVE (1<<3) +#define NEED_ALARM (1<<4) +#define TO_BE_DEACTIVATED (1<<5) +#define EXTRA_FORK (1<<6) long syscall32(unsigned int call, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4, unsigned long a5, unsigned long a6); diff --git a/syscalls/delete_module.c b/syscalls/delete_module.c index bbd5706..f223f7b 100644 --- a/syscalls/delete_module.c +++ b/syscalls/delete_module.c @@ -9,7 +9,6 @@ struct syscallentry syscall_delete_module = { .name = "delete_module", .num_args = 2, - .flags = CAPABILITY_CHECK, .arg1name = "name_user", .arg1type = ARG_ADDRESS, .arg2name = "flags", diff --git a/syscalls/fanotify_init.c b/syscalls/fanotify_init.c index 4c9b5d2..5117822 100644 --- a/syscalls/fanotify_init.c +++ b/syscalls/fanotify_init.c @@ -24,7 +24,6 @@ struct syscallentry syscall_fanotify_init = { }, }, .arg2name = "event_f_flags", - .flags = CAPABILITY_CHECK, .rettype = RET_FD, .group = GROUP_VFS, }; diff --git a/syscalls/finit_module.c b/syscalls/finit_module.c index 4a931ea..418aadc 100644 --- a/syscalls/finit_module.c +++ b/syscalls/finit_module.c @@ -9,7 +9,6 @@ struct syscallentry syscall_finit_module = { .name = "finit_module", .num_args = 3, - .flags = CAPABILITY_CHECK, .arg1name = "fd", .arg1type = ARG_FD, .arg2name = "uargs", diff --git a/syscalls/init_module.c b/syscalls/init_module.c index 3a2d7cd..1b7f0fa 100644 --- a/syscalls/init_module.c +++ b/syscalls/init_module.c @@ -7,7 +7,6 @@ struct syscallentry syscall_init_module = { .name = "init_module", .num_args = 3, - .flags = CAPABILITY_CHECK, .arg1name = "umod", .arg1type = ARG_ADDRESS, .arg2name = "len", diff --git a/syscalls/kexec_load.c b/syscalls/kexec_load.c index 6567364..bb8dbed 100644 --- a/syscalls/kexec_load.c +++ b/syscalls/kexec_load.c @@ -11,7 +11,6 @@ struct syscallentry syscall_kexec_load = { .name = "kexec_load", .num_args = 4, - .flags = CAPABILITY_CHECK, .arg1name = "entry", .arg1type = ARG_ADDRESS, .arg2name = "nr_segments", diff --git a/syscalls/lookup_dcookie.c b/syscalls/lookup_dcookie.c index 2963280..9cf0406 100644 --- a/syscalls/lookup_dcookie.c +++ b/syscalls/lookup_dcookie.c @@ -6,7 +6,6 @@ struct syscallentry syscall_lookup_dcookie = { .name = "lookup_dcookie", .num_args = 3, - .flags = CAPABILITY_CHECK, .arg1name = "cookie64", .arg2name = "buf", .arg2type = ARG_ADDRESS, diff --git a/syscalls/pivot_root.c b/syscalls/pivot_root.c index 95d3ebf..3a33fcc 100644 --- a/syscalls/pivot_root.c +++ b/syscalls/pivot_root.c @@ -6,7 +6,6 @@ struct syscallentry syscall_pivot_root = { .name = "pivot_root", .num_args = 2, - .flags = CAPABILITY_CHECK, .arg1name = "new_root", .arg1type = ARG_ADDRESS, .arg2name = "put_old", diff --git a/syscalls/reboot.c b/syscalls/reboot.c index b7370d8..edc0a5f 100644 --- a/syscalls/reboot.c +++ b/syscalls/reboot.c @@ -6,7 +6,6 @@ struct syscallentry syscall_reboot = { .name = "reboot", .num_args = 4, - .flags = CAPABILITY_CHECK, .arg1name = "magic1", .arg2name = "magic2", .arg3name = "cmd", diff --git a/syscalls/setdomainname.c b/syscalls/setdomainname.c index 3e51895..0e6bd37 100644 --- a/syscalls/setdomainname.c +++ b/syscalls/setdomainname.c @@ -6,7 +6,6 @@ struct syscallentry syscall_setdomainname = { .name = "setdomainname", .num_args = 2, - .flags = CAPABILITY_CHECK, .arg1name = "name", .arg1type = ARG_ADDRESS, .arg2name = "len", diff --git a/syscalls/sethostname.c b/syscalls/sethostname.c index c0c76b7..c994928 100644 --- a/syscalls/sethostname.c +++ b/syscalls/sethostname.c @@ -6,7 +6,6 @@ struct syscallentry syscall_sethostname = { .name = "sethostname", .num_args = 2, - .flags = CAPABILITY_CHECK, .arg1name = "name", .arg1type = ARG_ADDRESS, .arg2name = "len", -- 2.11.4.GIT