]> err.no Git - systemd/commitdiff
var-run: make sure /var/run/user is properly created and labelled
authorLennart Poettering <lennart@poettering.net>
Thu, 26 Aug 2010 22:07:04 +0000 (00:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Aug 2010 22:07:04 +0000 (00:07 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=627457

units/var-run.service

index 38e072025be4f02bf3d617301bacc72febb74d08..f493ee8ec1e43f77f7afff2e76c973b671654645 100644 (file)
@@ -16,6 +16,7 @@ Before=local-fs.target
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=/bin/touch /var/run/utmp ; /bin/chmod 0664 /var/run/utmp ; /bin/chown root:utmp /var/run/utmp
+ExecStart=/bin/mkdir /var/run/user ; /bin/chmod 0755 /var/run/user ; -/sbin/restorecon /var/run/user
 
 [Install]
 WantedBy=local-fs.target