Hi,
I'm new to AppArmor and need assistance configuring it for an LXC container.
I have Chrome installed in container ID 105, and AppArmor is preventing its internet access.
I have edited /etc/pve/lxc/105.conf and added:
lxc.apparmor.raw: network inet dgram,
which appears correctly in the generated profile:
#cat /var/lib/lxc/105/apparmor/lxc-105_\<-var-lib-lxc\>
...
# Allow remounting things read-only
mount options=(ro,remount),
network inet dgram,
}
But I keep getting the DENIED error:
#dmesg | grep apparmor
...
apparmor="DENIED" operation="create" class="net" namespace="root//lxc-105_<-var-lib-lxc>" profile="chrome" pid=3728266 comm="Chrome_ChildIOT" family="inet" sock_type="dgram" protocol=0 requested="create" denied="create"
What am I missing?
Thanks
I'm new to AppArmor and need assistance configuring it for an LXC container.
I have Chrome installed in container ID 105, and AppArmor is preventing its internet access.
I have edited /etc/pve/lxc/105.conf and added:
lxc.apparmor.raw: network inet dgram,
which appears correctly in the generated profile:
#cat /var/lib/lxc/105/apparmor/lxc-105_\<-var-lib-lxc\>
...
# Allow remounting things read-only
mount options=(ro,remount),
network inet dgram,
}
But I keep getting the DENIED error:
#dmesg | grep apparmor
...
apparmor="DENIED" operation="create" class="net" namespace="root//lxc-105_<-var-lib-lxc>" profile="chrome" pid=3728266 comm="Chrome_ChildIOT" family="inet" sock_type="dgram" protocol=0 requested="create" denied="create"
What am I missing?
Thanks