*** This bug is a duplicate of bug 2102680 ***
https://bugs.launchpad.net/bugs/2102680
Affects my ubuntu noble system:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
apparmor/noble-updates,now 4.0.1really4.0.1-0ubuntu0.24.04.4 amd64
/usr/sbin/dpkg-reconfigure apparmor
/var/lib/dpkg/info/apparmor.postinst: 148: [: Illegal number: yes
Reloading AppArmor profiles
Warning: found usr.sbin.sssd in /etc/apparmor.d/force-complain, forcing
complain mode
Warning from /etc/apparmor.d (/etc/apparmor.d/usr.sbin.sssd line 63): Caching
disabled for: 'usr.sbin.sssd' due to force complain
--
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:
Confirmed
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 : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp