]> git.pld-linux.org Git - packages/pure-ftpd.git/blobdiff - pure-ftpd-apparmor.patch
Rel 10; log apparmor hat name earlier
[packages/pure-ftpd.git] / pure-ftpd-apparmor.patch
index 2844f446079501379d3893cea2c67dcd347f9fd7..74bbf2782c9d1b0ec5cd050c7d04da7883f5210f 100644 (file)
@@ -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
This page took 0.060933 seconds and 4 git commands to generate.