** No longer affects: apparmor -- 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/2105840
Title: apparmor shell script string comparison error Status in apparmor package in Ubuntu: New Bug description: When I restart the apparmor service on 24.04 I see this error message: ``` Mar 27 12:09:51 hostname apparmor.systemd[582]: Restarting AppArmor Mar 27 12:09:51 hostname apparmor.systemd[582]: /lib/apparmor/apparmor.systemd: 148: [: Illegal number: yes ``` This comes from `/usr/lib/apparmor/rc.apparmor.functions` line 148: ``` if [ "$unconfined_userns" -eq "0" ]; then # tell people their kernel doesn't support userns ``` While sysctl does report a digit for this setting: ``` $ sysctl kernel.apparmor_restrict_unprivileged_userns kernel.apparmor_restrict_unprivileged_userns = 1 ``` The file checked by this script `/sys/kernel/security/apparmor/features/policy/unconfined_restrictions/userns` does not: ``` $ cat /sys/kernel/security/apparmor/features/policy/unconfined_restrictions/userns yes ``` This is not a breaking bug for me, but just wanted to mention this. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2105840/+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