Skip to content
Unverified Commit 18e66ae6 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Christian Brauner
Browse files

proc: use generic setattr() for /proc/$PID/net

All other files in /proc/$PID/ use proc_setattr().

Not using it allows the usage of chmod() on /proc/$PID/net, even on
other processes owned by the same user.
The same would probably also be true for other attributes to be changed.

As this technically represents an ABI change it is not marked for
stable so any unlikely regressions are caught during a full release cycle.

Fixes: e9720acd

 ("[NET]: Make /proc/net a symlink on /proc/self/net (v3)")
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/lkml/d0d111ef-edae-4760-83fb-36db84278da1@t-8ch.de/
Fixes: b4844fa0

 ("selftests/nolibc: implement a few tests for various syscalls")
Tested-by: default avatarZhangjin Wu <falcon@tinylab.org>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
Message-Id: <20230624-proc-net-setattr-v1-2-73176812adee@weissschuh.net>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 49319832
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment