Skip to contentSkip to conversation

Getting started with SELinux and Slackware

DISCUSSION Lee Lowder 5 participants 8 messages Sep 22, 2005 – Sep 23, 2005 SELinux security module

lore
Share & tools
lore

Lee Lowder

author
#0 lore raw

I am using Slackware 10.2 with kernel 2.6.13.2, and am wanting to get going with SELinux. I know that Timothy Wood had made some packages in the past, but his site (as listed on the SELinux for Distrubtions page) gives a 403 error.

I don't mind installing it all myself, but I am not sure where to start.
I do know I will need PAM, as Slackware does not include it by default.

If someone could point me to some info to help guide me through this, or provide such info, I would greatly appreciate it. Thank you.

FriedBob

--
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
Quoted 2 lines · Lee Lowder

I don't mind installing it all myself, but I am not sure where to start.
I do know I will need PAM, as Slackware does not include it by default.

If Slackware doesn't include PAM then it will be quite a lot of work to add PAM support to all necessary applications.

It would probably be easier to modify the policy to remove *_chkpwd_t and grant every daemon that needs to verify a password read access to shadow_t:file.

Why do you want to work on Slackware? It seems to be a regular occurrance that someone starts work on Slackware SE Linux support, their work doesn't get merged into the Slackware distribution, and then it gets discarded.

While Debian SE Linux support isn't in the greatest shape at the moment the changes are getting merged into the main packages so any work you do won't get wasted.

Of course you could just use Fedora and have it all work.

Signature · 9 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.
#6 lore raw
In reply to Lee Lowder
Quoted 4 lines · Lee Lowder

I am using Slackware 10.2 with kernel 2.6.13.2, and am wanting to get going with SELinux. I know that Timothy Wood had made some packages in the past, but his site (as listed on the SELinux for Distrubtions page) gives a 403 error.

Yes, looks like the old URL is dead. But looking at his top-level site (which redirects to his blog now), I see a reference to ftp://ftp.diyab.net/selinux/ as the new location for his Slackware selinux packages. Looks a little dated (based off the 9 March 2005 release of SELinux).

Quoted 2 lines

I don't mind installing it all myself, but I am not sure where to start.
I do know I will need PAM, as Slackware does not include it by default.

SELinux doesn't strictly require the use of PAM; you can port it to Slackware without necessarily converting to PAM. Using SELinux without PAM (and pam_selinux) just requires policy modifications to allow direct program reading of /etc/shadow and direct patching of login. pam_selinux was actually introduced by Red Hat when they integrated SELinux into Fedora Core; prior to that, login was directly patched for SELinux. So an alternative path is to resurrect the old login patch for SELinux and adjust policy accordingly.

Quoted 2 lines

If someone could point me to some info to help guide me through this, or provide such info, I would greatly appreciate it. Thank you.

Signature · 8 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#2 lore raw
In reply to Russell Coker
Quoted 3 lines · Russell Coker

If Slackware doesn't include PAM then it will be quite a lot of work to add PAM support to all necessary applications.

Last time I tried messing with SELinux on Slack, I was told that it would be easier to install PAM than to modify SELinux stuff to not use it.

Quoted 1 line

It would probably be easier to modify the policy to remove *_chkpwd_t and grant every daemon that needs to verify a password read access to shadow_t:file.

That does not seem too difficult or complicated, so I will give that a go.

Quoted 2 lines

Why do you want to work on Slackware? It seems to be a regular occurrance that someone starts work on Slackware SE Linux support, their work doesn't get merged into the Slackware distribution, and then it gets discarded.

Slackware is the distro I use, and have used for years. I know it and amcomfortable with it. the thought of asking Pat V to merge it never crossed my mind, actually. I'm doing this because it was something I wanted to play with and as a learning experience.

Quoted 5 lines

While Debian SE Linux support isn't in the greatest shape at the moment the changes are getting merged into the main packages so any work you do won't get wasted.

Of course you could just use Fedora and have it all work.

Would the "it just works" thing apply to CentOS as well? Or does RHEL not have the same level of SELinux support as Fedora?

--
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
In reply to Stephen Smalley

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All of the modified slackware sources that I used to build that old release are available on that ftp site (ftp.diyab.net/selinux). I haven't had time to update any of it in a while but it generally just requires checking the newer patches and rebuilding the tgz from the slackbuild script.

