Commit fccbe38
statmount: permission check should return EPERM
Currently, statmount() returns ENOENT when caller is not CAP_SYS_ADMIN
in the user namespace owner of target mount namespace. This should be
EPERM instead.
Suggested-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Link: https://patch.msgid.link/20251129091455.757724-2-b.sachdev1904@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 8f0b4cc commit fccbe38
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5780 | 5780 | | |
5781 | 5781 | | |
5782 | 5782 | | |
5783 | | - | |
| 5783 | + | |
5784 | 5784 | | |
5785 | 5785 | | |
5786 | 5786 | | |
| |||
0 commit comments