mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
![]() This patch converts the request entry point from using multiple (if necessary) aa_change_hat() calls into a single aa_change_hatv() call, simplifying the code a bit, requiring fewer round trips between mod_apparmor and the kernel for each request, as well as providing more information when the apache profile is in complain mode. Patch history: v1: initial version v2: - the server config (scfg) code accidentally re-added the directory config (dcfg) hat to the vector of hats, fix that - actually add the DEFAULT_URI hat to the vector of hats, instead of only logging that that is happening. - pass errno to ap_log_rerror() if aa_change_hatv() call fails. - don't call aa_change_hat again if aa_change_hatv() call fails, as this is no longer necessary. v3: - Based on feedback from jjohansen, convert exit point aa_change_hat() call to aa_change_hatv(), in order to work around aa_change_hat() bug addressed in trunk rev 2329, which causes the exiting aa_change_hat() call to fail and results in the apache process being killed by the kernel. When it's no longer likely that mod_apparmor could run into a system libapparmor that still contains this bug, this can be converted back. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: John Johansen <john.johansen@canonical.com> |
||
---|---|---|
.. | ||
mod_apparmor | ||
pam_apparmor | ||
tomcat_apparmor |