Page MenuHomeSolus

Update apparmor to 2.13.3
ClosedPublic

Authored by livingsilver94 on Oct 24 2019, 12:40 PM.
Tags
None
Referenced Files
F10829429: D7478.id18909.diff
Sun, Jun 4, 12:07 PM
F10825585: D7478.diff
Sun, Jun 4, 12:36 AM
F10792034: D7478.diff
Sat, May 27, 5:54 AM
F10785223: D7478.id.diff
Fri, May 26, 3:29 AM
F10780325: D7478.id.diff
Thu, May 25, 12:14 AM
F10739940: D7478.diff
Sat, May 13, 11:30 PM
F10709751: D7478.id.diff
Apr 28 2023, 6:07 AM
F5275742: aa-lsm.out.4256
Oct 24 2019, 6:37 PM
Tokens
"Burninate" token, awarded by Girtablulu.

Diff Detail

Repository
R3611 apparmor
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I'm not entirely sure how to test it and whether it requires revdeps rebuild. Suggestions welcome.

Girtablulu added inline comments.
package.yml
51

No check?

I tested T7772 and it's fixed now, but what's suspicious is that sudo apparmor_status lists:

apparmor module is loaded.
2 profiles are loaded.
2 profiles are in enforce mode.
   /usr/sbin/sshd
   /usr/sbin/sshd//passwd
0 profiles are in complain mode.
0 processes have profiles defined.
0 processes are in enforce mode.
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.

There are no profiles listed that are built in var/cache/aa-lsm-hook. Also, sudo apparmor_parser --print-cache-dir reports /var/cache/apparmor/ab6ae91e.0, not /var/cache/aa-lsm-hook/ab6ae91e.0.
I don't know much of apparmor so consider that maybe I'm telling fairy tales, but this kinda suggests me there's something wrong somewhere. Can you please confirm that the outputs I posted are correct despite the presence of aa-lsm-hook?

Run sudo aa-lsm-hook-load and try again.

Nothing changes, outputs are exactly the same.
Plus, after a reboot:

❯ sudo apparmor_status                  
Password: 
apparmor module is loaded.
0 profiles are loaded.
0 profiles are in enforce mode.
0 profiles are in complain mode.
0 processes have profiles defined.
0 processes are in enforce mode.
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.

System is like "you saw nothing...".

Well it's only going to load profiles for things that are running. So you may need to install a new Snap package to test.

OK profiles are loaded on-demand.
2 things to note:

  • sudo apparmor_parser --print-cache-dir still outputs a directory not tied to aa-lsm-hook even when snapd profiles are active
  • For every snap package I want to run I get snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks. Maybe snapd requires a rebuild?

More information:

❯ sudo ls /var/cache/apparmor/ab6ae91e.0
snap.chromium.chromedriver  snap-confine.core.7917   snap.core.hook.configure  snap-update-ns.chromium  snap-update-ns.spotify
snap.chromium.chromium      snap-confine.snapd.4992  snap.spotify.spotify      snap-update-ns.core
❯ sudo ls /var/cache/aa-lsm-hook/ab6ae91e.0
bin.ping  lsb_release  nvidia_modprobe  sbin.klogd  sbin.syslogd  sbin.syslog-ng  usr.lib64.snapd.snap-confine

Can you run sudo strace -o aa-lsm.out -ytff aa-lsm-hook-load and bundle up all of the aa-lsm.out* files? Thanks.

This revision is now accepted and ready to land.Dec 22 2019, 5:49 PM
This revision was automatically updated to reflect the committed changes.