mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
mod_apparmor: revert apache 2.4 api fix from commit 2555
This patch reverts commit 2131 which added support for the newer apache 2.4 ap_hook_check_access_ex() api, based on a report from Christian that it broke apache's simple authentication. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
parent
29f1b9ec7f
commit
ada96afd84
1 changed files with 0 additions and 8 deletions
|
@ -401,15 +401,7 @@ register_hooks(apr_pool_t *p)
|
||||||
{
|
{
|
||||||
ap_hook_post_config(aa_init, NULL, NULL, APR_HOOK_MIDDLE);
|
ap_hook_post_config(aa_init, NULL, NULL, APR_HOOK_MIDDLE);
|
||||||
ap_hook_child_init(aa_child_init, NULL, NULL, APR_HOOK_MIDDLE);
|
ap_hook_child_init(aa_child_init, NULL, NULL, APR_HOOK_MIDDLE);
|
||||||
|
|
||||||
#if AP_SERVER_MAJORVERSION_NUMBER == 2 && AP_SERVER_MINORVERSION_NUMBER < 3
|
|
||||||
/* Compatibility with apache 2.2 */
|
|
||||||
ap_hook_access_checker(aa_enter_hat, NULL, NULL, APR_HOOK_FIRST);
|
ap_hook_access_checker(aa_enter_hat, NULL, NULL, APR_HOOK_FIRST);
|
||||||
#else
|
|
||||||
/* apache 2.4 mod_authz hook */
|
|
||||||
ap_hook_check_access_ex(aa_enter_hat, NULL, NULL, APR_HOOK_FIRST, AP_AUTH_INTERNAL_PER_CONF);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ap_hook_post_read_request(aa_enter_hat, NULL, NULL, APR_HOOK_FIRST); */
|
/* ap_hook_post_read_request(aa_enter_hat, NULL, NULL, APR_HOOK_FIRST); */
|
||||||
ap_hook_log_transaction(aa_exit_hat, NULL, NULL, APR_HOOK_LAST);
|
ap_hook_log_transaction(aa_exit_hat, NULL, NULL, APR_HOOK_LAST);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue