Discussion:
ZFS allows deletion of files in a sticky directory
(too old to reply)
Alexander Zagrebin
2010-02-19 23:23:28 UTC
Permalink
I have found that directory entry may be deleted from a ZFS directory
with the sticky bit, if "the entry is a plain file and you have write
access"
(this is citation from a comments in zfs_dir.c)
But this behavior isn't described in the sticky(8) and isn't allowed on a
UFS.
The attached patch provides the UFS-like behavior of a sticky directories on
a ZFS.
Is this bug or feature?
--
Alexander Zagrebin
jhell
2010-03-14 01:40:57 UTC
Permalink
Post by Alexander Zagrebin
I have found that directory entry may be deleted from a ZFS directory
with the sticky bit, if "the entry is a plain file and you have write
access"
(this is citation from a comments in zfs_dir.c)
But this behavior isn't described in the sticky(8) and isn't allowed on a
UFS.
The attached patch provides the UFS-like behavior of a sticky directories on
a ZFS.
Is this bug or feature?
Perhaps you have removed a directory on a share that is managed through
Samba and somehow you have had a ACL entry that allowed you to remove that
directory ?.

This patch is unsuitable for implementation. It effectively removes ACL
access for determining writes to a object that you have ACL write access
to.

Regards,
--
jhell
Loading...