cachefilesd/cachefilesd-0.10-security-contexts.patch
Steve Dickson 21e4096bd7 - Fix the SELinux policies for cachefilesd.
- Compress the installed policy files.
- Must include sys/stat.h to use stat() and co. [RH BZ 565135].
- Remove tail comments from functions.
2010-03-02 13:34:48 +00:00

28 lines
758 B
Diff

commit e8ce3e8205c9aabfe61bc3b34142b9b98e4e0611
Author: Steve Dickson <steved@redhat.com>
Date: Sat Feb 27 05:00:57 2010 -0500
Set default SELinux security contexts on startup.
Make sure the SELinux security contexts are set on files
and directories that the cachefilesd daemon needs to access.
Signed-off-by: Steve Dickson <steved@redhat.com>
diff --git a/cachefilesd.initd b/cachefilesd.initd
index 06c4237..bbddcbc 100755
--- a/cachefilesd.initd
+++ b/cachefilesd.initd
@@ -49,6 +49,11 @@ case "$1" in
fi
}
+ # Set security contexts
+ /sbin/restorecon /sbin/cachefilesd
+ /sbin/restorecon /dev/cachefiles
+ /sbin/restorecon -R /var/fscache
+
# Start daemon.
daemon --pidfile=$PIDFILE $PROG ${OPTIONS}
RETVAL=$?