summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-09-04 00:14:20 +0000
committerdelphij <delphij@FreeBSD.org>2015-09-04 00:14:20 +0000
commitdb0a2c953d7c03e6526acbf76bee458a3e6543ce (patch)
treefe31f09e9c5626284dbb21397b98cf5d4cb61e78 /lib/libc
parent056def92613300ef70cb16126760d5199849a252 (diff)
downloadFreeBSD-src-db0a2c953d7c03e6526acbf76bee458a3e6543ce.zip
FreeBSD-src-db0a2c953d7c03e6526acbf76bee458a3e6543ce.tar.gz
Expose an interface to determine if an ACE is inherited.
Submitted by: sef Reviewed by: trasz MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3540
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/posix1e/acl_add_flag_np.33
-rw-r--r--lib/libc/posix1e/acl_support_nfs4.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_add_flag_np.3 b/lib/libc/posix1e/acl_add_flag_np.3
index db8e565..2204826 100644
--- a/lib/libc/posix1e/acl_add_flag_np.3
+++ b/lib/libc/posix1e/acl_add_flag_np.3
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 30, 2014
+.Dd September 4, 2015
.Dt ACL_ADD_FLAG_NP 3
.Os
.Sh NAME
@@ -56,6 +56,7 @@ Valid values are:
.It ACL_ENTRY_DIRECTORY_INHERIT Ta "Will be inherited by directories."
.It ACL_ENTRY_NO_PROPAGATE_INHERIT Ta "Will not propagate."
.It ACL_ENTRY_INHERIT_ONLY Ta "Inherit-only."
+.It ACL_ENTRY_INHERITED Ta "Inherited from parent"
.El
.Sh RETURN VALUES
.Rv -std acl_add_flag_np
diff --git a/lib/libc/posix1e/acl_support_nfs4.c b/lib/libc/posix1e/acl_support_nfs4.c
index 4878b43..1eece98 100644
--- a/lib/libc/posix1e/acl_support_nfs4.c
+++ b/lib/libc/posix1e/acl_support_nfs4.c
@@ -48,6 +48,7 @@ struct flagnames_struct a_flags[] =
{ ACL_ENTRY_NO_PROPAGATE_INHERIT, "no_propagate", 'n'},
{ ACL_ENTRY_SUCCESSFUL_ACCESS, "successfull_access", 'S'},
{ ACL_ENTRY_FAILED_ACCESS, "failed_access", 'F'},
+ { ACL_ENTRY_INHERITED, "inherited", 'I' },
/*
* There is no ACE_IDENTIFIER_GROUP here - SunOS does not show it
* in the "flags" field. There is no ACE_OWNER, ACE_GROUP or
OpenPOWER on IntegriCloud