diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-07-22 13:56:28 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-07-22 14:05:15 +0200 |
| commit | 927b89700e9fdba61902f8828dbf9b5f29f40ea7 (patch) | |
| tree | 9cf5cf7cf59dc2469fbd8c1c98a322e730fb3fe6 /rust/zerocopy-derive/git@git.tavy.me:linux.git | |
| parent | 172ed6c2b676447a1ae39a001d24c955084c458a (diff) | |
pidfs: add pidfs_dentry_open() helper
Both pidfs_alloc_file() and pidfs_export_open() need to force O_RDWR
and reapply the pidfd flags that do_dentry_open() strips. Move the
common logic into a helper.
PIDFD_AUTOKILL is now part of the restore mask in the file handle path
as well, but pidfs_export_permission() rejects O_TRUNC, so this is a
no-op there. But warn nonetheless.
Link: https://patch.msgid.link/20260722-esszimmer-umsetzen-nennt-ed5fc604300a@brauner
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'rust/zerocopy-derive/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
