summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_valid.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2009-05-22 15:56:43 +0000
committertrasz <trasz@FreeBSD.org>2009-05-22 15:56:43 +0000
commitfb57d2691e61eb7ee2ab8df2ee9f41842c5f1a26 (patch)
treec4c23f9c8441dec7c3000e786fd64356cf1e6e07 /lib/libc/posix1e/acl_valid.c
parent22a2faaf8a380ef584515e66ff4136bf512c6e21 (diff)
downloadFreeBSD-src-fb57d2691e61eb7ee2ab8df2ee9f41842c5f1a26.zip
FreeBSD-src-fb57d2691e61eb7ee2ab8df2ee9f41842c5f1a26.tar.gz
Make 'struct acl' larger, as required to support NFSv4 ACLs. Provide
compatibility interfaces in both kernel and libc. Reviewed by: rwatson
Diffstat (limited to 'lib/libc/posix1e/acl_valid.c')
-rw-r--r--lib/libc/posix1e/acl_valid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_valid.c b/lib/libc/posix1e/acl_valid.c
index 9b1f9b9..166e614 100644
--- a/lib/libc/posix1e/acl_valid.c
+++ b/lib/libc/posix1e/acl_valid.c
@@ -81,6 +81,7 @@ acl_valid_file_np(const char *pathp, acl_type_t type, acl_t acl)
errno = EINVAL;
return (-1);
}
+ type = _acl_type_unold(type);
if (_posix1e_acl(acl, type)) {
error = _posix1e_acl_sort(acl);
if (error) {
@@ -101,6 +102,7 @@ acl_valid_link_np(const char *pathp, acl_type_t type, acl_t acl)
errno = EINVAL;
return (-1);
}
+ type = _acl_type_unold(type);
if (_posix1e_acl(acl, type)) {
error = _posix1e_acl_sort(acl);
if (error) {
@@ -121,6 +123,7 @@ acl_valid_fd_np(int fd, acl_type_t type, acl_t acl)
errno = EINVAL;
return (-1);
}
+ type = _acl_type_unold(type);
if (_posix1e_acl(acl, type)) {
error = _posix1e_acl_sort(acl);
if (error) {
@@ -131,6 +134,5 @@ acl_valid_fd_np(int fd, acl_type_t type, acl_t acl)
acl->ats_cur_entry = 0;
-
return (___acl_aclcheck_fd(fd, type, &acl->ats_acl));
}
OpenPOWER on IntegriCloud