Vitavonni

Wed, 14 Jul 2004

SELinux again

With the new libselinux, new policy and the [http://www.nsa.gov/selinux/patches/2.6.7-selinux1.patch.gz Kernel patch for 2.6.7] i got selinux working again on that box. As usual i do have a lot of audit violations i need to sort out...

When doing such upgrades, i always use permissive mode first. I don't like locking myself out of the box...

SELinux

SELinux is kind of cool. I really like the concept.

What ''is'' annoying about SELinux is the complexity.

There are so many fine-grained rules to be written that it takes you ages to setup on a fairly complex system. There is a good repository of pre-written rules available, still you need to add a lot.

Unfortunately i cannot subscribe the SELinux mailing list, the mailserver just refuses to talk to me.

If you intend to install SELinux: it's broken on sid currently. russel said you'll need the latest patches for 2.6 - i guess to support port restrictions - which will bump you to policy version 18.

Right now, the corresponding libselinux1 has not yet hit my mirror, but the latest init from russels pool has. Therefore the box i just prepared doesn't yet boot with selinux.

I promised to publish a couple of notes on setting up SELinux on Debian, here are the first set of them:

  • for any system user (above uid 100, below is okay; usually these are clamav, amavis and such) do change the shell to /bin/false.
  • /etc/cron.daily/standard tries to backup files like "shadow", but it doesn't have the appropriate rights. I just #'ed the backup lines.
  • in postfix, disable all chroots. selinux is better than normal chroots, and it is a lot easier to setup without.
  • remove /dev/[tp]ty[abcdepqrstuvwxyz][0-9a-f] - use pts.
  • if mount lists "unknown" as filesystem for /, "make relabel" won't relabel it. you need to modify the makefile (add a / before the big shellsubst)
  • while running in permissive mode for testing, do not forget "newrole -r sysadm_r", and do use se_dpkg, se_apt-get!
  • /etc/init.d/checkroot.sh and /etc/init.d/mountvirtfs try to "touch" your filesystem. Make that a "true touch".
  • /etc/cron.daily/find - this updates your locatedb. but findutils is an essential package, i suggest to "exit 0" in that script

Le Prince Bleu

http://www.le-prince-bleu.com/ - this is just plain awesome. I really really love this short movie. The quality is amazing. Guess they'll have job offers from all the big movie companies by now. The movie URL is http://perso.club-internet.fr/xauria/forbidden/l921.rig in case you do not have mplayer as plugin installed.

[category: /en | Permalink]
Menu
[planet.debian]
[planet.xmlhack]
[planet SELinux]
[munichblogs]
[email]
[RSS 2 feed]
[English RSS 2]
Categories
July 2004 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728293031
Archives
2010-Mar
2010-Feb
2010-Jan
2009-Dec
2009-Nov
2009-Oct
2009-Sep
2009-Aug
2009-Jul
2009-Jun
2009-May
2009-Apr
2009-Mar
2009-Feb
2009-Jan
2008-Dec
2008-Nov
2008-Oct
2008-Sep
2008-Aug
2008-Jul
2008-May
2008-Apr
2008-Mar
2008-Feb
2008-Jan
2007-Dec
2007-Nov
2007-Oct
2007-Sep
2007-Aug
2007-Jul
2007-Jun
2007-May
2007-Apr
2007-Mar
2007-Feb
2007-Jan
2006-Dec
2006-Nov
2006-Oct
2006-Sep
2006-Aug
2006-Jul
2006-Jun
2006-May
2006-Apr
2006-Mar
2006-Feb
2006-Jan
2005-Dec
2005-Nov
2005-Oct
2005-Sep
2005-Aug
2005-Jul
2005-Jun
2005-May
2005-Apr
2005-Mar
2005-Feb
2005-Jan
2004-Dec
2004-Nov
2004-Oct
2004-Sep
2004-Aug
2004-Jul
Other links:
Swing and the City - Lindy Hop in Munich