Unusable on Ubuntu Hardy when /tmp is not writable
Bug #379318 reported by
Paul Drain
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libapache-mod-evasive (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Using 1.10.1-1 on Hardy with a secured /tmp directory on a shared hosting provider, this module gives me:
[crit] [client x.x.x.x] mod_evasive: Could not open logfile /tmp/dos-x.x.x.x: Permission denied.
This happens when the directory is either protected by a kernel patch (eg. grsecurity) or when it is simply "chattr +s /tmp" 'd
To post a comment you must log in.
This, unfortunately also happens when the /tmp directory is simply unwritable by the www-data user.
Attached is a patch which moves the default log creation directory to /var/cache/apache2, which is actually owned by the www-data user.