On 2023-07-13, Willy Tarreau w@1wt.eu wrote:
+Cc Thomas Weißschuh thomas@t-8ch.de as this seems quite related to his finding about /proc/self/net:
https://lore.kernel.org/lkml/20230624-proc-net-setattr-v1-0-73176812adee@wei...
Yeah I saw this patch and (along with an earlier discussion with Christian on the topic of chmod on symlinks -- see [1]) lead us to find that there were three other cases where this happens unintentionally:
* /proc/self (on the symlink itself) * /proc/thread-self (on the symlink itself) * /proc/thread-self/comm
The first two will be fixed by [1] so fixing them isn't necessary.
[1]: https://lore.kernel.org/linux-fsdevel/20230712-vfs-chmod-symlinks-v2-1-08cfb...