> >Also in https://btrfs.wiki.kernel.org/index.php/Mount_options > >"user_subvol_rm_allowed (...) Use with caution." > > > >Why? What is the problem? > > Because with the mount option any user can delete any subvolume, > including root one (subvol_id=5)
Apologies, it works somewhat different: filesystem doesn't allow to delete subvolume with id 5 and POSIX access is checked before deleting subvolume with user_subvol_rm_allowed mount option. From btrfs-progs cmds-subvolume.c: res = ioctl(fd, BTRFS_IOC_SNAP_DESTROY, &args); if(res < 0 ){ error("cannot delete '%s/%s': %s", dname, vname, strerror(errno)); -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html