pidfs: support xattrs on pidfds
authorChristian Brauner <brauner@kernel.org>
Wed, 18 Jun 2025 20:53:46 +0000 (22:53 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 23 Jun 2025 10:21:37 +0000 (12:21 +0200)
commit91d837cae3c7856cdca23dc6e8ec8954d887e970
tree90ac60dc733a8e44a6eaa65ea2ee7a54ef7290f5
parentf769b3db24fa9ef48abcb515c50de1abeeaa0281
pidfs: support xattrs on pidfds

Now that we have a way to persist information for pidfs dentries we can
start supporting extended attributes on pidfds. This will allow
userspace to attach meta information to tasks.

One natural extension would be to introduce a custom pidfs.* extended
attribute space and allow for the inheritance of extended attributes
across fork() and exec().

The first simple scheme will allow privileged userspace to set trusted
extended attributes on pidfs inodes.

Link: https://lore.kernel.org/20250618-work-pidfs-persistent-v2-12-98f3456fd552@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/pidfs.c