Package: proftpd-basic
Version: 1.3.6-4
Severity: normal
Tags: patch
If restorecon exists it will label the directory if SE Linux is running or do
nothing otherwise. With this change (which has already been done for many
other daemons) the correct label will be applied if SE Linux is running.
--- /etc/init.d/proftpd.orig 2019-02-23 09:45:07.121390368 +0000
+++ /etc/init.d/proftpd 2019-02-23 09:45:48.201572489 +0000
@@ -68,6 +68,7 @@
# /run could be on a tmpfs
[ ! -d /run/proftpd ] && mkdir /run/proftpd
+[ -x /sbin/restorecon ] && /sbin/restorecon /run/proftpd
inetd_check()
{