bad permissions set to /etc/hosts.deny #7

Closed
fjoncourt opened this Issue Oct 1, 2013 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

fjoncourt commented Oct 1, 2013

For remainder.

A Debian user has opened the following bug on psad:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724267

with TCPWRAPPERS_BLOCK_METHOD=Y psad modifies the current permissions of /etc/hosts.deny

Owner

mrash commented Oct 3, 2013

Thanks for the bug report. Looks like the tcpwr_rm_block() function is the culprit since it creates a hosts.deny.tmp file according to whatever the umask is, and then replaces hosts.deny with this file. This will be fixed in psad-2.2.2.

Contributor

fjoncourt commented Oct 6, 2013

On 03.10.2013 13:40, Michael Rash wrote:

Thanks for the bug report. Looks like the tcpwr_rm_block() function
is the culprit since it creates a hosts.deny.tmp file according to
whatever the umask is, and then replaces hosts.deny with this file.
This will be fixed in psad-2.2.2.

Great, thanks.

@mrash mrash added a commit that referenced this issue Feb 15, 2014

@mrash mrash tcpwrappers /etc/hosts.deny permissions bug fix
Bug fix to not modify /etc/hosts.deny permissions when removing
tcpwrappers auto-block rules. This issue was reported as Debian bug #724267
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724267) and relayed via
Franck Joncourt. Closes issue #7 on github.
a06ce15
Owner

mrash commented Feb 15, 2014

Closed via a06ce15. Thanks for reporting this Franck.

mrash closed this Feb 15, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment