|
环境:
hardened/linux/amd64/selinux + targets/desktop
gcc-4.5.3, glibc-2.13-r4, hardened toolchain
kernel 3.0.4-hardened-r1 x86_64
sys-apps/portage-2.2.0_alpha54
SELinux strict policy
emerge --info: http://pastebin.com/j03JXhyk
试用Gentoo hardened半月有余,麻烦真是无穷无尽... 名副其实的"hardened"啊...
PaX和hardened toolchain联手制造了无数问题,不过它们的成绩未必及的上首先被我disable掉的SELinux... 请教Google大神无果,只好到这里求助了。
- SELinux似乎是禁止一个su出来的root运行emerge的(获得不了staff_r的role)。不过不在tmux/X/urxvt中运行emerge对我来说是难以容忍的一件事... 有没有什么workaround允许emerge运行于一个普通用户的tmux session中?
(呃,弄出一个SSH session的wordaround还是算了吧...)
每次用su出的root身份运行emerge到fetch阶段,Python都会扔出这个错误:- OSError: [Errno 22] Invalid argument
- /usr/lib64/portage/pym/portage/_selinux.py
复制代码 难道与我启用的usersandbox/userpriv有关?
- 一个桌面系统究竟需要emerge哪些policy?eix sec-policy/ 看起来让人头晕眼花...
目前我安装的policy有:- sec-policy/selinux-acct
- sec-policy/selinux-acpi
- sec-policy/selinux-apm
- sec-policy/selinux-base-policy
- sec-policy/selinux-clamav
- sec-policy/selinux-dbus
- sec-policy/selinux-desktop
- sec-policy/selinux-gnupg
- sec-policy/selinux-gpg
- sec-policy/selinux-gpm
- sec-policy/selinux-java
- sec-policy/selinux-ldap
- sec-policy/selinux-logrotate
- sec-policy/selinux-mono
- sec-policy/selinux-mplayer
- sec-policy/selinux-ntp
- sec-policy/selinux-openldap
- sec-policy/selinux-openvpn
- sec-policy/selinux-ppp
- sec-policy/selinux-screen
- sec-policy/selinux-shorewall
- sec-policy/selinux-shutdown
- sec-policy/selinux-sudo
- sec-policy/selinux-uptime
- sec-policy/selinux-vpn
- sec-policy/selinux-wine
- sec-policy/selinux-wireshark
- sec-policy/selinux-xfs
- sec-policy/selinux-xserver
复制代码
- sec-policy/selinux-gpg-2.20110726-r1发布已逾一周,compile phase上依旧惨败...
- >>> Source configured.
- >>> Compiling source in /var/tmp/portage/sec-policy/selinux-gpg-2.20110726-r1/work ...
- make -j2 -j1 NAME=strict -C /var/tmp/portage/sec-policy/selinux-gpg-2.20110726-r1/work//strict
- make: Entering directory `/var/tmp/portage/sec-policy/selinux-gpg-2.20110726-r1/work/strict'
- Compiling strict gpg module
- /usr/bin/checkmodule: loading policy configuration from tmp/gpg.tmp
- gpg.te":354:ERROR 'syntax error' at token 'mutt_manage_tmp_files' on line 29970:
- mutt_manage_tmp_files(gpg_t)
- #line 354
- /usr/bin/checkmodule: error(s) encountered while parsing configuration
- make: *** [tmp/gpg.mod] Error 1
- make: Leaving directory `/var/tmp/portage/sec-policy/selinux-gpg-2.20110726-r1/work/strict'
复制代码 诡异的是全知全能的Google这次居然没给出解决方法...
- hardened-development overlay是否有必要使用?
|
|