Skip to contentSkip to conversation

setools, version 0.8

DISCUSSION Frank Mayer 5 participants 12 messages Apr 10, 2003 – Apr 11, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

We just released version 0.8 of our setools packages. The version of setools included in the latest NSA distribution (under selinux/tools/setools) was version 0.7, which we released in February of this year. You can download the complete tar file for versions 0.8 at www.tresys.com/selinux. I will separately send a (rather large) patch file to Steve to update the versions in the selinux sourceforge CVS tree.

You can view the change log file on our web site to get a sense of the changes in this version. The primary enhancements are in seuser and apol. We've completely rewritten both the command line and GUI interfaces for seuser (user manager), to provide a single interface to manage both system user (ala the passwd file) and policy user i.e., role) attributes. We also included three scripts (seuseradd, seusermod, and seuserdel) that provides a single set of commands to do both from command line.

In our policy analysis tool (apol), we added the first high-level analysis capability: a domain transition analysis. You can now view an entire domain transition "call tree", including all the rules and types allowing the transitions.

Many other minor changes and updated were made. As always we welcome bug reports, complaints, and feedback at [email protected]. All tools are distributed in source code form.

Regards, Frank

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

#1 lore raw

Hi,
my name is Mauro Chiarugi, an italian student of University of Ancona. I'd like to port SELinux under Debian, but i don't know now SeLinux very well ;) ..so i'd like be sure that i know all released resources/tools that are now avaible (i'll use LSM tree, with OpenWall + SELinux + LIDS
+ DTE ..). Which tools are avaible now???
I've just seen tresys tools and dte tools (at
http://www.cs.wm.edu/~hallyn/dte/), are there other tools to configure all modules?? Which are most important?? Which do i need??

Thanks

--
sracatus

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

#2 lore raw
Quoted 2 lines · Mauro Chiarugi

my name is Mauro Chiarugi, an italian student of University of Ancona. I'd like to port SELinux under Debian

I've already got SE Linux packaged for Debian. But there's plenty of work to go around if you'd like to join in. We could do with someone packaging and testing the kernel patches for the 2.5.x kernels for a start, I haven't had time to do this for a while.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw

Il Fri, 11 Apr 2003 16:24:43 +1000
Russell Coker <[email protected]> (aka Russell Coker) ha scritto:

Quoted 2 lines · Mauro Chiarugi

I've already got SE Linux packaged for Debian.

Very good!! I've seen your debs now... :)

Quoted 2 lines

But there's plenty of
work to go around if you'd like to join in.

I'd like to join in :)

Quoted 3 lines

We could do with someone
packaging and testing the kernel patches for the 2.5.x kernels for a start, I haven't had time to do this for a while.

Ok, but i'm not a specialist developer.. :)
Let me know how to procede.

--
sracatus

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

#4 lore raw
Quoted 11 lines · Mauro Chiarugi
Quoted 2 lines

But there's plenty of
work to go around if you'd like to join in.

I'd like to join in :)

Quoted 3 lines

We could do with someone
packaging and testing the kernel patches for the 2.5.x kernels for a start, I haven't had time to do this for a while.

Ok, but i'm not a specialist developer.. :)
Let me know how to procede.

Start by getting a Debian 2.4.x system going to get a feel for it. Then try building a 2.5.x kernel with the latest xattr based patches and see how you go.

It's a lot of work, but if you get some parts done then other people can continue.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#5 lore raw

Il Fri, 11 Apr 2003 19:22:23 +1000
Russell Coker <[email protected]> (aka Russell Coker) ha scritto:

Quoted 1 line

Start by getting a Debian 2.4.x system going to get a feel for it.

Ok, debian is my friend :)

Quoted 2 lines

Then try building a 2.5.x kernel with the latest xattr based patches and see how you go.

Ok, i downloaded "2.5 LSM-based Security-Enhanced Linux" from
http://www.nsa.gov/selinux.
I've seen that there is a version named "2.5 Mainline-based Security-Enhanced Linux" too.
Which version do i have to get?? Which version conains "the latest xattr based patches"??

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

#6 lore raw
Quoted 6 lines · Mauro Chiarugi

Ok, i downloaded "2.5 LSM-based Security-Enhanced Linux" from
http://www.nsa.gov/selinux.
I've seen that there is a version named "2.5 Mainline-based Security-Enhanced Linux" too.
Which version do i have to get?? Which version conains "the latest xattr based patches"??

Russell was referring to the 2.5 mainline-based SELinux, but you should be aware that it is a work in progress and is not yet in a fully functional state, as noted on its download page. Hence, you might want to wait until it matures further, at least until the APIs are accepted into the mainline kernel and a corresponding userland is developed (e.g. reworked versions of the patches for login and sshd, and a new version of newrole).

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#7 lore raw
Quoted 7 lines · * Stephen Smalley ([email protected]) [030411 17:13]:

