The patch titled sysctl: check for bogus modes has been added to the -mm tree. Its filename is sysctl-check-for-bogus-modes.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: sysctl: check for bogus modes From: Alexey Dobriyan <adobriyan@xxxxxxxxxxxxx> Catch, e. g., 644/0644 typo. Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxxxxxx> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/sysctl_check.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN kernel/sysctl_check.c~sysctl-check-for-bogus-modes kernel/sysctl_check.c --- a/kernel/sysctl_check.c~sysctl-check-for-bogus-modes +++ a/kernel/sysctl_check.c @@ -1532,6 +1532,8 @@ int sysctl_check_table(struct nsproxy *n sysctl_check_leaf(namespaces, table, &fail); } sysctl_check_bin_path(table, &fail); + if (table->mode > 0777) + set_fail(&fail, table, "bogus .mode"); if (fail) { set_fail(&fail, table, NULL); error = -EINVAL; _ Patches currently in -mm which might be from adobriyan@xxxxxxxxxxxxx are sysctl-check-for-bogus-modes.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html