I included PAM because I think it has good advantages so all of the packages I built include PAM support. Not sure what would be involved in building without PAM. Most likely it just requires removing the configure flags to enable PAM from the build scripts.

I'll be more than happy to help you out if you want.

Timothy,

Quoted 19 lines · Stephen Smalley
Quoted 4 lines · Lee Lowder

I am using Slackware 10.2 with kernel 2.6.13.2, and am wanting to get going with SELinux. I know that Timothy Wood had made some packages in the past, but his site (as listed on the SELinux for Distrubtions page) gives a 403 error.

Yes, looks like the old URL is dead. But looking at his top-level site (which redirects to his blog now), I see a reference to ftp://ftp.diyab.net/selinux/ as the new location for his Slackware selinux packages. Looks a little dated (based off the 9 March 2005 release of SELinux).

Quoted 2 lines

I don't mind installing it all myself, but I am not sure where to start.
I do know I will need PAM, as Slackware does not include it by default.

Quoted 14 lines

SELinux doesn't strictly require the use of PAM; you can port it to Slackware without necessarily converting to PAM. Using SELinux without PAM (and pam_selinux) just requires policy modifications to allow direct program reading of /etc/shadow and direct patching of login. pam_selinux was actually introduced by Red Hat when they integrated SELinux into Fedora Core; prior to that, login was directly patched for SELinux. So an alternative path is to resurrect the old login patch for SELinux and adjust policy accordingly.

Quoted 2 lines

If someone could point me to some info to help guide me through this, or provide such info, I would greatly appreciate it. Thank you.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDMvG1SYq2KfPEK/gRAmhZAJwL2uR8LksFu8GvUPm7Xm11N5itqgCfZ1Lc MI5lEc0AbeHraiwh7BB+hFM=
=2pzw
-----END PGP SIGNATURE-----

--
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
In reply to Lee Lowder

I've been working on getting SELinux to work on Slackware without PAM and with just one patch per package (that is, not relying on all the patches that are applied before the SELinux patch.) I've got a bunch of packages made but not a working system yet.

I'm still in the early learning phases with regards to SELinux, but here a few thoughts:

- SELinux is one of the most important things to ever hit Linux (in my opinion.) It would be unfortunate if Slackware never gets in on it.

- I doubt SELinux will be merged into the distribution if PAM is part of it, because the Slackware folks are pretty anti-PAM.

- I doubt SELinux will be merged into the distribution if it requires a lot of patches, because Slackware's packages are built mostly straight from the tarballs without patching (a whole bunch of ./configure --with-selinux would be fine.)

Lyle Sigurdson.

--
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 6 lines

I've been working on getting SELinux to work on Slackware without PAM and with just one patch per package (that is, not relying on all the patches that are applied before the SELinux patch.) I've got a bunch of packages made but not a working system yet.

I had considered this but I did not see anything but advantages to using PAM.
The one main hurdle would be recompiling things in slackware to include PAM
support but most of the base things you would need to recompile get recompiled to include selinux support anyhow.

Quoted 10 lines

I'm still in the early learning phases with regards to SELinux, but here a few thoughts:

- SELinux is one of the most important things to ever hit Linux (in my opinion.) It would be unfortunate if Slackware never gets in on it.

- I doubt SELinux will be merged into the distribution if PAM is part of it, because the Slackware folks are pretty anti-PAM.

Pat himself is anti-PAM from what I've heard, although I do not know why, so I doubt it will make it in to slackware.

Quoted 6 lines

- I doubt SELinux will be merged into the distribution if it requires a lot of patches, because Slackware's packages are built mostly straight from the tarballs without patching (a whole bunch of ./configure --with-selinux would be fine.)

Quoted 7 lines

Lyle Sigurdson.

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

--
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
In reply to Lyle Sigurdson
Quoted 4 lines · Lyle Sigurdson

- I doubt SELinux will be merged into the distribution if it requires a lot of patches, because Slackware's packages are built mostly straight from the tarballs without patching (a whole bunch of ./configure --with-selinux would be fine.)

We'd be glad to see the SELinux userland patches get upstreamed rather than just staying as patches in the individual distro packages.

Signature · 8 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.