[packages/pure-ftpd] Rel 10; log apparmor hat name earlier

arekm arekm at pld-linux.org
Tue Jun 27 14:48:20 CEST 2023


commit 103b0b8fffc022ee12aa958ede3e74b87081f8e9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jun 27 13:58:24 2023 +0200

    Rel 10; log apparmor hat name earlier

 pure-ftpd-apparmor.patch | 2 +-
 pure-ftpd.spec           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pure-ftpd.spec b/pure-ftpd.spec
index 5ad4e08..2066952 100644
--- a/pure-ftpd.spec
+++ b/pure-ftpd.spec
@@ -9,7 +9,7 @@
 %bcond_without	tls		# disable SSL/TLS support
 %bcond_without	cap		# disable capabilities
 
-%define	rel	9
+%define	rel	10
 Summary:	Small, fast and secure FTP server
 Summary(pl.UTF-8):	Mały, szybki i bezpieczny serwer FTP
 Name:		pure-ftpd
diff --git a/pure-ftpd-apparmor.patch b/pure-ftpd-apparmor.patch
index 2844f44..74bbf27 100644
--- a/pure-ftpd-apparmor.patch
+++ b/pure-ftpd-apparmor.patch
@@ -84,9 +84,9 @@ diff -ur pure-ftpd-1.0.49.org/src/ftpd.c pure-ftpd-1.0.49/src/ftpd.c
 +
 +#ifdef APPARMOR
 +    if (authresult.apparmor_hat != NULL) {
++        logfile(LOG_INFO, MSG_APPARMOR_HAT, account, authresult.apparmor_hat);
 +        if (change_hat(authresult.apparmor_hat, zrand()) < 0)
 +            die(421, LOG_ERR, MSG_APPARMOR_FAILED);
-+        logfile(LOG_INFO, MSG_APPARMOR_HAT, account, authresult.apparmor_hat);
 +        free(authresult.apparmor_hat);
 +    }
 +#endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pure-ftpd.git/commitdiff/103b0b8fffc022ee12aa958ede3e74b87081f8e9



More information about the pld-cvs-commit mailing list