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

About the userland API for ACL, xattr, extattr



Hi,

i hope it is not too obtrusive to bring up this topic
again after 6 years. :))
  https://lists.debian.org/debian-bsd/2009/12/msg00146.html

I am meanwhile proud owner of a kfreebsd VM
  Debian GNU/kFreeBSD 7
  GNU/kFreeBSD ts6-kbsd 9.0-2-686 #0 Sun May 17 22:06:56 UTC 2015 i386 ...
which helps me to get my package preparations ready for kfreebsd
buildd at least on the second try.
  https://buildd.debian.org/status/logs.php?pkg=libisoburn&arch=kfreebsd-amd64

Now i am exploring again ACL, xattr or extattr.
It seems that none of them is really implemented on above system.
Do i get this right ?
Is it worth to upgrade to Sid in order to become tester of better
implementations ?

-------------------------------------------------------------------
Assessment on Debian 7 kfreebsd:

libisofs ./configure tests see the libacl API installed
  checking sys/acl.h usability... yes
  checking sys/acl.h presence... yes
  checking for sys/acl.h... yes
  checking for acl_to_text in -lacl... yes
but when i try to use it to set some ACL, i get errno ENOSYS
"Function not implemented".

On FreeBSD 8, libisofs-1.4.2/configure says the same except the
last lines
  checking for acl_to_text in -lacl... no
  checking for acl_to_text in -lc... yes
There i can get and set ACL.

The Linux file attribute API "xattr" seems to be present
  checking attr/xattr.h usability... yes
  checking attr/xattr.h presence... yes
  checking for attr/xattr.h... yes
  checking for listxattr in -lc... yes
But again, the attempt to set "user." attributes of a file
fails with ENOSYS "Function not implemented".

FreeBSD-ish "extattr" appears to be incompatible
  checking sys/extattr.h usability... yes
  checking sys/extattr.h presence... yes
  checking for sys/extattr.h... yes
  checking for extattr_list_file in -lc... no

On FreeBSD 8:
  checking attr/xattr.h usability... no
  checking attr/xattr.h presence... no
  checking for attr/xattr.h... no
  checking sys/extattr.h usability... yes
  checking sys/extattr.h presence... yes
  checking for sys/extattr.h... yes
  checking for extattr_list_file in -lc... yes
Getting and setting of extattr works.

-------------------------------------------------------------------

Have a nice day :)

Thomas


Reply to: