mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Update how to setup a policy namespace for containers
parent
64945c059a
commit
5149db8eac
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ lsm=apparmor
|
|||
??? link anchor to setting config/lsm/grub default
|
||||
|
||||
### No host policy on container
|
||||
|
||||
If there is no policy defined at the host level for the container tasks then, a plain transition to the apparmor policy namespace for the container can be done.
|
||||
|
||||
```
|
||||
sudo mkdir /sys/kernel/security/apparmor/policy/namespaces/${NS_NAME}
|
||||
aa-exec -p ":${NS_NAME}:unconfined" -- ${CONTAINER_CMD}
|
||||
|
|
Loading…
Add table
Reference in a new issue