Hi, likely a merge error by patch ... which makes setuid_dumpable appear in /proc/sys/fs/ rather than kernel/. I assume it belongs to kernel as the naming suggests. Patch is against 2.6.16-rc5-git9. From: Kurt Garloff <[email protected]> Subject: suid-dumpable ended up in wrong sysctl dir Diffing in sysctl.c is tricky, using more context is recommended. suid_dumpable ended up in fs/ instead of kernel/ and the reason is likely a patch with too little context. Signed-off-by: Kurt Garloff <[email protected]> Index: linux-2.6.15/kernel/sysctl.c =================================================================== --- linux-2.6.15.orig/kernel/sysctl.c +++ linux-2.6.15/kernel/sysctl.c @@ -647,12 +647,20 @@ static ctl_table kern_table[] = { .data = &randomize_va_space, .maxlen = sizeof(int), .mode = 0644, .proc_handler = &proc_dointvec, }, #endif + { + .ctl_name = KERN_SETUID_DUMPABLE, + .procname = "suid_dumpable", + .data = &suid_dumpable, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = &proc_dointvec, + }, #if defined(CONFIG_S390) && defined(CONFIG_SMP) { .ctl_name = KERN_SPIN_RETRY, .procname = "spin_retry", .data = &spin_retry, .maxlen = sizeof (int), @@ -1032,20 +1040,12 @@ static ctl_table fs_table[] = { .procname = "inotify", .mode = 0555, .child = inotify_table, }, #endif #endif - { - .ctl_name = KERN_SETUID_DUMPABLE, - .procname = "suid_dumpable", - .data = &suid_dumpable, - .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = &proc_dointvec, - }, { .ctl_name = 0 } }; static ctl_table debug_table[] = { { .ctl_name = 0 } }; -- Kurt Garloff, Head Architect Linux, Novell Inc.
Attachment:
pgpwYsxNui7on.pgp
Description: PGP signature
- Follow-Ups:
- Re: [PATCH] KERN_SETUID_DUMPABLE in /proc/sys/fs/
- From: Andrew Morton <[email protected]>
- Re: [PATCH] KERN_SETUID_DUMPABLE in /proc/sys/fs/
- Prev by Date: Re: Revenge of the sysfs maintainer! (was Re: [PATCH 8 of 20] ipath - sysfs support for core driver)
- Next by Date: Re: [openib-general] [PATCH 0 of 20] [RFC] ipath driver - another round for review
- Previous by thread: A lockless pagecache for Linux
- Next by thread: Re: [PATCH] KERN_SETUID_DUMPABLE in /proc/sys/fs/
- Index(es):