Public bug reported:
Merely running `who` in a clean Ubuntu 26.04 LTS VM with rust-coreutils
0.8.0-0ubuntu3 with LANG=C.UTF-8 causes this violation:
audit: type=1400 audit(1778230747.347:209): apparmor="DENIED"
operation="open" class="file" profile="who"
name="/usr/share/coreutils/locales/uucore/en-US.ftl" pid=3406 comm="who"
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
It's not specific to English though, just `who` happens to be the only
uutils program that ships a en-US.ftl. When running `LANG=fr_FR.UTF-8
who`, the AppArmor violation happens for
/usr/share/coreutils/locales/who/fr-FR.ftl. Consequently, strace shows
openat(AT_FDCWD, "/usr/share/coreutils/locales/who/fr-FR.ftl",
O_RDONLY|O_CLOEXEC) = -1 EACCES (Permission denied)
Curiously, this seems to work for other uutils programs, e.g.:
```
LANG=fr_FR.UTF-8 strace -fvvs1024 -e trace=file uname --help
openat(AT_FDCWD, "/usr/share/coreutils/locales/uname/fr-FR.ftl",
O_RDONLY|O_CLOEXEC) = 3
Affiche certaines informations système.
[...]
```
and no AppArmor violation. `grep -Er 'uutils|locales' /etc/apparmor.d/` is
empty, but there is a separate
/etc/apparmor.d/who profile - so I suppose that's missing something for the
locales.
PackageVersion: 5.0.0~beta1-0ubuntu7
DistroRelease: 26.04
** Affects: apparmor (Ubuntu)
Importance: Undecided
Status: New
** Tags: apparmor regression-release resolute
** Tags added: apparmor regression-release resolute
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2151857
Title:
apparmor="DENIED" operation="open" class="file" profile="who"
name="/usr/share/coreutils/locales/who/fr-FR.ftl"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2151857/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs