diff options
author | pjd <pjd@FreeBSD.org> | 2008-11-23 20:14:19 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2008-11-23 20:14:19 +0000 |
commit | 40e90a100526c7b591bbf4ca3d92f7651aab4d2d (patch) | |
tree | 91d48a64e6247c564a590fedbdf5a5c460d20531 /sys/cddl/compat/opensolaris/kern | |
parent | 8c5f55739a9f606525eb38e40921ad1211356bdc (diff) | |
download | FreeBSD-src-40e90a100526c7b591bbf4ca3d92f7651aab4d2d.zip FreeBSD-src-40e90a100526c7b591bbf4ca3d92f7651aab4d2d.tar.gz |
Don't use PRIV_ROOT. Here we check if user can share ZFS file system, so
PRIV_NFS_DAEMON seems best choice.
Discussed with: rwatson
Diffstat (limited to 'sys/cddl/compat/opensolaris/kern')
-rw-r--r-- | sys/cddl/compat/opensolaris/kern/opensolaris_policy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c b/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c index 837d736..25c736e 100644 --- a/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c +++ b/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c @@ -41,8 +41,7 @@ int secpolicy_nfs(struct ucred *cred) { - /* TODO: Change PRIV_ROOT! */ - return (priv_check_cred(cred, PRIV_ROOT, 0)); + return (priv_check_cred(cred, PRIV_NFS_DAEMON, 0)); } int |