Date: Sun, 23 Nov 2008 20:14:20 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185228 - head/sys/cddl/compat/opensolaris/kern Message-ID: <200811232014.mANKEKM0063066@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Sun Nov 23 20:14:19 2008 New Revision: 185228 URL: http://svn.freebsd.org/changeset/base/185228 Log: 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 Modified: head/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c Modified: head/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c ============================================================================== --- head/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c Sun Nov 23 20:07:00 2008 (r185227) +++ head/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c Sun Nov 23 20:14:19 2008 (r185228) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811232014.mANKEKM0063066>