Research Menu

.
Skip Search Box

SELinux Mailing List

Re: Added is_context_configurable function

From: Stephen Smalley <sds_at_epoch.ncsc.mil>
Date: Tue, 11 Jan 2005 15:00:11 -0500


On Tue, 2005-01-11 at 11:12, Daniel J Walsh wrote:
> I think this is more flexible, in that it allows users to specify the
> location of these files versus policy.
> IE I create a new top level directory /rsync which I want to label
> ftp_anon_t, I don't want to have to specify
> ftp_anon_t is an alternative to default_t.

You could certainly specify a /rsync/(/.*)? entry in file_contexts that had both contexts listed. Ordinary user shouldn't be able to create/populate /rsync anyway without administrative setup.

Failing to associate the context with a location in any manner means that setfiles/restorecon will fail to fix the label on e.g. /etc/shadow if it happens to get one of these configurable types at some point. Admittedly, getting to that point requires some kind of serious error in the first place, but running fixfiles relabel will no longer correct such errors for you.

BTW, customizable or alternatives seems better than configurable.

-- 
Stephen Smalley <sds@epoch.ncsc.mil>
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@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Tue 11 Jan 2005 - 15:06:11 EST
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service