Re: ACL rules doesn't propagate on btrfs

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

 



On Tue, Oct 15, 2013 at 4:56 PM, Giuseppe Fierro <giuseppe@xxxxxxxxxx> wrote:
> I'm playing with acl permission on btrfs (my favourite filesytem).
> When I set ACL permission on directory happens that this permission doesn't
> propagate inside the directory structure.
>
> As you can see from the following example after the second level the ACL's
> rules are completely forgotten.
>
>
> gspe@Jura:~/Videos$ sudo mkdir test_prj
>> [sudo] password for gspe:
>> gspe@Jura:~/Videos$ ls -l
>> total 0
>> drwxr-xr-x 1 root root 0 ott 15 17:48 test_prj
>> gspe@Jura:~/Videos$ sudo chown root:gmingegneria test_prj
>> gspe@Jura:~/Videos$ ls -l
>> total 0
>> drwxr-xr-x 1 root gmingegneria 0 ott 15 17:48 test_prj
>> gspe@Jura:~/Videos$ sudo chmod o-rwx test_prj
>> gspe@Jura:~/Videos$ sudo chmod g+rwx test_prj
>> gspe@Jura:~/Videos$ ls -l
>> total 0
>> drwxrwx--- 1 root gmingegneria 0 ott 15 17:48 test_prj
>> gspe@Jura:~/Videos$ sudo chmod g+s test_prj
>> gspe@Jura:~/Videos$ ls -l
>> total 0
>> drwxrws--- 1 root gmingegneria 0 ott 15 17:48 test_prj
>> gspe@Jura:~/Videos$ sudo setfacl -d --set u::rwx,g::rwx,o::- test_prj
>> gspe@Jura:~/Videos$ ls -l
>> total 0
>> drwxrws---+ 1 root gmingegneria 0 ott 15 17:48 test_prj
>> gspe@Jura:~/Videos$ getfacl test_prj
>> # file: test_prj
>> # owner: root
>> # group: gmingegneria
>> # flags: -s-
>> user::rwx
>> group::rwx
>> other::---
>> default:user::rwx
>> default:group::rwx
>> default:other::---
>> gspe@Jura:~/Videos$ cd test_prj
>> gspe@Jura:~/Videos/test_prj$ touch file01
>> gspe@Jura:~/Videos/test_prj$ mkdir test01
>> gspe@Jura:~/Videos/test_prj$ ls -l
>> total 0
>> -rw-rw---- 1 gspe gmingegneria 0 ott 15 17:51 file01
>> drwxrws--- 1 gspe gmingegneria 0 ott 15 17:51 test01
>> gspe@Jura:~/Videos/test_prj$ getfacl file01
>> # file: file01
>> # owner: gspe
>> # group: gmingegneria
>> user::rw-
>> group::rw-
>> other::---
>> gspe@Jura:~/Videos/test_prj$ getfacl test01
>> # file: test01
>> # owner: gspe
>> # group: gmingegneria
>> # flags: -s-
>> user::rwx
>> group::rwx
>> other::---
>> gspe@Jura:~/Videos/test_prj$ cd test01

Confirmed here with btrfs-next and found out why it happens. If you
unmount and mount again the fs, getfacl returns the expected output.
Sending a patch soon.

> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Filipe David Manana,

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux