docs/162380: Documentation lacking for getfacl/setfacl
Garrett Cooper
yanegomi at gmail.com
Thu Jan 12 00:50:12 UTC 2012
The following reply was made to PR docs/162380; it has been noted by GNATS.
From: Garrett Cooper <yanegomi at gmail.com>
To: bug-followup at FreeBSD.org, yanegomi at gmail.com
Cc:
Subject: Re: docs/162380: Documentation lacking for getfacl/setfacl
Date: Wed, 11 Jan 2012 16:45:14 -0800
Here's the code that 'documents' the flags output via getfacl, can be
set via setfacl, etc:
struct flagnames_struct a_access_masks[] =
{{ ACL_READ_DATA, "read_data", 'r'},
{ ACL_WRITE_DATA, "write_data", 'w'},
{ ACL_EXECUTE, "execute", 'x'},
{ ACL_APPEND_DATA, "append_data", 'p'},
{ ACL_DELETE_CHILD, "delete_child", 'D'},
{ ACL_DELETE, "delete", 'd'},
{ ACL_READ_ATTRIBUTES, "read_attributes", 'a'},
{ ACL_WRITE_ATTRIBUTES, "write_attributes", 'A'},
{ ACL_READ_NAMED_ATTRS, "read_xattr", 'R'},
{ ACL_WRITE_NAMED_ATTRS, "write_xattr", 'W'},
{ ACL_READ_ACL, "read_acl", 'c'},
{ ACL_WRITE_ACL, "write_acl", 'C'},
{ ACL_WRITE_OWNER, "write_owner", 'o'},
{ ACL_SYNCHRONIZE, "synchronize", 's'},
{ ACL_FULL_SET, "full_set", '\0'},
{ ACL_MODIFY_SET, "modify_set", '\0'},
{ ACL_READ_SET, "read_set", '\0'},
{ ACL_WRITE_SET, "write_set", '\0'},
{ 0, 0, 0}};
The code lives in lib/libc/posix1e/acl_support_nfs4.c
Thanks!
-Garrett
More information about the freebsd-doc
mailing list