From: Linus Torvalds Date: Mon, 28 Aug 2023 18:43:19 +0000 (-0700) Subject: Merge tag 'v6.6-fs.proc.uapi' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b4a04f92a4fd029f4a4cd7a47583f3f1bb562cd4;p=linux.git Merge tag 'v6.6-fs.proc.uapi' of git://git./linux/kernel/git/vfs/vfs Pull procfs fixes from Christian Brauner: "Mode changes to files under /proc// aren't supported ever since commit 6d76fa58b050 ("Don't allow chmod() on the /proc// files"). Due to an oversight in commit 1b3044e39a89 ("procfs: fix pthread cross-thread naming if !PR_DUMPABLE") in switching from REG to NOD, mode changes on /proc/thread-self/comm were accidently allowed. Similar, mode changes for all files beneath /proc//net/ are blocked but mode changes on /proc//net itself were accidently allowed. Both issues come down to not using the generic proc_setattr() helper which blocks all mode changes. This is rectified with this pull request. This also removes a strange nolibc test that abused /proc//net for testing mode changes. Using procfs for this test never made a lot of sense given procfs has special semantics for almost everything anway. Both changes are minor user-visible changes. It is however very unlikely that mode changes on proc//net and /proc/thread-self/comm are something that userspace relies on" * tag 'v6.6-fs.proc.uapi' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs: procfs: block chmod on /proc/thread-self/comm proc: use generic setattr() for /proc/$PID/net selftests/nolibc: drop test chmod_net --- b4a04f92a4fd029f4a4cd7a47583f3f1bb562cd4