All of lore.kernel.org
 help / color / mirror / Atom feed
* /etc/selinux/  directory structure...
       [not found] ` <13D6E9E0302C0E4B9EE667132D21766C02B8342F@ala-mail09.corp.ad.wrs.com>
@ 2009-07-15 15:25   ` Hasan Rezaul-CHR010
  2009-07-15 15:57     ` Dominick Grift
  2009-07-15 16:01     ` Daniel J Walsh
  0 siblings, 2 replies; 7+ messages in thread
From: Hasan Rezaul-CHR010 @ 2009-07-15 15:25 UTC (permalink / raw)
  To: selinux; +Cc: Daniel J Walsh, Stephen Smalley

Hi All,

I work on a product that uses Linux Kernel 2.6.21.  We are 
currently using the following SELinux libs and related package
versions:

checkpolicy      1.33.1
libselinux       2.0.13
libsemanage      2.0.1
libsepol         2.0.3
libsetrans       0.1.18
policycoreutils  2.0.16

I am implementing the "Strict" policy. And so I see the directory
structure on my machine as:  

-------------------------------------------
/etc/selinux/config  
/etc/selinux/restorecond.conf  
/etc/selinux/semanage.conf

/etc/selinux/strict/
/etc/selinux/strict/contexts/
/etc/selinux/strict/modules/
/etc/selinux/strict/policy/
/etc/selinux/strict/setrans.conf
/etc/selinux/strict/seusers

--------------------------------------------


We are moving to a newer Linux version 2.6.27 (that's packaged for us by
a third-party company), and as a result of this newer OS delivery, we
will automatically get moved to the SELinux package version:

checkpolicy      svn2950
libselinux       svn2950
libsemanage      svn2950
libsepol         svn2950
libsetrans       N/A
policycoreutils  svn2950


** My questions are:

1. I see the  /etc/selinux/   directory structure is quite different for
the svn2950 version!  Is it supposed to be that way ?

2. Is the difference in directory structure due to the svn2950 package
version, or is it because of a newer Linux kernel version ? (Linux
2.6.21  vs.  Linux 2.6.27)

3. Is the 'strict' policy supported in this svn2950 version?

4. In the LATEST officially released version(s) of the Selinux packages
from http://userspace.selinuxproject.org/trac/wiki/Releases, is the
/etc/selinux/  directory structure the same as I have described in the
---  block  ---   above, or did it change ?

5. Does the LATEST officially supported versions still support "strict"
policy, or does it only support "targeted" ??

6. Has the concept of "targeted" policy changed since about two years
ago ?

Thanks in advance for all your help.


--
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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /etc/selinux/  directory structure...
  2009-07-15 15:25   ` Hasan Rezaul-CHR010
@ 2009-07-15 15:57     ` Dominick Grift
  2009-07-15 16:09       ` Hasan Rezaul-CHR010
  2009-07-15 16:01     ` Daniel J Walsh
  1 sibling, 1 reply; 7+ messages in thread
From: Dominick Grift @ 2009-07-15 15:57 UTC (permalink / raw)
  To: Hasan Rezaul-CHR010; +Cc: selinux, Daniel J Walsh, Stephen Smalley

