apparmor-profile-load returns 1 if apparmor not installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
init-system-helpers (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
Wily |
Fix Released
|
Undecided
|
Unassigned | ||
rsyslog (Ubuntu) |
New
|
Low
|
Unassigned | ||
Wily |
New
|
Undecided
|
Unassigned | ||
upstart (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
=======
[ SRU Justification ]
1. Impact: users with upstart and without apparmor have init jobs failing to start
2. Test case: apt-get purge apparmor; apt-get install upstart-sysv; apt-get install rsyslog
rsyslog will fail to start
3. Regression potential: we only exit 0 at the end of the script - nothing will change
in cases where apparmor is installed.
=======
Environment:
ubuntu 15.04 with upstart and without apparmor
I tried to upgrade my ubuntu image to 15.10 and upgrading breaks on rsyslog:
start: Job failed to start
i checked dmesg and found this:
[ 525.832963] init: rsyslog pre-start process (3078)
[ 525.833007] init: rsyslog state changed from pre-starting to pre-start
[ 525.834464] init: rsyslog pre-start process (3078) terminated with status 1
[ 525.834639] init: rsyslog goal changed from start to stop
so i looked in pre-start:
pre-start script
/lib/
end script
and then in /lib/init/
#!/bin/sh
[ -x /lib/apparmor/
in my case where is no "/lib/apparmor/
I guess that if /lib/init/
Related branches
description: | updated |
tags: |
added: verification-done removed: verification-needed |
This fixes issues for me:
/lib/init/ apparmor- profile- load:
#!/bin/sh
[ -x /lib/apparmor/ profile- load ] || exit 0
exec /lib/apparmor/ profile- load "$@"