diff options
author | trasz <trasz@FreeBSD.org> | 2011-04-09 07:42:25 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2011-04-09 07:42:25 +0000 |
commit | 53df99cb04d122b1b04e1eaead2a28c2564f9167 (patch) | |
tree | ecf2850480d4ace064d5cc928e818761594365ca /lib/libc/posix1e/acl_support_nfs4.c | |
parent | 6eed38b749e4cfed384b77916273d9e115b4071f (diff) | |
download | FreeBSD-src-53df99cb04d122b1b04e1eaead2a28c2564f9167.zip FreeBSD-src-53df99cb04d122b1b04e1eaead2a28c2564f9167.tar.gz |
Make it possible to use permission sets (full_set, modify_set, read_set
and write_set) with setfacl(1).
PR: kern/154113
Submitted by: Shawn Webb <lattera at gmail dot com> (earlier version)
MFC after: 1 month
Diffstat (limited to 'lib/libc/posix1e/acl_support_nfs4.c')
-rw-r--r-- | lib/libc/posix1e/acl_support_nfs4.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_support_nfs4.c b/lib/libc/posix1e/acl_support_nfs4.c index c5be3d1..4878b43 100644 --- a/lib/libc/posix1e/acl_support_nfs4.c +++ b/lib/libc/posix1e/acl_support_nfs4.c @@ -70,6 +70,10 @@ struct flagnames_struct a_access_masks[] = { 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}}; static const char * @@ -117,7 +121,7 @@ format_flags_compact(char *str, size_t size, uint32_t var, { size_t i; - for (i = 0; flags[i].name != NULL; i++) { + for (i = 0; flags[i].letter != '\0'; i++) { assert(i < size); if ((flags[i].flag & var) == 0) str[i] = '-'; |