# Testing series jammy
###########################################
Creating jammy-2067810
Starting jammy-2067810
Waiting for container IP
.......Waiting for container ssh
....Connection to 10.0.102.211 22 port [tcp/ssh] succeeded!
Waiting for cloud-init to be done
# Testing series jammy ####### ####### ####### ####### ####### #
#######
Creating jammy-2067810
Starting jammy-2067810
Waiting for container IP
.......Waiting for container ssh
....Connection to 10.0.102.211 22 port [tcp/ssh] succeeded!
Waiting for cloud-init to be done
# Latest u-a-t is installed ####### ####### ####### ####### ####### # advantage- tools: br.archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages dpkg/status br.archive. ubuntu. com/ubuntu jammy/main amd64 Packages ####### ####### ####### ####### ####### #
#######
ubuntu-
Installed: 32.3~22.04
Candidate: 32.3~22.04
Version table:
*** 32.3~22.04 500
500 http://
100 /var/lib/
27.7~22.04.1 500
500 http://
#######
# Creating conditions for the bug ####### ####### ####### ####### ####### # ####### ####### ####### ####### ####### #
#######
#######
# Reproducing the bug ####### ####### ####### ####### ####### #
#######
# Triggering apparmor DENIED messages ####### ####### ####### ####### ####### #
#######
# aa-exec -p ubuntu_ pro_esm_ cache// dpkg dpkg --print- foreign- architectures
# dmesg: 9.477:43) : apparmor="DENIED" operation="open" profile= "ubuntu_ pro_esm_ cache// dpkg" name="/ var/lib/ dpkg/arch" pid=1435 comm="dpkg" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[Fri Jun 21 20:38:29 2024] audit: type=1400 audit(171900230
# aa-exec -p ubuntu_ pro_esm_ cache apt-cache policy | head dpkg/status br.archive. ubuntu. com/ubuntu jammy-security/ multiverse amd64 Packages o=Ubuntu, a=jammy- security, n=jammy, l=Ubuntu, c=multiverse, b=amd64 ubuntu. com br.archive. ubuntu. com/ubuntu jammy-security/ universe amd64 Packages o=Ubuntu, a=jammy- security, n=jammy, l=Ubuntu, c=universe, b=amd64 ubuntu. com br.archive. ubuntu. com/ubuntu jammy-security/ restricted amd64 Packages
Package files:
100 /var/lib/
release a=now
500 http://
release v=22.04,
origin br.archive.
500 http://
release v=22.04,
origin br.archive.
500 http://
# dmesg: 9.833:44) : apparmor="DENIED" operation="open" profile= "ubuntu_ pro_esm_ cache// dpkg" name="/ var/lib/ dpkg/arch" pid=1442 comm="dpkg" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 9.853:45) : apparmor="DENIED" operation="open" profile= "ubuntu_ pro_esm_ cache// dpkg" name="/ var/lib/ dpkg/arch" pid=1443 comm="dpkg" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[Fri Jun 21 20:38:29 2024] audit: type=1400 audit(171900230
[Fri Jun 21 20:38:29 2024] audit: type=1400 audit(171900230
# esm-cache.service test ####### ####### ####### ####### ####### #
#######
# /var/lib/ apt/periodic/ contents ####### ####### ####### ####### ####### #
#######
total 8
drwxr-xr-x 2 root root 4096 Jun 21 20:38 .
drwxr-xr-x 5 root root 4096 Jun 21 20:38 ..
# systemctl start esm-cache.service
# dmesg: 0.581:46) : apparmor="DENIED" operation="open" profile= "ubuntu_ pro_esm_ cache// dpkg" name="/ var/lib/ dpkg/arch" pid=1456 comm="dpkg" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 0.581:47) : apparmor="DENIED" operation="open" profile= "ubuntu_ pro_esm_ cache// dpkg" name="/ var/lib/ dpkg/arch" pid=1457 comm="dpkg" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 1.253:48) : apparmor="DENIED" operation="open" profile= "ubuntu_ pro_esm_ cache// apt_methods_ gpgv" name="/ var/lib/ dpkg/arch" pid=1466 comm="dpkg" requested_mask="r" denied_mask="r" fsuid=105 ouid=0 1.257:49) : apparmor="DENIED" operation="open" profile= "ubuntu_ pro_esm_ cache// apt_methods_ gpgv" name="/ var/lib/ dpkg/arch" pid=1468 comm="dpkg" requested_mask="r" denied_mask="r" fsuid=105 ouid=0 1.261:50) : apparmor="DENIED" operation="open" profile= "ubuntu_ pro_esm_ cache// apt_methods_ gpgv" name="/ var/lib/ dpkg/arch" pid=1470 comm="dpkg" requested_mask="r" denied_mask="r" fsuid=105 ouid=0 1.265:51) : apparmor="DENIED" operation="open" profile= "ubuntu_ pro_esm_ cache// apt_methods_ gpgv" name="/ var/lib/ dpkg/arch" pid=1472 comm="dpkg" requested_mask="r" denied_mask="r" fsuid=105 ouid=0 1.273:52) : apparmor="DENIED" operation="open" profile= "ubuntu_ pro_esm_ cache// apt_methods_ gpgv" name="/ var/lib/ dpkg/arch" pid=1475 comm="dpkg" requested_mask="r" denied_mask="r" fsuid=105 ouid=0
[Fri Jun 21 20:38:30 2024] audit: type=1400 audit(171900231
[Fri Jun 21 20:38:30 2024] audit: type=1400 audit(171900231
[Fri Jun 21 20:38:31 2024] audit: type=1400 audit(171900231
[Fri Jun 21 20:38:31 2024] audit: type=1400 audit(171900231
[Fri Jun 21 20:38:31 2024] audit: type=1400 audit(171900231
[Fri Jun 21 20:38:31 2024] audit: type=1400 audit(171900231
[Fri Jun 21 20:38:31 2024] audit: type=1400 audit(171900231
# Updating to proposed ####### ####### ####### ####### ####### # archive. ubuntu. com/ubuntu jammy-proposed main advantage- tools: archive. ubuntu. com/ubuntu jammy-proposed/main amd64 Packages dpkg/status br.archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages br.archive. ubuntu. com/ubuntu jammy/main amd64 Packages
#######
deb http://
dpkg-preconfigure: unable to re-open stdin: No such file or directory
ubuntu-
Installed: 32.3.1~22.04
Candidate: 32.3.1~22.04
Version table:
*** 32.3.1~22.04 500
500 http://
100 /var/lib/
32.3~22.04 500
500 http://
27.7~22.04.1 500
500 http://
# Now there must be no apparmor DENIED messages ####### ####### ####### ####### ####### #
#######
# Triggering apparmor DENIED messages ####### ####### ####### ####### ####### #
#######
# aa-exec -p ubuntu_ pro_esm_ cache// dpkg dpkg --print- foreign- architectures
# dmesg:
# aa-exec -p ubuntu_ pro_esm_ cache apt-cache policy | head dpkg/status archive. ubuntu. com/ubuntu jammy-proposed/main amd64 Packages o=Ubuntu, a=jammy- proposed, n=jammy, l=Ubuntu, c=main, b=amd64 br.archive. ubuntu. com/ubuntu jammy-security/ multiverse amd64 Packages o=Ubuntu, a=jammy- security, n=jammy, l=Ubuntu, c=multiverse, b=amd64 ubuntu. com br.archive. ubuntu. com/ubuntu jammy-security/ universe amd64 Packages
Package files:
100 /var/lib/
release a=now
500 http://
release v=22.04,
origin archive.ubuntu.com
500 http://
release v=22.04,
origin br.archive.
500 http://
# dmesg:
# esm-cache.service test ####### ####### ####### ####### ####### #
#######
# /var/lib/ apt/periodic/ contents ####### ####### ####### ####### ####### #
#######
total 8
drwxr-xr-x 2 root root 4096 Jun 21 20:38 .
drwxr-xr-x 5 root root 4096 Jun 21 20:38 ..
# systemctl start esm-cache.service
# dmesg:
TEST SUCCEEDED