=== chris14_ is now known as chris14 === jccgjw1 is now known as jccgjw [16:19] test [16:22] worked [16:33] hi #security, apparmor question [16:34] I *think* that after I enabled these systemd isolation features in a service (https://pastebin.ubuntu.com/p/zdbwSXbSMQ/), I started getting the apparmor "failed name lookup - disconnected path" errors [16:34] I'm about to try removing some of those changes, but this test takes a long time to run, like 2h [16:34] and I wanted to get some input here before [16:34] maybe you can spot that it is true, and point me at which one of the changes in the systemd service file could trigger this error? [16:35] I'm thinking PrivateTmp, just because it's the only thing file-system related, but I don't really know [16:35] this was run inside a lxd container [16:36] this is also a weird one, name="apparmor/.null": [16:36] pparmor="DENIED" operation="getattr" class="file" info="Failed name lookup - disconnected path" error=-13 namespace="root//lxd-upro-behave-bionic-system-under-test-0311-181926277595_" profile="ubuntu_pro_esm_cache" name="apparmor/.null" pid=7519 comm="python3" requested_mask="r" denied_mask="r" fsuid=1000000 ouid=0 [16:36] georgiag ^ [16:39] ahasenack: `PrivateTmp=` causes mount name spaces to be used which is what leads to those disconnected path errors, afaik [16:40] so it's a tradeoff: if using privatetmp, I have to use flags=(attach_disconnected) in the profile [19:06] ahasenack: and the apparmor/.null bit is apparmor replacing the filedescriptor for the denied file with a new one, so that the process doesn't run with *no* filedescriptor where it expected one [19:07] ahasenack: (a decade or two ago it was popular to run setuid programs without stdin or stdout or whatever and then hilarity ensues when they open() something for writing, and unrelated status output also goes to that file..) === jccgjw1 is now known as jccgjw [20:19] sarnold: do you know if "flags=(attach_disconnected)" is propagated to child profiles? [20:20] ahasenack: I don't know but I would guess it isn't [20:20] I'm thinking it's not, based on what I just saw in the logs of my test... [20:20] because I added the flag to the parent profile, and now the logs have the same error but all in child profiles [20:20] heh that's what that sounds like === jccgjw1 is now known as jccgjw === chris14_ is now known as chris14