summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_valid.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/posix1e/acl_valid.c')
-rw-r--r--lib/libc/posix1e/acl_valid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/posix1e/acl_valid.c b/lib/libc/posix1e/acl_valid.c
index 166e614..f345c01 100644
--- a/lib/libc/posix1e/acl_valid.c
+++ b/lib/libc/posix1e/acl_valid.c
@@ -62,6 +62,10 @@ acl_valid(acl_t acl)
errno = EINVAL;
return (-1);
}
+ if (!_acl_brand_may_be(acl, ACL_BRAND_POSIX)) {
+ errno = EINVAL;
+ return (-1);
+ }
_posix1e_acl_sort(acl);
error = _posix1e_acl_check(acl);
if (error) {
OpenPOWER on IntegriCloud