linux - Does AppArmor uses LXC? -
i'm trying use apparmor , generate profiles 'aa-genprof' script 'apparmor-utils' package.
i have noticed times script includes lxc abstractions 'container-base' , 'start-container' new created profile, including them '/etc/apparmor.d/abstractions/lxc'.
#include <abstractions/lxc/container-base> #include <abstractions/lxc/start-container>
i have tried on several ubuntu distributions. have noticed when lxc not installed on system, not using it, , include files not exist.
i have been searched lot on web , didn't find nothing..
someone can explain this?
does apparmor uses lxc containers?
if does, how system security influenced? if doesn't - apparmor doing it?
how can control feature?
example profile created on python script uses networking..
the created profile:
# last modified: tue mar 28 17:00:29 2017 #include <tunables/global> /home/user/x.py { #include <abstractions/base> #include <abstractions/lxc/container-base> #include <abstractions/python> /bin/dash r, /home/user/x.py r, /sbin/ifconfig r, /usr/bin/python2.7 ix, }
the python script code:
#!/usr/bin/python import os print os.system("ifconfig eth0 up")
cheers
Comments
Post a Comment