[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Alternative user management approach


On Fri, 2005-06-24 at 15:21 -0400, Ivan Gyurdiev wrote:
> So... would this be accomplished by changing security_compute_user
> to map between DAC uid and selinux uid before writing
> to /selinux/user ?
> 
> Where would the remap occur...

In get_ordered_context_list, prior to calling security_compute_user.
get_ordered_context_list would look up the username (or some combination
of the username and its associated group set) in the new config file to
find the SELinux username aka role class, and then call
security_compute_user with that role class.  You'd then drop the
hardcoded fallback to SELINUX_DEFAULTUSER aka user_u, as that could be
specified in the config file instead.

-- 
Stephen Smalley
National Security Agency


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


This mailing list archive is a service of Copilot Consulting.