Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit a3c751a5 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

vfs: allow unprivileged whiteout creation


Whiteouts, unlike real device node should not require privileges to create.

The general concern with device nodes is that opening them can have side
effects.  The kernel already avoids zero major (see
Documentation/admin-guide/devices.txt).  To be on the safe side the patch
explicitly forbids registering a char device with 0/0 number (see
cdev_add()).

This guarantees that a non-O_PATH open on a whiteout will fail with ENODEV;
i.e. it won't have any side effect.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 0e698dfa
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment