Bug#923033: proftpd-basic: needs to set the SE Linux context after creating a directory

Russell Coker russell at coker.com.au
Sat Feb 23 10:03:43 GMT 2019


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()
 {



More information about the Pkg-proftpd-maintainers mailing list