Update how to setup a policy namespace for containers

John Johansen 2019-05-16 21:30:32 +00:00
parent 2e715c3548
commit b728df1280

@ -33,11 +33,14 @@ and to cleanup after the container has exited
```
to add a bounding stack to the current host policy
```
lsm-exec -l apparmor ; aa-exec -p "&:${NS_NAME}:unconfined" -- ${CONTAINER_CMD}
```
to specify the host policy and setup the bounding stack
```
lsm-exec -l apparmor ; aa-exec -p "${HOST_PROFILE}//&:${NS_NAME}:unconfined" -- ${CONTAINER_CMD}
```
and to cleanup after the container has exited
```