Re: metadata race confition (was: ename(2) race condition)

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

 



On Mon, May 21, 2012 at 10:44:30PM -0700, Anand Avati wrote:
> Even in the case where bugc1.txt got a wrong uid returned (assuming so), it
> should not influence the permissibility of it getting deleted. The
> deletability of a file is based on the permissions on the parent directory
> and not the ownership of the file (unless +t sticky bit was set on the
> directory).

This is interesting: I get the behavior you describe on Linux (ext2fs),
but NetBSD (FFS) hehaves differently (these are native test, without
glusterfs). Is it a grey area in standards?

$ ls -la test/ 
total 16
drwxr-xr-x   2 root  wheel   512 May 22 10:10 .
drwxr-xr-x  19 manu  wheel  5632 May 22 10:10 ..
-rw-r--r--   1 manu  wheel     0 May 22 10:10 toto
$ whoami
manu
$ rm -f test/toto
rm: test/toto: Permission denied
$ uname  -sr 
NetBSD 5.1_STABLE


-- 
Emmanuel Dreyfus
manu@xxxxxxxxxx



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux