DragonFly bugs List (threaded) for 2009-05
DragonFly BSD
DragonFly bugs List (threaded) for 2009-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Unlinking objects in a directory with sticky bit set


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Sat, 2 May 2009 14:19:22 +0900

Hi.
On HAMMER filesystem, you can remove an object you do not own even
when the directory containing it has sticky bit set:

$ su
# mkdir -m1777 test
# touch test/FOO
# ls -al test
total 0
drwxrwxrwt  1 root  wheel  0 May  2 14:17 .
drwxrwxrwt  1 root  wheel  0 May  2 14:16 ..
-rw-r--r--  1 root  wheel  0 May  2 14:17 FOO
# exit
$ rm -f test/FOO
$ ls -al test
total 0
drwxrwxrwt  1 root  wheel  0 May  2 14:18 .
drwxrwxrwt  1 root  wheel  0 May  2 14:16 ..

This is not the case on an UFS filesystem.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]