selinux should be enabled and activate policy in the initramfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
selinux-basics (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
upstart (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: upstart
When trying to install SElinux in Ubuntu 7.04 Feisty, I noticed that upstart doesn't work with SElinux.
To reproduce this you must do the following:
- Activate selinux in kernel boot options in GRUB:
edit the file /boot/grub/
- Install the SElinux packages:
sudo apt-get install selinux-basics selinux-utils checkpolicy policycoreutils selinux-
- Reboot to activate SElinux. After rebooting Ubuntu with upstart, when you execute the command "sestatus" the output is:
SELinux status: disabled
If you install the package "sysvinit", the shutdown is not performed. It ends with:
init: timeout opening/writing control channel /dev/initctl
I think thats another bug. It only happens the first time, just after installing the "sysvinit" package. To conclude the reboot, you have to either use Linux Magic Keys (Alt+SysRq) or press the reset button on the computer box.
After rebooting with the package "sysvinit" installed, if you execute the "sestatus" command with the package "sysvinit" installed, the output is:
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: permissive
Policy version: 21
Policy from config file: refpolicy-targeted
I have tried many many times, but apparently SElinux doesn't work without the sysvinit package installed.
Changed in upstart: | |
status: | New → Confirmed |
Changed in upstart: | |
status: | Confirmed → Won't Fix |
Changed in selinux-basics: | |
status: | New → Won't Fix |
I can confirm that even I have selinux=1 enforcing=1 in grub, selinux is disabled.