Non-trivial ACLs only?
Dr. Rolf Jansen
rj at obsigna.com
Tue Jul 15 02:37:22 UTC 2014
Am 14.07.2014 um 16:14 schrieb Dr. Rolf Jansen <rj at obsigna.com>:
> Am 14.07.2014 um 05:58 schrieb Edward Tomasz Napierała <trasz at FreeBSD.org>:
>
>> Because NULL return means error, and in this case there is no
>> error - it's just that there is no default ACL set. In FreeBSD,
>> this is expressed by empty (zero entries) ACL.
>
> Please consider the following variant of the above example:
> ...
> acl_head_t acl = acl_get_link_np("test_acl_dir", ACL_TYPE_ACCESS);
> ...
>
> clang acltest.c -o acltest
> rm -rf test_acl_dir && ./acltest
>
> The above command sequence results in:
> ACL found: 3 of 254 entries.
I am sorry, I tested against the wrong ACL type (my stupid copy and paste error). I repeated the test using ACL_TYPE_DEFAULT, and as a matter of fact it resulted in:
ACL not found: 0 of 254 entries.
Up to this end, everything is clear to me now. Please excuse me bothering you with a wrong test example.
Many thanks and best regards
Rolf
More information about the posix1e
mailing list