SELinux issues in Yum Extender 2.9.x
October 28th, 2009
There is a selinux issues in Yum Extender 2.9.x in Fedora 12 (Beta) and F11.
It will give problems when installing new kernels
you will get messages like this
13:33:46 : YUM: /sbin/new-kernel-pkg: line 292: /sbin/depmod: Permission denied 13:34:05 : YUM: /usr/bin/ldd: line 118: /sbin/udevd: Permission denied
It is caused by /usr/share/yumex/yumex-yum-backend is not labeled correctly.
Run the following commands as root to fix it.
chcon system_u:object_r:rpm_exec_t:s0 /usr/share/yumex/yumex-yum-backend restorecon -r /usr/share/yumex
I have requested it to added to standard SELinux policy in Fedora.
https://bugzilla.redhat.com/show_bug.cgi?id=527528
To fix an already installed kernel in F12.
$ rpm -q kernel-PAE --scripts | grep -e '--install' /sbin/new-kernel-pkg --package kernel-PAE --mkinitrd --dracut --depmod --install 2.6.31.1-56.fc12.i686.PAE || exit $?
copy the /sbin/new-kernel-pkg command and run it as root.
/sbin/new-kernel-pkg --package kernel-PAE --mkinitrd --dracut --depmod --install 2.6.31.1-56.fc12.i686.PAE
if you are using a non PAE system then substitute ‘kernel-PAE’ with ‘kernel’ in the rpm -q command.