touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #123129
[Bug 1521931] Re: apparmor-profile-load returns 1 if apparmor not installed
Hello Pavel, or anyone else affected,
Accepted init-system-helpers into wily-proposed. The package will build
now and be available at https://launchpad.net/ubuntu/+source/init-
system-helpers/1.23ubuntu4 in a few hours, and then in the -proposed
repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed. Your feedback will aid us getting this update
out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed. In either case, details of your testing will help
us make a better decision.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance!
** Changed in: init-system-helpers (Ubuntu Wily)
Status: Confirmed => Fix Committed
** Tags added: verification-needed
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to init-system-helpers in
Ubuntu.
https://bugs.launchpad.net/bugs/1521931
Title:
apparmor-profile-load returns 1 if apparmor not installed
Status in init-system-helpers package in Ubuntu:
Invalid
Status in rsyslog package in Ubuntu:
New
Status in upstart package in Ubuntu:
Fix Released
Status in init-system-helpers source package in Wily:
Fix Committed
Status in rsyslog source package in Wily:
New
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/init/apparmor-profile-load usr.sbin.rsyslogd
end script
and then in /lib/init/apparmor-profile-load:
#!/bin/sh
[ -x /lib/apparmor/profile-load ] && exec /lib/apparmor/profile-load
"$@"
in my case where is no "/lib/apparmor/profile-load" file, so this
scripts return 1, which breaks pre-start and breaks rsyslog starting
I guess that if /lib/init/apparmor-profile-load script checks if file
exists, it should return 0 in case then file doesn't exist
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/init-system-helpers/+bug/1521931/+subscriptions
References