cockpit-project / cockpit-files

A Featureful File Browser for Cockpit (Modernized and tested version of https://github.com/45Drives/cockpit-navigator)
GNU Lesser General Public License v2.1
25 stars 23 forks source link

View/Set ACL's #475

Open jelly opened 1 month ago

jelly commented 1 month ago

Likely this needs to be added to fsinfo, but before we have two options:

jelly commented 1 month ago
[root@fedora-40-127-0-0-2-2201 ~]# setfacl -m u:admin:r foo
[root@fedora-40-127-0-0-2-2201 ~]# xattr -l foo
system.posix_acl_access:
0000   02 00 00 00 01 00 06 00 FF FF FF FF 02 00 04 00    ................
0010   E8 03 00 00 04 00 04 00 FF FF FF FF 10 00 04 00    ................
0020   FF FF FF FF 20 00 04 00 FF FF FF FF                .... .......

security.selinux:
0000   75 6E 63 6F 6E 66 69 6E 65 64 5F 75 3A 6F 62 6A    unconfined_u:obj
0010   65 63 74 5F 72 3A 61 64 6D 69 6E 5F 68 6F 6D 65    ect_r:admin_home
0020   5F 74 3A 73 30 00                                  _t:s0.

So via extended attributes is possible but how is it stored O_o