Russell was referring to the 2.5 mainline-based SELinux, but you should be aware that it is a work in progress and is not yet in a fully functional state, as noted on its download page. Hence, you might want to wait until it matures further, at least until the APIs are accepted into the mainline kernel and a corresponding userland is developed (e.g. reworked versions of the patches for login and sshd, and a new version of newrole).

i wanted to test selinux with the new 2.5. ipsec and ipv6. Do you have a timeframe for this?

i am aware that you are almost powerless about the rate at which your api is accepted, but do you have any expectations of any kind, for orientation? do you have a plan B if your /proc interface is not accepted?

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

#8 lore raw
Quoted 7 lines · Andreas Schuldei

i wanted to test selinux with the new 2.5. ipsec and ipv6. Do you have a timeframe for this?

i am aware that you are almost powerless about the rate at which your api is accepted, but do you have any expectations of any kind, for orientation? do you have a plan B if your /proc interface is not accepted?

I'm not sure what you are seeking to test, as the SELinux functionality (mandatory access controls) is orthogonal to ipsec, except for possible future integration for implicit packet labeling based on IPSEC SA and policy-based negotiation. There are known problems with using Selopt labeled networking (CIPSO-based) with ipsec. As for ipv6, the LSM patch only provides hooks for ipv4, and those hooks were rejected for mainline 2.5.

Most of the SELinux network access control and labeling functionality has been temporarily dropped from the mainline 2.5-based SELinux because the existing implementation depended on the rejected networking security fields and hooks. We do plan on restoring aspects of the SELinux network access control functionality in the future with the existing set of hooks plus creative use of NetFilter, but that isn't likely to happen until after the core SELinux functionality (i.e. mandatory access controls for processes, files, System V IPC, and Unix domain socket IPC) has been merged.

Sorry, I can't give a timeframe, as I don't know what to expect from the kernel developer community. With regard to the /proc/pid/attr interface, it isn't a stumbling block if the objection is simply to using proc (although that does seem to be a natural fit for a process attribute API). We could alternatively implement a pair of syscalls (getprocattr and setprocattr, which happens to be the LSM hook interface called by the proc filesystem code), or create a separate pseudo filesystem type. But we haven't actually received any objections yet.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#9 lore raw
In reply to Mauro Chiarugi
Quoted 8 lines · Mauro Chiarugi

my name is Mauro Chiarugi, an italian student of University of Ancona. I'd like to port SELinux under Debian, but i don't know now SeLinux very well ;) ..so i'd like be sure that i know all released resources/tools that are now avaible (i'll use LSM tree, with OpenWall + SELinux + LIDS
+ DTE ..). Which tools are avaible now???
I've just seen tresys tools and dte tools (at
http://www.cs.wm.edu/~hallyn/dte/), are there other tools to configure all modules?? Which are most important?? Which do i need??

Just to clarify, you can't use SELinux+LIDS+DTE together, because they will conflict with each other in their usage of the LSM security fields. SELinux does provide simple support for stacking with the capabilities or dummy modules, and you may be able to stack SELinux with OWLSM (which is not OpenWall, just a port of a subset of OpenWall to LSM by different people) as long as you don't enable CONFIG_OWLSM_FD (which would conflict in its usage of the linux_binprm security field). We typically recommend using SELinux+capabilities, so that you preserve the existing Linux access control logic and API (some applications depend on Linux supporting capabilities).

The Tresys setools were merged into the NSA SELinux releases starting with the January 2003 release; they seem to be the most mature tools available. A couple of simple scripts for policy generation and analysis have been contributed, such as the newrules.pl script (included in the release) and a cando script (see the mailing list archives). The COPS Lab at UNT developed a TE rule browser that operated on the binary policy a while back, but I'm not sure that it is still active or whether it offers any capability beyond the Tresys setools.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#10 lore raw

Il 11 Apr 2003 09:22:57 -0400
Stephen Smalley <[email protected]> ha scritto:

Quoted 3 lines

Just to clarify, you can't use SELinux+LIDS+DTE together, because they will conflict with each other in their usage of the LSM security fields.

[CUT]

Thanks a lot for your help.

bye

--
sracatus

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

#11 lore raw
In reply to Frank Mayer
Quoted 7 lines · Frank Mayer

We just released version 0.8 of our setools packages. The version of setools included in the latest NSA distribution (under selinux/tools/setools) was version 0.7, which we released in February of this year. You can download the complete tar file for versions 0.8 at www.tresys.com/selinux. I will separately send a (rather large) patch file to Steve to update the versions in the selinux sourceforge CVS tree.

Thanks, the new version has been merged into the sourceforge CVS tree now.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


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