diff options
author | Thomas Weißschuh <[email protected]> | 2023-06-24 12:30:47 +0200 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2023-07-13 13:55:14 +0200 |
commit | 18e66ae67673f2c8df6f02428798b1355691f2a9 (patch) | |
tree | 5668c734f28765abf262dca0cc75b24ac9581505 /tools/perf/scripts | |
parent | 49319832de90f1943264e5c573b072947af6ae26 (diff) |
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: e9720acd728a ("[NET]: Make /proc/net a symlink on /proc/self/net (v3)")
Signed-off-by: Thomas Weißschuh <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/
Fixes: b4844fa0bdb4 ("selftests/nolibc: implement a few tests for various syscalls")
Tested-by: Zhangjin Wu <[email protected]>
Signed-off-by: Willy Tarreau <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions