usr/src/uts/common/os/policy.c
changeset 12494 15439b11d535
parent 12484 df5689211682
child 12633 9f2cda0ed938
equal deleted inserted replaced
12493:89ce40422cea 12494:15439b11d535
  1670 secpolicy_pset(const cred_t *cr)
  1670 secpolicy_pset(const cred_t *cr)
  1671 {
  1671 {
  1672 	return (PRIV_POLICY(cr, PRIV_SYS_RES_CONFIG, B_FALSE, EPERM, NULL));
  1672 	return (PRIV_POLICY(cr, PRIV_SYS_RES_CONFIG, B_FALSE, EPERM, NULL));
  1673 }
  1673 }
  1674 
  1674 
       
  1675 /*
       
  1676  * Processor set binding.
       
  1677  */
       
  1678 int
       
  1679 secpolicy_pbind(const cred_t *cr)
       
  1680 {
       
  1681 	if (PRIV_POLICY_ONLY(cr, PRIV_SYS_RES_CONFIG, B_FALSE))
       
  1682 		return (secpolicy_pset(cr));
       
  1683 	return (PRIV_POLICY(cr, PRIV_SYS_RES_BIND, B_FALSE, EPERM, NULL));
       
  1684 }
       
  1685 
  1675 int
  1686 int
  1676 secpolicy_ponline(const cred_t *cr)
  1687 secpolicy_ponline(const cred_t *cr)
  1677 {
  1688 {
  1678 	return (PRIV_POLICY(cr, PRIV_SYS_RES_CONFIG, B_FALSE, EPERM, NULL));
  1689 	return (PRIV_POLICY(cr, PRIV_SYS_RES_CONFIG, B_FALSE, EPERM, NULL));
  1679 }
  1690 }