From 14575c182641365b690a46f7fc072505f0b60c4e Mon Sep 17 00:00:00 2001 From: wang--ge Date: Fri, 5 Jan 2024 17:20:09 +0800 Subject: [PATCH] Fix service error message due to selinux policy mismatch (cherry picked from commit 7012eecf35d0a8bcb4b0f385ca8afab223f86df8) --- proftpd.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/proftpd.spec b/proftpd.spec index 294e4e1..c57f74b 100644 --- a/proftpd.spec +++ b/proftpd.spec @@ -22,7 +22,7 @@ Name: proftpd Version: 1.3.8b -Release: 2 +Release: 3 Summary: Flexible, stable and highly-configurable FTP server License: GPLv2+ URL: http://www.proftpd.org/ @@ -110,6 +110,8 @@ Requires(preun): chkconfig, initscripts Requires(postun): initscripts %endif +Requires: coreutils + Provides: ftpserver %description @@ -360,6 +362,10 @@ fi %endif %post +if [ ! -f /var/run/proftpd/proftpd.delay ]; then + touch /var/run/proftpd/proftpd.delay +fi +chcon -t user_home_t /var/run/proftpd/proftpd.delay %if %{use_systemd} systemctl daemon-reload &>/dev/null || : %endif @@ -383,6 +389,7 @@ fi %preun if [ $1 -eq 0 ]; then # Package removal, not upgrade + rm -rf /var/run/proftpd/proftpd.delay %if %{use_systemd} systemctl --no-reload disable proftpd.service &>/dev/null || : systemctl stop proftpd.service &>/dev/null || : @@ -535,6 +542,9 @@ fi %{_mandir}/man1/ftpwho.1* %changelog +* Fri Jan 05 2024 Ge Wang - 1.3.8b-3 +- Fix service error message due to selinux policy mismatch + * Fri Dec 29 2023 wangkai <13474090681@163.com> - 1.3.8b-2 - Adjust patch number