.org w Debian etchBackport pakietów z testing/unstable do etch:
http://www.wonder.pl/pub/debian/deby/debian-etch-selinux/
Dopisać do /etc/apt/sources.list
deb http://www.wonder.pl/pub/debian/deby/debian-etch-selinux ./
Wykonać:
apt-get update apt-get install make gawk apt-get install selinux-utils checkpolicy sepol-utils selinux-basics libsemanage1 policycoreutils python-selinux python-semanage selinux-basics sepolgen sepol-utils
Do /etc/lilo.conf dopisać:
append="selinux=1 enforcing=0"
/sbin/lilo
# kopt=root=/dev/hdc1 ro
na
# kopt=root=/dev/hdc1 ro selinux=1
update-grub
Oficjalnie w Debianie do wyboru jest selinux-policy-refpolicy-strict lub selinux-policy-refpolicy-targeted. Instalujemy przez apt-get install.
cd /usr/src wgethttp://www.wonder.pl/pub/debian/deby/debian-selinux-policy/refpolicy-trunk-20071106.tar.bz2 tar -xjf refpolicy-trunk-20071106.tar.bz2
svn cohttp://oss.tresys.com/repos/refpolicy/trunk refpolicy
wgethttp://www.wonder.pl/pub/debian/deby/debian-selinux-patches/refpolicy/refpolicy-debian-20071105.patch patch -p0 <refpolicy-debian-20071105.patch
cd refpolicy vim build.conf
TYPE = mcs NAME = refpolicy-mcs-20071106 DISTRO = debian MONOLITHIC=n QUIET=y
make conf make modules make install make install-src
vim /etc/selinux/config
SELINUX=permissive SELINUXTYPE=refpolicy-mcs-20071106 SETLOCALDEFS=0
/etc/pam.d/login
session required pam_selinux.so multiple
/etc/pam.d/ssh
session required pam_selinux.so
/etc/default/rcS
FSCKFIX=yes
/etc/udev/udev.conf
no_static_dev="1"
cd /tmp/ wgethttp://www.wonder.pl/pub/debian/deby/debian-selinux-patches/cron.shadow.nobackup.diff wget
http://www.wonder.pl/pub/debian/deby/debian-selinux-patches/sysklogd.diff cd /etc/init.d/ patch -p0 </tmp/sysklogd.diff cd /etc/cron.daily/ patch -p0 </tmp/cron.shadow.nobackup.diff
make load restorecon -Rv / touch /.autorelabel reboot
|
![]() |
|