Merge tag 'i2c-for-6.4-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / kernel / seccomp.c
index cebf26445f9e7cdcb4ea3669fbbb55591c3d33a7..d3e584065c7f748e734554ae6dfca090b061a7f4 100644 (file)
@@ -2368,12 +2368,6 @@ static int seccomp_actions_logged_handler(struct ctl_table *ro_table, int write,
        return ret;
 }
 
-static struct ctl_path seccomp_sysctl_path[] = {
-       { .procname = "kernel", },
-       { .procname = "seccomp", },
-       { }
-};
-
 static struct ctl_table seccomp_sysctl_table[] = {
        {
                .procname       = "actions_avail",
@@ -2392,14 +2386,7 @@ static struct ctl_table seccomp_sysctl_table[] = {
 
 static int __init seccomp_sysctl_init(void)
 {
-       struct ctl_table_header *hdr;
-
-       hdr = register_sysctl_paths(seccomp_sysctl_path, seccomp_sysctl_table);
-       if (!hdr)
-               pr_warn("sysctl registration failed\n");
-       else
-               kmemleak_not_leak(hdr);
-
+       register_sysctl_init("kernel/seccomp", seccomp_sysctl_table);
        return 0;
 }