usr/src/uts/common/os/policy.c
changeset 12494 15439b11d535
parent 12484 df5689211682
child 12633 9f2cda0ed938
--- a/usr/src/uts/common/os/policy.c	Tue May 25 14:25:21 2010 -0600
+++ b/usr/src/uts/common/os/policy.c	Tue May 25 16:50:45 2010 -0600
@@ -1672,6 +1672,17 @@
 	return (PRIV_POLICY(cr, PRIV_SYS_RES_CONFIG, B_FALSE, EPERM, NULL));
 }
 
+/*
+ * Processor set binding.
+ */
+int
+secpolicy_pbind(const cred_t *cr)
+{
+	if (PRIV_POLICY_ONLY(cr, PRIV_SYS_RES_CONFIG, B_FALSE))
+		return (secpolicy_pset(cr));
+	return (PRIV_POLICY(cr, PRIV_SYS_RES_BIND, B_FALSE, EPERM, NULL));
+}
+
 int
 secpolicy_ponline(const cred_t *cr)
 {