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:
Richard Su 2014-07-21 19:38:07 -07:00
parent aeb77417bb
commit bd228e4b3a
2 changed files with 2 additions and 0 deletions

View File

@ -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]

View File

@ -1,3 +1,4 @@
mysql-dev
pip-and-virtualenv
pip-manifest
selinux