[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: file contexts and modularity
On Wed, 2005-06-29 at 16:03 -0400, Ivan Gyurdiev wrote:
> > So at that point you no longer need to keep home directory contexts in
> > file_contexts at all, and you just exclude home directories from
> > relabeling.
>
> How is the context of the bind-mounted home dir configured?
The mount point directory's context can just be a single fixed context
for all users, as it is just a mount point.
> and subdirectories? pre-created?
Optionally, but typically just created by login-style programs (ideally
via libpam) when the user first logs in at a given role.
> what determines their context?
Obtained via security_compute_member, which in turn relies on
type_member rules in the policy. See Chad's earlier postings. The
security_setupns() function is in our libselinux tree, but you'd also
need the patches he posted to login and friends for experimentation.
> I am trying to understand where the labeling
> information is stored, if you want to get rid of the
> file_contexts.homedirs file.
It is computed based on the user process' security context and the base
context on the mount point directory.
--
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.