There is a 3rd level of check that can be applied if those sha1sums
don't match.

sys/kernel/security/apparmor/policy/profiles/usr.sbin.libvirtd.*/raw_hash

should be the same as the sha1sum for raw_data
i.e
$ cat sys/kernel/security/apparmor/policy/profiles/usr.sbin.libvirtd.*/raw_hash
bbdf01649dd59ab1bd3d3696788aa0be9f6f6b03

$ sha1sum 
/sys/kernel/security/apparmor/policy/profiles/usr.sbin.libvirtd.*/raw_data
bbdf01649dd59ab1bd3d3696788aa0be9f6f6b03 
/sys/kernel/security/apparmor/policy/profiles/usr.sbin.libvirtd.18/raw_data


The raw_hash sum is taken at load time, and can be used to verify the sum of 
what was loaded and policy is applying. The raw_hash and sha1sum raw_data 
should always match unless there is memory corruption, or a bug in reading out 
the raw_data file.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1594902

Title:
  Failed to upgrade to libvirt-bin 1.3.1-1ubuntu10.1 on Ubuntu 16.04
  64-bit

Status in apparmor package in Ubuntu:
  New
Status in libvirt package in Ubuntu:
  Confirmed

Bug description:
  Output from 'apt-get upgrade':
  Setting up libvirt-bin (1.3.1-1ubuntu10.1) ...
  initctl: Unable to connect to Upstart: Failed to connect to socket 
/com/ubuntu/upstart: Connection refused
  insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
  insserv: Default-Start undefined, assuming empty start runlevel(s) for script 
`screen-cleanup'
  insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script 
`screen-cleanup'
  initctl: Unable to connect to Upstart: Failed to connect to socket 
/com/ubuntu/upstart: Connection refused
  insserv: warning: script 'binfmt-support' missing LSB tags and overrides
  insserv: Default-Start undefined, assuming empty start runlevel(s) for script 
`binfmt-support'
  insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script 
`binfmt-support'
  initctl: Unable to connect to Upstart: Failed to connect to socket 
/com/ubuntu/upstart: Connection refused
  insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
  insserv: Default-Start undefined, assuming empty start runlevel(s) for script 
`screen-cleanup'
  insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script 
`screen-cleanup'
  initctl: Unable to connect to Upstart: Failed to connect to socket 
/com/ubuntu/upstart: Connection refused
  insserv: warning: script 'binfmt-support' missing LSB tags and overrides
  insserv: Default-Start undefined, assuming empty start runlevel(s) for script 
`binfmt-support'
  insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script 
`binfmt-support'
  initctl: Unable to connect to Upstart: Failed to connect to socket 
/com/ubuntu/upstart: Connection refused
  insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
  insserv: Default-Start undefined, assuming empty start runlevel(s) for script 
`screen-cleanup'
  insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script 
`screen-cleanup'
  initctl: Unable to connect to Upstart: Failed to connect to socket 
/com/ubuntu/upstart: Connection refused
  insserv: warning: script 'binfmt-support' missing LSB tags and overrides
  insserv: Default-Start undefined, assuming empty start runlevel(s) for script 
`binfmt-support'
  insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script 
`binfmt-support'
  Job for libvirt-bin.service failed because the control process exited with 
error code. See "systemctl status libvirt-bin.service" and "journalctl -xe" for 
details.
  invoke-rc.d: initscript libvirt-bin, action "restart" failed.
  dpkg: error processing package libvirt-bin (--configure):
   subprocess installed post-installation script returned error exit status 1
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  
  Output from 'systemctl status libvirt-bin.service':
  ● libvirt-bin.service - Virtualization daemon
     Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor 
preset: enabled)
     Active: inactive (dead) (Result: exit-code) since Tue 2016-06-21 17:55:16 
BST; 4min 52s ago
       Docs: man:libvirtd(8)
             http://libvirt.org
    Process: 2984 ExecStart=/usr/sbin/libvirtd $libvirtd_opts (code=exited, 
status=6)
   Main PID: 2984 (code=exited, status=6)

  Jun 21 17:55:15 lydia systemd[1]: Failed to start Virtualization daemon.
  Jun 21 17:55:15 lydia systemd[1]: libvirt-bin.service: Unit entered failed 
state.
  Jun 21 17:55:15 lydia systemd[1]: libvirt-bin.service: Failed with result 
'exit-code'.
  Jun 21 17:55:16 lydia systemd[1]: libvirt-bin.service: Service hold-off time 
over, scheduling restart.
  Jun 21 17:55:16 lydia systemd[1]: Stopped Virtualization daemon.
  Jun 21 17:55:16 lydia systemd[1]: libvirt-bin.service: Start request repeated 
too quickly.
  Jun 21 17:55:16 lydia systemd[1]: Failed to start Virtualization daemon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1594902/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to