Research Menu

.
Skip Search Box

SELinux Mailing List

Re: New SuSE rules -- opt file type

From: Carsten Grohmann <carstengrohmann_at_gmx.de>
Date: Fri, 2 Aug 2002 13:20:36 +0200


Am Donnerstag, 1. August 2002 21:56 schrieb Russell Coker:
> > > > # Access to file_t (/opt)
> > > > allow ldconfig_t file_t:dir { getattr read search };
> > > > allow ldconfig_t file_t:{ file lnk_file } { getattr read };
> > >
> > > You should never grant anything access to file_t. The existance of
> > > file_t labelled objects indicates a deficiency in yout file_contexts.
> >
> > The NSA distribution have not a type for /opt. Next days I will send a
> > patch to correct this.
>
> I suggest making opt root_t as it's likely to be the root of a different
> file system (and it's not something you'll restrict access to unless
> you're restricting access to the root directory). Then have rules
> labelling /opt/.*/bin(|/.*) bin_t, etc.

Why root_t?
The standard policy labled follow directories as file_t: opt, swap, mnt and some links.
This entries should be not labelling in the same type. If several file system entries have the same security context, I need only grand access to one directory and all other can also access. That's why I think we should use different types.

Carsten

--
You have received this message because you are subscribed to the selinux 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 Fri 2 Aug 2002 - 07:42:36 EDT
 

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

 
bottom

National Security Agency / Central Security Service