[-- Attachment #1: Type: text/plain, Size: 2944 bytes --]

On Wed, 2009-07-15 at 11:25 -0400, Hasan Rezaul-CHR010 wrote:
> Hi All,
> 
> I work on a product that uses Linux Kernel 2.6.21.  We are 
> currently using the following SELinux libs and related package
> versions:
> 
> checkpolicy      1.33.1
> libselinux       2.0.13
> libsemanage      2.0.1
> libsepol         2.0.3
> libsetrans       0.1.18
> policycoreutils  2.0.16
> 
> I am implementing the "Strict" policy. And so I see the directory
> structure on my machine as:  
> 
> -------------------------------------------
> /etc/selinux/config  
> /etc/selinux/restorecond.conf  
> /etc/selinux/semanage.conf
> 
> /etc/selinux/strict/
> /etc/selinux/strict/contexts/
> /etc/selinux/strict/modules/
> /etc/selinux/strict/policy/
> /etc/selinux/strict/setrans.conf
> /etc/selinux/strict/seusers
> 
> --------------------------------------------
> 
> 
> We are moving to a newer Linux version 2.6.27 (that's packaged for us by
> a third-party company), and as a result of this newer OS delivery, we
> will automatically get moved to the SELinux package version:
> 
> checkpolicy      svn2950
> libselinux       svn2950
> libsemanage      svn2950
> libsepol         svn2950
> libsetrans       N/A
> policycoreutils  svn2950
> 
> 
> ** My questions are:
> 
> 1. I see the  /etc/selinux/   directory structure is quite different for
> the svn2950 version!  Is it supposed to be that way ?
> 
> 2. Is the difference in directory structure due to the svn2950 package
> version, or is it because of a newer Linux kernel version ? (Linux
> 2.6.21  vs.  Linux 2.6.27)
> 
> 3. Is the 'strict' policy supported in this svn2950 version?
> 
> 4. In the LATEST officially released version(s) of the Selinux packages
> from http://userspace.selinuxproject.org/trac/wiki/Releases, is the
> /etc/selinux/  directory structure the same as I have described in the
> ---  block  ---   above, or did it change ?
> 
> 5. Does the LATEST officially supported versions still support "strict"
> policy, or does it only support "targeted" ??

It supports "strict policy" but the strict policy model merged with the
targeted policy model. You would have to configure the Targeted SELinux
policy to make it strict.

> 
> 6. Has the concept of "targeted" policy changed since about two years
> ago ?

Not really. Targeted policy still targets a set of processes and the
rest goes into the unconfined domain. However, now it is possible to
uninstall the unconfined module which effectively turns your targeted
policy into a strict policy. 

Basically the targeted policy was extended by the merger with strict
policy.

> Thanks in advance for all your help.
> 
> 
> --
> 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.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /etc/selinux/  directory structure...
  2009-07-15 15:25   ` Hasan Rezaul-CHR010
  2009-07-15 15:57     ` Dominick Grift
@ 2009-07-15 16:01     ` Daniel J Walsh
  1 sibling, 0 replies; 7+ messages in thread
From: Daniel J Walsh @ 2009-07-15 16:01 UTC (permalink / raw)
  To: Hasan Rezaul-CHR010; +Cc: selinux, Stephen Smalley

On 07/15/2009 11:25 AM, Hasan Rezaul-CHR010 wrote:
> Hi All,
> 
> I work on a product that uses Linux Kernel 2.6.21.  We are 
> currently using the following SELinux libs and related package
> versions:
> 
> checkpolicy      1.33.1
> libselinux       2.0.13
> libsemanage      2.0.1
> libsepol         2.0.3
> libsetrans       0.1.18
> policycoreutils  2.0.16
> 
> I am implementing the "Strict" policy. And so I see the directory
> structure on my machine as:  
> 
> -------------------------------------------
> /etc/selinux/config  
> /etc/selinux/restorecond.conf  
> /etc/selinux/semanage.conf
> 
> /etc/selinux/strict/
> /etc/selinux/strict/contexts/
> /etc/selinux/strict/modules/
> /etc/selinux/strict/policy/
> /etc/selinux/strict/setrans.conf
> /etc/selinux/strict/seusers
> 
> --------------------------------------------
> 
> 
> We are moving to a newer Linux version 2.6.27 (that's packaged for us by
> a third-party company), and as a result of this newer OS delivery, we
> will automatically get moved to the SELinux package version:
> 
> checkpolicy      svn2950
> libselinux       svn2950
> libsemanage      svn2950
> libsepol         svn2950
> libsetrans       N/A
> policycoreutils  svn2950
> 
> 
> ** My questions are:
> 
> 1. I see the  /etc/selinux/   directory structure is quite different for
> the svn2950 version!  Is it supposed to be that way ?
> 
> 2. Is the difference in directory structure due to the svn2950 package
> version, or is it because of a newer Linux kernel version ? (Linux
> 2.6.21  vs.  Linux 2.6.27)
> 
> 3. Is the 'strict' policy supported in this svn2950 version?
> 
> 4. In the LATEST officially released version(s) of the Selinux packages
> from http://userspace.selinuxproject.org/trac/wiki/Releases, is the
> /etc/selinux/  directory structure the same as I have described in the
> ---  block  ---   above, or did it change ?
> 
> 5. Does the LATEST officially supported versions still support "strict"
> policy, or does it only support "targeted" ??
> 
> 6. Has the concept of "targeted" policy changed since about two years
> ago ?
> 
> Thanks in advance for all your help.


What is your security goals for using strict policy.  If it is confining the user, then you have this available in targeted policy.  If you do not want any unconfined domains to run on the system you can get this also, by removing the unconfined.pp and unconfineduser.pp modules.

--
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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: /etc/selinux/  directory structure...
  2009-07-15 15:57     ` Dominick Grift
@ 2009-07-15 16:09       ` Hasan Rezaul-CHR010
  2009-07-15 16:28         ` Dominick Grift
  0 siblings, 1 reply; 7+ messages in thread
From: Hasan Rezaul-CHR010 @ 2009-07-15 16:09 UTC (permalink / raw)
  To: Dominick Grift; +Cc: selinux, Daniel J Walsh, Stephen Smalley

Interesting.  Thanks so much for your response.

Is there some place I can get more useful info about how best to take my
current set of 'strict' policies, and sort of migrate them onto the new
improved targeted policy framework.

I am not dying to use 'strict' policies... The reasons why I was pushed
in this direction were:
- I wrote some policies (custom.pp) to deny certain accesses by certain
users. The targeted policy didn't seem to be restricting those
operations, as I had intended. But the strict policy, did.
- I wanted the philosophy of, "when in doubt, block the operation", as
opposed to "when in doubt, allow the operation".  I felt that the
'strict' policy better aligns with that goal. Perhaps I am wrong, and
either option is viable ?

In any case, I guess I would have to develop my policies again to fit
with the targeted policy framework now. Any suggestions on a good
starting point.. Documentation, training materials for developing custom
policies ?   Thanks again for the help.


-----Original Message-----
From: Dominick Grift [mailto:domg472@gmail.com] 
Sent: Wednesday, July 15, 2009 10:57 AM
To: Hasan Rezaul-CHR010
Cc: selinux@tycho.nsa.gov; Daniel J Walsh; Stephen Smalley
Subject: Re: /etc/selinux/ directory structure...

On Wed, 2009-07-15 at 11:25 -0400, Hasan Rezaul-CHR010 wrote:
> Hi All,
> 
> I work on a product that uses Linux Kernel 2.6.21.  We are currently 
> using the following SELinux libs and related package
> versions:
> 
> checkpolicy      1.33.1
> libselinux       2.0.13
> libsemanage      2.0.1
> libsepol         2.0.3
> libsetrans       0.1.18
> policycoreutils  2.0.16
> 
> I am implementing the "Strict" policy. And so I see the directory 
> structure on my machine as:
> 
> -------------------------------------------
> /etc/selinux/config
> /etc/selinux/restorecond.conf
> /etc/selinux/semanage.conf
> 
> /etc/selinux/strict/
> /etc/selinux/strict/contexts/
> /etc/selinux/strict/modules/
> /etc/selinux/strict/policy/
> /etc/selinux/strict/setrans.conf
> /etc/selinux/strict/seusers
> 
> --------------------------------------------
> 
> 
> We are moving to a newer Linux version 2.6.27 (that's packaged for us 
> by a third-party company), and as a result of this newer OS delivery, 
> we will automatically get moved to the SELinux package version:
> 
> checkpolicy      svn2950
> libselinux       svn2950
> libsemanage      svn2950
> libsepol         svn2950
> libsetrans       N/A
> policycoreutils  svn2950
> 
> 
> ** My questions are:
> 
> 1. I see the  /etc/selinux/   directory structure is quite different
for
> the svn2950 version!  Is it supposed to be that way ?
> 
> 2. Is the difference in directory structure due to the svn2950 package

> version, or is it because of a newer Linux kernel version ? (Linux
> 2.6.21  vs.  Linux 2.6.27)
> 
> 3. Is the 'strict' policy supported in this svn2950 version?
> 
> 4. In the LATEST officially released version(s) of the Selinux 
> packages from http://userspace.selinuxproject.org/trac/wiki/Releases, 
> is the /etc/selinux/  directory structure the same as I have described
in the
> ---  block  ---   above, or did it change ?
> 
> 5. Does the LATEST officially supported versions still support
"strict"
> policy, or does it only support "targeted" ??

It supports "strict policy" but the strict policy model merged with the
targeted policy model. You would have to configure the Targeted SELinux
policy to make it strict.

> 
> 6. Has the concept of "targeted" policy changed since about two years 
> ago ?

Not really. Targeted policy still targets a set of processes and the
rest goes into the unconfined domain. However, now it is possible to
uninstall the unconfined module which effectively turns your targeted
policy into a strict policy. 

Basically the targeted policy was extended by the merger with strict
policy.

> Thanks in advance for all your help.
> 
> 
> --
> 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.


--
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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: /etc/selinux/  directory structure...
  2009-07-15 16:09       ` Hasan Rezaul-CHR010
@ 2009-07-15 16:28         ` Dominick Grift
  0 siblings, 0 replies; 7+ messages in thread
From: Dominick Grift @ 2009-07-15 16:28 UTC (permalink / raw)
  To: Hasan Rezaul-CHR010; +Cc: selinux, Daniel J Walsh, Stephen Smalley

[-- Attachment #1: Type: text/plain, Size: 5390 bytes --]

On Wed, 2009-07-15 at 12:09 -0400, Hasan Rezaul-CHR010 wrote:
> Interesting.  Thanks so much for your response.
> 
> Is there some place I can get more useful info about how best to take my
> current set of 'strict' policies, and sort of migrate them onto the new
> improved targeted policy framework.

Well the way to do it is pretty much the same. But policy itself has
evolved in the meantime. So some of your custom policy may not longer be
applicable.

> I am not dying to use 'strict' policies... The reasons why I was pushed
> in this direction were:
> - I wrote some policies (custom.pp) 
> to deny certain accesses by certain
> users. The targeted policy didn't seem to be restricting those
> operations, as I had intended. But the strict policy, did.

Now you can use both strict users and unrestricted users or you can
choose to make your targeted policy strict by uninstalling the
unconfined module.

> - I wanted the philosophy of, "when in doubt, block the operation", as
> opposed to "when in doubt, allow the operation".  I felt that the
> 'strict' policy better aligns with that goal. Perhaps I am wrong, and
> either option is viable ?

I like to think least privilege. If i am in doubt i will block until
proven otherwise.

> In any case, I guess I would have to develop my policies again to fit
> with the targeted policy framework now. Any suggestions on a good
> starting point.. Documentation, training materials for developing custom
> policies ?   Thanks again for the help.

Reference policy itself is the best documentation around in my view. It
is full of examples. There is also danwalsh.livejournal.com where dwalsh
pretty much covered all new features. Also the selinux, fedora-selinux
and tresys-refpolicy mail list archives have good information. You can
also get help by joining our irc chat rooms.

Here is a neat summary of some SELinux resources:

http://selinuxproject.org/page/User_Resources


> 
> -----Original Message-----
> From: Dominick Grift [mailto:domg472@gmail.com] 
> Sent: Wednesday, July 15, 2009 10:57 AM
> To: Hasan Rezaul-CHR010
> Cc: selinux@tycho.nsa.gov; Daniel J Walsh; Stephen Smalley
> Subject: Re: /etc/selinux/ directory structure...
> 
> On Wed, 2009-07-15 at 11:25 -0400, Hasan Rezaul-CHR010 wrote:
> > Hi All,
> > 
> > I work on a product that uses Linux Kernel 2.6.21.  We are currently 
> > using the following SELinux libs and related package
> > versions:
> > 
> > checkpolicy      1.33.1
> > libselinux       2.0.13
> > libsemanage      2.0.1
> > libsepol         2.0.3
> > libsetrans       0.1.18
> > policycoreutils  2.0.16
> > 
> > I am implementing the "Strict" policy. And so I see the directory 
> > structure on my machine as:
> > 
> > -------------------------------------------
> > /etc/selinux/config
> > /etc/selinux/restorecond.conf
> > /etc/selinux/semanage.conf
> > 
> > /etc/selinux/strict/
> > /etc/selinux/strict/contexts/
> > /etc/selinux/strict/modules/
> > /etc/selinux/strict/policy/
> > /etc/selinux/strict/setrans.conf
> > /etc/selinux/strict/seusers
> > 
> > --------------------------------------------
> > 
> > 
> > We are moving to a newer Linux version 2.6.27 (that's packaged for us 
> > by a third-party company), and as a result of this newer OS delivery, 
> > we will automatically get moved to the SELinux package version:
> > 
> > checkpolicy      svn2950
> > libselinux       svn2950
> > libsemanage      svn2950
> > libsepol         svn2950
> > libsetrans       N/A
> > policycoreutils  svn2950
> > 
> > 
> > ** My questions are:
> > 
> > 1. I see the  /etc/selinux/   directory structure is quite different
> for
> > the svn2950 version!  Is it supposed to be that way ?
> > 
> > 2. Is the difference in directory structure due to the svn2950 package
> 
> > version, or is it because of a newer Linux kernel version ? (Linux
> > 2.6.21  vs.  Linux 2.6.27)
> > 
> > 3. Is the 'strict' policy supported in this svn2950 version?
> > 
> > 4. In the LATEST officially released version(s) of the Selinux 
> > packages from http://userspace.selinuxproject.org/trac/wiki/Releases, 
> > is the /etc/selinux/  directory structure the same as I have described
> in the
> > ---  block  ---   above, or did it change ?
> > 
> > 5. Does the LATEST officially supported versions still support
> "strict"
> > policy, or does it only support "targeted" ??
> 
> It supports "strict policy" but the strict policy model merged with the
> targeted policy model. You would have to configure the Targeted SELinux
> policy to make it strict.
> 
> > 
> > 6. Has the concept of "targeted" policy changed since about two years 
> > ago ?
> 
> Not really. Targeted policy still targets a set of processes and the
> rest goes into the unconfined domain. However, now it is possible to
> uninstall the unconfined module which effectively turns your targeted
> policy into a strict policy. 
> 
> Basically the targeted policy was extended by the merger with strict
> policy.
> 
> > Thanks in advance for all your help.
> > 
> > 
> > --
> > 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.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: /etc/selinux/  directory structure...
@ 2009-07-15 17:42 Hasan Rezaul-CHR010
  2009-07-15 18:29 ` Dominick Grift
  0 siblings, 1 reply; 7+ messages in thread
From: Hasan Rezaul-CHR010 @ 2009-07-15 17:42 UTC (permalink / raw)
  To: Hasan Rezaul-CHR010, Dominick Grift
  Cc: selinux, Daniel J Walsh, Stephen Smalley

Also, would you kindly give me an idea of approximately when the "strict" policy framework was merged into the "targeted" framework ?  Please provide specific selinux package version(s) when this was first done.  Thanks.



-----Original Message-----
From: "Hasan Rezaul-CHR010" <CHR010@motorola.com>
To: "Dominick Grift" <domg472@gmail.com>
Cc: "selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>; "Daniel J Walsh" <dwalsh@redhat.com>; "Stephen Smalley" <sds@tycho.nsa.gov>
Sent: 7/15/2009 11:13 AM
Subject: RE: /etc/selinux/  directory structure...

Interesting.  Thanks so much for your response.

Is there some place I can get more useful info about how best to take my
current set of 'strict' policies, and sort of migrate them onto the new
improved targeted policy framework.

I am not dying to use 'strict' policies... The reasons why I was pushed
in this direction were:
- I wrote some policies (custom.pp) to deny certain accesses by certain
users. The targeted policy didn't seem to be restricting those
operations, as I had intended. But the strict policy, did.
- I wanted the philosophy of, "when in doubt, block the operation", as
opposed to "when in doubt, allow the operation".  I felt that the
'strict' policy better aligns with that goal. Perhaps I am wrong, and
either option is viable ?

In any case, I guess I would have to develop my policies again to fit
with the targeted policy framework now. Any suggestions on a good
starting point.. Documentation, training materials for developing custom
policies ?   Thanks again for the help.


-----Original Message-----
From: Dominick Grift [mailto:domg472@gmail.com] 
Sent: Wednesday, July 15, 2009 10:57 AM
To: Hasan Rezaul-CHR010
Cc: selinux@tycho.nsa.gov; Daniel J Walsh; Stephen Smalley
Subject: Re: /etc/selinux/ directory structure...

On Wed, 2009-07-15 at 11:25 -0400, Hasan Rezaul-CHR010 wrote:
> Hi All,
> 
> I work on a product that uses Linux Kernel 2.6.21.  We are currently 
> using the following SELinux libs and related package
> versions:
> 
> checkpolicy      1.33.1
> libselinux       2.0.13
> libsemanage      2.0.1
> libsepol         2.0.3
> libsetrans       0.1.18
> policycoreutils  2.0.16
> 
> I am implementing the "Strict" policy. And so I see the directory 
> structure on my machine as:
> 
> -------------------------------------------
> /etc/selinux/config
> /etc/selinux/restorecond.conf
> /etc/selinux/semanage.conf
> 
> /etc/selinux/strict/
> /etc/selinux/strict/contexts/
> /etc/selinux/strict/modules/
> /etc/selinux/strict/policy/
> /etc/selinux/strict/setrans.conf
> /etc/selinux/strict/seusers
> 
> --------------------------------------------
> 
> 
> We are moving to a newer Linux version 2.6.27 (that's packaged for us 
> by a third-party company), and as a result of this newer OS delivery, 
> we will automatically get moved to the SELinux package version:
> 
> checkpolicy      svn2950
> libselinux       svn2950
> libsemanage      svn2950
> libsepol         svn2950
> libsetrans       N/A
> policycoreutils  svn2950
> 
> 
> ** My questions are:
> 
> 1. I see the  /etc/selinux/   directory structure is quite different
for
> the svn2950 version!  Is it supposed to be that way ?
> 
> 2. Is the difference in directory structure due to the svn2950 package

> version, or is it because of a newer Linux kernel version ? (Linux
> 2.6.21  vs.  Linux 2.6.27)
> 
> 3. Is the 'strict' policy supported in this svn2950 version?
> 
> 4. In the LATEST officially released version(s) of the Selinux 
> packages from http://userspace.selinuxproject.org/trac/wiki/Releases, 
> is the /etc/selinux/  directory structure the same as I have described
in the
> ---  block  ---   above, or did it change ?
> 
> 5. Does the LATEST officially supported versions still support
"strict"
> policy, or does it only support "targeted" ??

It supports "strict policy" but the strict policy model merged with the
targeted policy model. You would have to configure the Targeted SELinux
policy to make it strict.

> 
> 6. Has the concept of "targeted" policy changed since about two years 
> ago ?

Not really. Targeted policy still targets a set of processes and the
rest goes into the unconfined domain. However, now it is possible to
uninstall the unconfined module which effectively turns your targeted
policy into a strict policy. 

Basically the targeted policy was extended by the merger with strict
policy.

> Thanks in advance for all your help.
> 
> 
> --
> 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.


--
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.


--
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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: /etc/selinux/  directory structure...
  2009-07-15 17:42 /etc/selinux/ directory structure Hasan Rezaul-CHR010
@ 2009-07-15 18:29 ` Dominick Grift
  0 siblings, 0 replies; 7+ messages in thread
From: Dominick Grift @ 2009-07-15 18:29 UTC (permalink / raw)
  To: Hasan Rezaul-CHR010; +Cc: selinux, Daniel J Walsh, Stephen Smalley

[-- Attachment #1: Type: text/plain, Size: 5451 bytes --]

On Wed, 2009-07-15 at 12:42 -0500, Hasan Rezaul-CHR010 wrote:
> Also, would you kindly give me an idea of approximately when the "strict" policy framework was merged into the "targeted" framework ?  Please provide specific selinux package version(s) when this was first done.  Thanks.

http://oss.tresys.com/projects/refpolicy/ticket/35

Merged into trunk at revision 2437.

> 
> 
> -----Original Message-----
> From: "Hasan Rezaul-CHR010" <CHR010@motorola.com>
> To: "Dominick Grift" <domg472@gmail.com>
> Cc: "selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>; "Daniel J Walsh" <dwalsh@redhat.com>; "Stephen Smalley" <sds@tycho.nsa.gov>
> Sent: 7/15/2009 11:13 AM
> Subject: RE: /etc/selinux/  directory structure...
> 
> Interesting.  Thanks so much for your response.
> 
> Is there some place I can get more useful info about how best to take my
> current set of 'strict' policies, and sort of migrate them onto the new
> improved targeted policy framework.
> 
> I am not dying to use 'strict' policies... The reasons why I was pushed
> in this direction were:
> - I wrote some policies (custom.pp) to deny certain accesses by certain
> users. The targeted policy didn't seem to be restricting those
> operations, as I had intended. But the strict policy, did.
> - I wanted the philosophy of, "when in doubt, block the operation", as
> opposed to "when in doubt, allow the operation".  I felt that the
> 'strict' policy better aligns with that goal. Perhaps I am wrong, and
> either option is viable ?
> 
> In any case, I guess I would have to develop my policies again to fit
> with the targeted policy framework now. Any suggestions on a good
> starting point.. Documentation, training materials for developing custom
> policies ?   Thanks again for the help.
> 
> 
> -----Original Message-----
> From: Dominick Grift [mailto:domg472@gmail.com] 
> Sent: Wednesday, July 15, 2009 10:57 AM
> To: Hasan Rezaul-CHR010
> Cc: selinux@tycho.nsa.gov; Daniel J Walsh; Stephen Smalley
> Subject: Re: /etc/selinux/ directory structure...
> 
> On Wed, 2009-07-15 at 11:25 -0400, Hasan Rezaul-CHR010 wrote:
> > Hi All,
> > 
> > I work on a product that uses Linux Kernel 2.6.21.  We are currently 
> > using the following SELinux libs and related package
> > versions:
> > 
> > checkpolicy      1.33.1
> > libselinux       2.0.13
> > libsemanage      2.0.1
> > libsepol         2.0.3
> > libsetrans       0.1.18
> > policycoreutils  2.0.16
> > 
> > I am implementing the "Strict" policy. And so I see the directory 
> > structure on my machine as:
> > 
> > -------------------------------------------
> > /etc/selinux/config
> > /etc/selinux/restorecond.conf
> > /etc/selinux/semanage.conf
> > 
> > /etc/selinux/strict/
> > /etc/selinux/strict/contexts/
> > /etc/selinux/strict/modules/
> > /etc/selinux/strict/policy/
> > /etc/selinux/strict/setrans.conf
> > /etc/selinux/strict/seusers
> > 
> > --------------------------------------------
> > 
> > 
> > We are moving to a newer Linux version 2.6.27 (that's packaged for us 
> > by a third-party company), and as a result of this newer OS delivery, 
> > we will automatically get moved to the SELinux package version:
> > 
> > checkpolicy      svn2950
> > libselinux       svn2950
> > libsemanage      svn2950
> > libsepol         svn2950
> > libsetrans       N/A
> > policycoreutils  svn2950
> > 
> > 
> > ** My questions are:
> > 
> > 1. I see the  /etc/selinux/   directory structure is quite different
> for
> > the svn2950 version!  Is it supposed to be that way ?
> > 
> > 2. Is the difference in directory structure due to the svn2950 package
> 
> > version, or is it because of a newer Linux kernel version ? (Linux
> > 2.6.21  vs.  Linux 2.6.27)
> > 
> > 3. Is the 'strict' policy supported in this svn2950 version?
> > 
> > 4. In the LATEST officially released version(s) of the Selinux 
> > packages from http://userspace.selinuxproject.org/trac/wiki/Releases, 
> > is the /etc/selinux/  directory structure the same as I have described
> in the
> > ---  block  ---   above, or did it change ?
> > 
> > 5. Does the LATEST officially supported versions still support
> "strict"
> > policy, or does it only support "targeted" ??
> 
> It supports "strict policy" but the strict policy model merged with the
> targeted policy model. You would have to configure the Targeted SELinux
> policy to make it strict.
> 
> > 
> > 6. Has the concept of "targeted" policy changed since about two years 
> > ago ?
> 
> Not really. Targeted policy still targets a set of processes and the
> rest goes into the unconfined domain. However, now it is possible to
> uninstall the unconfined module which effectively turns your targeted
> policy into a strict policy. 
> 
> Basically the targeted policy was extended by the merger with strict
> policy.
> 
> > Thanks in advance for all your help.
> > 
> > 
> > --
> > 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.
> 
> 
> --
> 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.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-16 11:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15 17:42 /etc/selinux/ directory structure Hasan Rezaul-CHR010
2009-07-15 18:29 ` Dominick Grift
     [not found] <D06FE0A2807BC145B0D38744789D4F5D06817A56@de01exm68.ds.mot.com>
     [not found] ` <13D6E9E0302C0E4B9EE667132D21766C02B8342F@ala-mail09.corp.ad.wrs.com>
2009-07-15 15:25   ` Hasan Rezaul-CHR010
2009-07-15 15:57     ` Dominick Grift
2009-07-15 16:09       ` Hasan Rezaul-CHR010
2009-07-15 16:28         ` Dominick Grift
2009-07-15 16:01     ` Daniel J Walsh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.