Merge pull request #1035 from mssun/master
Disable seccomp and apparmor to compile Redox with Docker image.
This commit is contained in:
commit
79e565717b
|
@ -20,7 +20,14 @@ To unpack:
|
||||||
4. Builds Redox using the `redox` image. The arguments allow the container to use `fuse` and ensure the resulting files are owned by the current user.
|
4. Builds Redox using the `redox` image. The arguments allow the container to use `fuse` and ensure the resulting files are owned by the current user.
|
||||||
5. Runs Redox.
|
5. Runs Redox.
|
||||||
|
|
||||||
On selinux systems, replace #4 with:
|
For SELinux, seccomp, and AppArmor enabled systems, please add following commands to #4 accordingly:
|
||||||
|
```
|
||||||
|
--security-opt label=disable // disable SELinux
|
||||||
|
--security-opt seccomp=unconfined // disable seccomp
|
||||||
|
--security-opt apparmor=unconfined // disable AppArmor
|
||||||
|
```
|
||||||
|
|
||||||
|
E.g., on SELinux systems, replace #4 with:
|
||||||
```
|
```
|
||||||
docker run --cap-add MKNOD --cap-add SYS_ADMIN \
|
docker run --cap-add MKNOD --cap-add SYS_ADMIN \
|
||||||
-e LOCAL_UID="$(id -u)" -e LOCAL_GID="$(id -g)" \
|
-e LOCAL_UID="$(id -u)" -e LOCAL_GID="$(id -g)" \
|
||||||
|
|
Loading…
Reference in a new issue