Skip to contentSkip to conversation

newrole policy changes for lspp specific requirements ..

DISCUSSION Janak Desai 1 participant 1 message Sep 4, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

In order for newrole to correctly re-polyinstantiate directories when a user changes context, newrole calls session management services of pam_namespace. pam_namespace needs CAP_SYS_ADMIN (for bind mount/unmount) and CAP_DAC_OVERRIDE, CAP_FOWNER and CAP_CHOWN capabilities (for creating and assigning appropriate mode to potential new instance directories). In the current mls policy, newrole_t has all of needed capabilities except the CAP_CHOWN. The following allow rule should go in the the appropriate lspp related loadable policy module's *.te file.

allow newrole_t self:capability chown;

This can be added to the loadable module that adds the auditallow rule to audit setfscreate actions.

Thanks.

-Janak

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.