/srv/irclogs.ubuntu.com/2023/12/12/#ubuntu-security.txt

=== chris_ is now known as ChrisADR
ahasenackI'm wondering about best practices12:47
ahasenackI'm confining a little python service, one-shot service12:47
ahasenackruns, and exits12:47
ahasenackit can call, among other things, /usr/bin/cloud-id12:47
ahasenackso I'm creating a child/subprofile for it12:47
ahasenackcloud-id, however, calls many other things, like systemd-detect-virt12:48
ahasenackand I'm creating another subprofile for systemd-detect-virt12:48
ahasenackthese are all nested now12:48
ahasenackpython-service Cx -> cloud-id Cx -> systemd-detect-virt12:48
ahasenackis that ok?12:48
ahasenackI guess one point is if I want that subprofile to be generally available outside of my python-service execution12:49
ahasenackI'm reminded that aa-logprof can't do nested profile log analysis12:49
ahasenackthe tree looks like this for now: https://pastebin.ubuntu.com/p/98hftZCHBd/12:51
ahasenackcrazy, or "well done!"12:52
ahasenack?12:52
ahasenack(ignore the flags=complain, still troubleshooting things)12:52
ahasenackI'm thinking child profile is better, because I'm tailoring this profile exactly to the execution of the python service, so the profile for, say, systemctl, is not a generic profile for all possible use cases of systemctl12:53
ahasenackand so on12:53
ahasenackbeware, https://pastebin.ubuntu.com/p/98hftZCHBd/ crashes the kernel14:02
ahasenackhttps://gitlab.com/apparmor/apparmor/-/issues/34614:02
-ubottu:#ubuntu-security- Issue 346 in apparmor/apparmor "kernel null pointer dereference loading an invalid AppArmor profile, regression since 6.1" [Opened]14:02
ahasenackjust found out the hard way :)14:02
sbeattieahasenack: oh lovely.16:23
=== hank_ is now known as hank

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