diff --git a/kernel/seccomp.c b/kernel/seccomp.c index e25cbd47bf02ea81c4f1010dbd7a62baa7fa2c55..3e0f0e6e5527236abf12b7232dc9e47a1093121a 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -2205,7 +2205,7 @@ static bool seccomp_actions_logged_from_names(u32 *actions_logged, char *names) return true; } -static int read_actions_logged(struct ctl_table *ro_table, void __user *buffer, +static int read_actions_logged(struct ctl_table *ro_table, void *buffer, size_t *lenp, loff_t *ppos) { char names[sizeof(seccomp_actions_avail)]; @@ -2223,7 +2223,7 @@ static int read_actions_logged(struct ctl_table *ro_table, void __user *buffer, return proc_dostring(&table, 0, buffer, lenp, ppos); } -static int write_actions_logged(struct ctl_table *ro_table, void __user *buffer, +static int write_actions_logged(struct ctl_table *ro_table, void *buffer, size_t *lenp, loff_t *ppos, u32 *actions_logged) { char names[sizeof(seccomp_actions_avail)];