]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r216084:
authortrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Dec 2010 22:00:48 +0000 (22:00 +0000)
committertrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Dec 2010 22:00:48 +0000 (22:00 +0000)
commit2bc40eda7c46daa31bd3e071901335db3cedf3dc
treea2e6458e475bb81f9121ec1b0022b3f762dc1e2a
parent30077550f9c992acc74734c22c9686dde64a649d
MFC r216084:

Don't panic when we read an empty ACL from ZFS.  Apparently this may happen
with filesystems created under MacOS X ZFS port.  This is kind of filesystem
corruption (we don't allow for setting empty ACLs), so make acl_get_file(3)
and related syscalls fail with EINVAL in that case.  In theory, we could
return empty ACL to userland, but I'm afraid this would break some code.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216271 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/compat/opensolaris/kern/opensolaris_acl.c