diff options
| author | Sage Weil <[email protected]> | 2010-10-29 19:46:43 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2010-10-30 01:42:10 +0000 |
| commit | 4260f7c7516f4c209cf0ca34fda99cc9a0847772 (patch) | |
| tree | 7feb5ab81d074b17a7c5b12bcc019c2e1bb010e2 /net/ipv4/tcp_output.c | |
| parent | Btrfs: make SNAP_DESTROY async (diff) | |
| download | kernel-4260f7c7516f4c209cf0ca34fda99cc9a0847772.tar.gz kernel-4260f7c7516f4c209cf0ca34fda99cc9a0847772.zip | |
Btrfs: allow subvol deletion by unprivileged user with -o user_subvol_rm_allowed
Add a mount option user_subvol_rm_allowed that allows users to delete a
(potentially non-empty!) subvol when they would otherwise we allowed to do
an rmdir(2). We duplicate the may_delete() checks from the core VFS code
to implement identical security checks (minus the directory size check).
We additionally require that the user has write+exec permission on the
subvol root inode.
Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
