[karmic] profiles not (always) loaded on boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Released
|
Undecided
|
Kees Cook |
Bug Description
Binary package hint: apparmor
When I reboot, only the /sbin/dhclient3 profile is loaded:
$ sudo aa-status
apparmor module is loaded.
3 profiles are loaded.
3 profiles are in enforce mode.
/usr/
/sbin/dhclient3
/usr/
0 profiles are in complain mode.
1 processes have profiles defined.
1 processes are in enforce mode :
/sbin/dhclient3 (3421)
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
$ ls -l /etc/apparmor.
total 448
-rw------- 1 root root 15073 2009-07-18 09:50 gdm-guest-session
-rw------- 1 root root 40099 2009-07-18 09:50 sbin.dhclient3
-rw------- 1 root root 204425 2009-07-18 09:50 usr.bin.evince
-rw------- 1 root root 75465 2009-07-18 09:50 usr.bin.firefox-3.0
-rw------- 1 root root 10561 2009-07-18 09:50 usr.bin.
-rw------- 1 root root 57634 2009-07-18 09:50 usr.sbin.cupsd
-rw------- 1 root root 21105 2009-07-18 09:50 usr.sbin.ntpd
-rw------- 1 root root 17241 2009-07-18 09:50 usr.sbin.tcpdump
I must reload apparmor to get all the profiles:
$ sudo /etc/init.
* Reloading AppArmor
Warning: found /etc/apparmor.
[jamie@severus ~]$ sudo aa-status
apparmor module is loaded.
12 profiles are loaded.
11 profiles are in enforce mode.
/usr/
/usr/
/usr/sbin/ntpd
/usr/
/usr/
/usr/
/sbin/dhclient3
/usr/bin/evince
/usr/
/usr/sbin/cupsd
/usr/
1 profiles are in complain mode.
/usr/
5 processes have profiles defined.
1 processes are in enforce mode :
/sbin/dhclient3 (3421)
0 processes are in complain mode.
4 processes are unconfined but have a profile defined.
/usr/
/usr/
/usr/sbin/cupsd (4137)
/usr/sbin/ntpd (3881)
$ ls -l /etc/apparmor.
total 448
-rw------- 1 root root 15073 2009-07-18 10:06 gdm-guest-session
-rw------- 1 root root 40099 2009-07-18 10:06 sbin.dhclient3
-rw------- 1 root root 204425 2009-07-18 10:06 usr.bin.evince
-rw------- 1 root root 75465 2009-07-18 10:06 usr.bin.firefox-3.0
-rw------- 1 root root 10561 2009-07-18 10:06 usr.bin.
-rw------- 1 root root 57634 2009-07-18 10:06 usr.sbin.cupsd
-rw------- 1 root root 21105 2009-07-18 10:06 usr.sbin.ntpd
-rw------- 1 root root 17241 2009-07-18 10:06 usr.sbin.tcpdump
I do use ifupdown to manage my eth0 interface (ie 'iface eth0 inet dhcp' is in /etc/network/
$ apt-cache policy dhcp3-client
dhcp3-client:
Installed: 3.1.2-1ubuntu5
$ tail -5 /etc/network/
# Load the profile
if [ -s "$PROFILE" ]; then
"$PARSER" -a "$PROFILE" || true
fi
ProblemType: Bug
ApparmorStatusO
Error: command /usr/sbin/
apparmor module is loaded.
Architecture: amd64
Date: Sat Jul 18 10:01:28 2009
DistroRelease: Ubuntu 9.10
Package: apparmor 2.3.1+1403-0ubuntu4
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: apparmor
Uname: Linux 2.6.31-3-generic x86_64
From IRC:
10:15 < jdstrand> kees: btw, I just noticed that my libvirtd profile has a symlink in force-comlain *and* has:
10:15 < jdstrand> /usr/sbin/libvirtd flags=(complain) {
10:15 < jdstrand> kees: however, it is not in the cache. complain mode only profiles should be in the cache, no (I mean, we still need to load them on boot)?
I'm not sure if this is related, a bug or intended behavior.