Note that in process of verifying a new rule for ```operation="open" profile="ubuntu_pro_esm_cache" name="/proc/sysinfo" pid=2715 comm="python3" requested_mask="r"``` fixes for the error reported, the following other DENIED message was revealed which was not present before: ``` Nov 25 19:31:25 alan-jammy-krxpykkdsk kernel: audit: type=1400 audit(1795635085.435:50): apparmor="DENIED" operation="open" profile="ubuntu_pro_esm_cache_systemd_detect_virt" name="/proc/sysinfo" pid=4228 comm="systemd-detect-" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 ```
To ensure both messages do not show up in Jammy/Noble/Resolute, I tested with a proposed package built from https://github.com/canonical/ubuntu-pro-client/pull/3655. Summarized is the verification output (same flow for all of Jammy, Noble, Resolute) that ensures the package from proposed rids of the DENIED messages. Excerpt from Noble, same worked for Jammy and Resolute: ``` ubuntu@alan-noble-zcklnasrsz:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04.5 LTS Release: 24.04 Codename: noble ubuntu@alan-noble-zcklnasrsz:~$ journalctl -k --no-pager | grep 'apparmor="DENIED"' | grep 'ubuntu_pro_esm_cache' ubuntu@alan-noble-zcklnasrsz:~$ START="$(date '+%Y-%m-%d %H:%M:%S')" ubuntu@alan-noble-zcklnasrsz:~$ sudo apt update ... ... ... Fetched 31.1 MB in 4s (7577 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 77 packages can be upgraded. Run 'apt list --upgradable' to see them. ubuntu@alan-noble-zcklnasrsz:~$ sleep 10 ubuntu@alan-noble-zcklnasrsz:~$ journalctl -k --no-pager --since "$START" | grep 'apparmor="DENIED"' | grep 'ubuntu_pro_esm_cache' Nov 26 20:03:00 alan-noble-zcklnasrsz kernel: audit: type=1400 audit(1795723380.973:121): apparmor="DENIED" operation="open" class="file" profile="ubuntu_pro_esm_cache" name="/proc/sysinfo" pid=3007 comm="python3" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 ubuntu@alan-noble-zcklnasrsz:~$ sudo dpkg -i noble-s390x-c2d5be14f581e0cd7e022fd85e135f19-ubuntu-pro-client.deb (Reading database ... 66557 files and directories currently installed.) Preparing to unpack noble-s390x-c2d5be14f581e0cd7e022fd85e135f19-ubuntu-pro-client.deb ... Unpacking ubuntu-pro-client (38ubuntu0) over (37.2ubuntu~24.04.1) ... Setting up ubuntu-pro-client (38ubuntu0) ... Installing new version of config file /etc/apparmor.d/ubuntu_pro_esm_cache ... Processing triggers for man-db (2.12.0-4build2) ... ubuntu@alan-noble-zcklnasrsz:~$ sudo aa-status | grep ubuntu_pro_esm_cache ubuntu_pro_esm_cache ubuntu_pro_esm_cache//apt_methods ubuntu_pro_esm_cache//apt_methods_gpgv ubuntu_pro_esm_cache//cloud_id ubuntu_pro_esm_cache//dpkg ubuntu_pro_esm_cache//ps ubuntu_pro_esm_cache//ubuntu_distro_info ubuntu_pro_esm_cache_systemctl ubuntu_pro_esm_cache_systemd_detect_virt ubuntu@alan-noble-zcklnasrsz:~$ START="$(date '+%Y-%m-%d %H:%M:%S')" ubuntu@alan-noble-zcklnasrsz:~$ sudo apt update ... ... ... Reading package lists... Done Building dependency tree... Done Reading state information... Done 76 packages can be upgraded. Run 'apt list --upgradable' to see them. ubuntu@alan-noble-zcklnasrsz:~$ sleep 10 ubuntu@alan-noble-zcklnasrsz:~$ journalctl -k --no-pager --since "$START" | grep 'apparmor="DENIED"' | grep 'ubuntu_pro_esm_cache' ``` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2156933 Title: ubuntu_pro_esm_cache apparmor DENIED audit messages for comm="python3" when reading "/proc/sysinfo" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2156933/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
