Skip to contentSkip to conversation

Gentoo SELinux problem in enforcing mode

DISCUSSION Tetsuji Maverick Rai 2 participants 3 messages May 24, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

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

Hi,

I installed SELinux on one of my Gentoo box but it doesn't work in
enforcing mode at all. It looks like almost anything is denied even
with the base policy as provided in Gentoo's package. For example, if enforcing mode is enabled during an X Window session, all inputs from
the mouse or keyboard is denied. On commandline console,
"ctrl+alt+del" gives "reboot not permitted"-like error...

I have tried SELinux with old Redhat some years ago, and didn't find such a problem and now I feel this is very unusual. What wrong do you
think I am doing? I have tried with generic 2.6.16.16, but now I'm
installing 2.6.16-rc6 plus nsa's patch at
http://www.nsa.gov/selinux/code/download5.cfm (but other file, policy, libselinux etc are from Gentoo's package). What's the difference in this patch from the generic kernel?

Any hint/suggestion is appreciated!

regards,

- -Tetsuji
- --
Tetsuji 'Maverick' Rai
Main http://maverick6664.bravehost.com/
Profile:
http://setiweb.ssl.berkeley.edu/beta/view_profile.php?userid=123
pubkey http://mav.atspace.com/tmr_at_gmail.txt
PGP Key ID: 82335CD9
Key fingerprint = 41CA 94B4 2A89 3FF1 5B11 BC37 D597 E667 8233 5CD9

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

iD8DBQFEdKAj1ZfmZ4IzXNkRAnz6AJ9XlBTLXMqr1gU+s8gjjYGWeMNN/gCfYhSy UqCzqeRnwMccMwVrxmbPZeg=
=GAHq
-----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.

#1 lore raw
Quoted 6 lines · Tetsuji Maverick Rai

I installed SELinux on one of my Gentoo box but it doesn't work in
enforcing mode at all. It looks like almost anything is denied even
with the base policy as provided in Gentoo's package. For example, if enforcing mode is enabled during an X Window session, all inputs from
the mouse or keyboard is denied. On commandline console,
"ctrl+alt+del" gives "reboot not permitted"-like error...

That's a question for the Hardened Gentoo folks, assuming you are just using their packages for SELinux and not trying to mix them with upstream ones. But last I looked, Hardened Gentoo was limited to server systems, not desktops, so they omit the X-related policy and are also strict policy-based rather than targeted policy-based.

Quoted 7 lines

I have tried SELinux with old Redhat some years ago, and didn't find such a problem and now I feel this is very unusual. What wrong do you
think I am doing? I have tried with generic 2.6.16.16, but now I'm
installing 2.6.16-rc6 plus nsa's patch at
http://www.nsa.gov/selinux/code/download5.cfm (but other file, policy, libselinux etc are from Gentoo's package). What's the difference in this patch from the generic kernel?

I don't think that will help, and it isn't a good idea to mix and match. We only periodically make updated releases on nsa.gov, and they are primarily targeted at the distro package maintainers, not at end users (and in the case of Fedora, they actually track our bleeding edge from the selinux sourceforge CVS/subversion tree for the SELinux userland and the upstream kernel for the kernel code). Most end users are using the distro packages these days.

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.
#2 lore raw

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

Quoted 22 lines · Stephen Smalley
Quoted 6 lines · Tetsuji Maverick Rai

I installed SELinux on one of my Gentoo box but it doesn't work in
enforcing mode at all. It looks like almost anything is denied even
with the base policy as provided in Gentoo's package. For example, if enforcing mode is enabled during an X Window session, all inputs from
the mouse or keyboard is denied. On commandline console,
"ctrl+alt+del" gives "reboot not permitted"-like error...

That's a question for the Hardened Gentoo folks, assuming you are just using their packages for SELinux and not trying to mix them with upstream ones. But last I looked, Hardened Gentoo was limited to server systems, not desktops, so they omit the X-related policy and are also strict policy-based rather than targeted policy-based.

Quoted 7 lines

I have tried SELinux with old Redhat some years ago, and didn't find such a problem and now I feel this is very unusual. What wrong do you
think I am doing? I have tried with generic 2.6.16.16, but now I'm
installing 2.6.16-rc6 plus nsa's patch at
http://www.nsa.gov/selinux/code/download5.cfm (but other file, policy, libselinux etc are from Gentoo's package). What's the difference in this patch from the generic kernel?

Quoted 8 lines

I don't think that will help, and it isn't a good idea to mix and match. We only periodically make updated releases on nsa.gov, and they are primarily targeted at the distro package maintainers, not at end users (and in the case of Fedora, they actually track our bleeding edge from the selinux sourceforge CVS/subversion tree for the SELinux userland and the upstream kernel for the kernel code). Most end users are using the distro packages these days.

okay,

Thank you for your advice.

- -Tetsuji
- --
Tetsuji 'Maverick' Rai
Main http://maverick6664.bravehost.com/
Profile:
http://setiweb.ssl.berkeley.edu/beta/view_profile.php?userid=123
pubkey http://mav.atspace.com/tmr_at_gmail.txt
PGP Key ID: 82335CD9
Key fingerprint = 41CA 94B4 2A89 3FF1 5B11 BC37 D597 E667 8233 5CD9

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

iD8DBQFEdKd31ZfmZ4IzXNkRAiOiAKDwx9WI4QYRKyhXgCuG4erem1n4qgCfe82e hHKpn+IGNU8RdBPY0nE97PA=
=wu+g
-----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.