]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't panic when we read an empty ACL from ZFS. Apparently this may happen
authortrasz <trasz@FreeBSD.org>
Tue, 30 Nov 2010 21:04:05 +0000 (21:04 +0000)
committertrasz <trasz@FreeBSD.org>
Tue, 30 Nov 2010 21:04:05 +0000 (21:04 +0000)
commitcb2672a1ca9f2f4c40256707b7aaacd4638ab028
treedf7735ff1679895cb88603ddabaca95347792656
parent768c79cd77507ac85776ce9d84567c35df4ca8a2
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.

MFC after: 3 days
sys/cddl/compat/opensolaris/kern/opensolaris_acl.c