diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-02-07 03:35:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-07 03:35:57 +0100 |
commit | f250745fe07fd5e9487b651b4071464c83196738 (patch) | |
tree | 292e20d56f18cbe4d15e03cc546cf3b961e1ee87 /troubleshooting.md | |
parent | dab590d13eddf705f1a088e4a1afceaf0f15bfbb (diff) | |
parent | 1dd7bd0d0f6b581f26642e61e05984fe7eee5a7f (diff) | |
download | podman-f250745fe07fd5e9487b651b4071464c83196738.tar.gz podman-f250745fe07fd5e9487b651b4071464c83196738.tar.bz2 podman-f250745fe07fd5e9487b651b4071464c83196738.zip |
Merge pull request #2269 from rhatdan/selinux
Add documentation on running systemd on SELinux systems
Diffstat (limited to 'troubleshooting.md')
-rw-r--r-- | troubleshooting.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/troubleshooting.md b/troubleshooting.md index d210d85df..3f66b56ef 100644 --- a/troubleshooting.md +++ b/troubleshooting.md @@ -173,3 +173,21 @@ cat ~/.config/containers/storage.conf [storage.options] mount_program = "/bin/fuse-overlayfs" ``` + +### 8) Permission denied when running systemd within a Podman container + +When running systemd as PID 1 inside of a container on an SELinux +separated machine, it needs to write to the cgroup file system. + +#### Symptom + +Systemd gets permission denied when attempting to write to the cgroup file +system, and AVC messages start to show up in the audit.log file or journal on +the system. + +#### Solution + +SELinux provides a boolean `container_manage_cgroup`, which allows container +processes to write to the cgroup file system. Turn on this boolean, on SELinux separated systems, to allow systemd to run properly in the container. + +`setsebool -P container_manage_cgroup true` |