snap-confine profile uses 'include' instead of '#include' which breaks apparmor-utils python tools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
Fix Released
|
Undecided
|
Michael Vogt | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Zesty |
Fix Released
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Michael Vogt |
Bug Description
Issue found with Xenial kernel 4.4.0-102 and Zesty kernel 4.10.0-41, across different architectures
Multiple tests from ubuntu_qrt_apparmor test suite failed with the same error message:
ERROR: Syntax Error: Unknown line found in file /etc/apparmor.
include "/var/lib/
(BTW the include and this ld.so.cache are not in the same line, please refer to comment #3 for attachment)
This issue will gone if you downgrade the snapd and ubuntu-
sudo apt-get install snapd=2.28.5 ubuntu-
Debug information:
ubuntu@kernel01:~$ snap version
snap 2.29.3
snapd 2.29.3
series 16
ubuntu 16.04
kernel 4.4.0-102-generic
ubuntu@kernel01:~$ apt list snapd
Listing... Done
snapd/xenial-
N: There are 2 additional versions. Please use the '-a' switch to see them.
ubuntu@kernel01:~$ apt list apparmor -a
Listing... Done
apparmor/
apparmor/
apparmor/xenial 2.10.95-0ubuntu2 s390x
Steps to run the Apparmor test from QA Regression testing suite:
1. git clone --depth 1 https:/
2. sudo ./qa-regression
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.4.0-102-generic s390x
NonfreeKernelMo
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.1-0ubuntu2.13
Architecture: s390x
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
CurrentDmesg:
Date: Thu Nov 23 01:36:31 2017
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lspci:
Lsusb: Error: command ['lsusb'] failed with exit code 1:
PciMultimedia:
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C
SHELL=/bin/bash
ProcFB: Error: [Errno 2] No such file or directory: '/proc/fb'
ProcKernelCmdLine: root=UUID=
RelatedPackageV
linux-
linux-
linux-firmware 1.157.13
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
tags: | added: regression-proposed |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in snapd (Ubuntu Xenial): | |
status: | New → Fix Released |
Changed in snapd (Ubuntu Zesty): | |
status: | New → Invalid |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1734038
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.