/srv/irclogs.ubuntu.com/2024/03/26/#ubuntu-security.txt

=== chris14_ is now known as chris14
=== JanC_ is now known as JanC
ahasenackhe ubuntu apparmor profile files usually have an include statement at the end, to allow for local customizations in the /etc/apparmor.d/local/<name> file13:44
ahasenackbut some profiles define child profiles13:44
ahasenackI don't see include statements for these child profiles, and that would also not work with dh_apparmor because it only cares about the profile name, assuming that one file defines only one profile13:44
ahasenackI guess this is an open question/issue then? We don't have a way to allow for local customizations of child profiles, defined inside a profile?13:45
ahasenacklike this scenario: https://pastebin.ubuntu.com/p/bDgk4g3Q33/13:46
ahasenackprofile foo could be adapted via new config in local/foo (but not override explicit DENYs it might have, AIUI)13:47
ahasenackbut pofiles bar, ugh, and another, cannot be adapted13:47
georgiagi guess you could add "include <local/foobar>" under profile bar13:49
georgiagbut yeah, that has not been done. I'm not sure if that's something just out of my head but I always saw child profiles as self contained so I didn't find it weird it didn't allow for customizations13:51
ahasenackyeah, they are usually tailored to how the main application is calling the other executables, and not meant as a general profile13:55
ahasenackfor example, I have a dpkg child profile, and I'm 100% sure it would not be applicable as a general dpkg profile13:56
ahasenackbecause I only care about how my app calls dpkg, and it's never in a "install a package for me" mode13:56
ahasenackso the child profile is much simpler, and tighter13:56
ahasenackbut there could be bugs13:56
ahasenackI guess I'm seeing this include from local as a way to work around bugs in the profile without having to change the main config file13:56
georgiagah right. I don't see local as a way to fix bugs. like for example if I want to compile my own qemu and have libvirt point to my own qemu instead, I would add it to local/usr.sbin.libvirtd. or having a config file in a non-default place and allowing it in the local profile, etc. the end result is the same14:00
ahasenackwell, one classical case of local overrides is home directories14:01
ahasenacka home dir doesn't have to be in /home/$user :)14:01
ahasenackclassic snap complaint, btw14:01
georgiagyep, thats true!14:09

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!