Project

General

Profile

Actions

Bug #1352

closed

Unlinking objects in a directory with sticky bit set

Added by qhwt+dfly over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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

$ su
  1. mkdir -m1777 test
  2. touch test/FOO
  3. 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
  4. 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.

Actions

Also available in: Atom PDF