← Back to team overview

touch-packages team mailing list archive

[Bug 1521931] [NEW] apparmor-profile-load returns 1 if apparmor not installed

 

Public bug reported:

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

** Affects: init-system-helpers (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: rsyslog (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: rsyslog (Ubuntu)
   Importance: Undecided
       Status: New

** Description changed:

  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
+     /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
  
- 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
+ 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

-- 
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:
  New
Status in rsyslog package in Ubuntu:
  New

Bug description:
  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


Follow ups