Fix /var/run SELinux file contexts
/var/run/<service> needs to be relabeled with the correct file contexts. With systemd, these directories are created anew each boot by /lib/systemd/system/<service>-create-dir.service. os-svc-daemon was updated to correct the file contexts. Change-Id: I6487d0726db08912eed3062dfee2552940eadcfb Closes-Bug: 1346559
This commit is contained in:
parent
aeb77417bb
commit
bd228e4b3a
|
@ -179,6 +179,7 @@ Description=Create /var/run/$dirname
|
|||
|
||||
[Service]
|
||||
ExecStartPre=/bin/mkdir -p /var/run/$dirname
|
||||
ExecStartPre=/usr/local/bin/restore-selinux-file-context /var/run/$dirname
|
||||
ExecStart=/bin/chown -R $user:$user /var/run/$dirname
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
mysql-dev
|
||||
pip-and-virtualenv
|
||||
pip-manifest
|
||||
selinux
|
||||
|
|
Loading…
Reference in New Issue