Bug 171989 - =net-analyzer/arpwatch-2.1.15-r3 privilege/ownership issue
Bug#: 171989 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: pva@gentoo.org Reported By: wschlich@gentoo.org
Component: Applications
URL: 
Summary: =net-analyzer/arpwatch-2.1.15-r3 privilege/ownership issue
Keywords:  
Status Whiteboard: 
Opened: 2007-03-24 00:49 0000
Description:   Opened: 2007-03-24 00:49 0000
1. Installed =net-analyzer/arpwatch-2.1.15-r3
2. Ran "emerge --config arpwatch" (it did some magic, like adding 
   the user and group "arpwatch" as well as setting ARPUSER="arpwatch"
   in /etc/conf.d/arpwatch)
3. Ran "/etc/init.d/arpwatch start", that failed with the
   following syslog message:
   --8<--
   arpwatch: fopen(/var/lib/arpwatch/eth0.dat): Permission denied
   --8<--

Strangely, /var/lib/arpwatch/eth0.dat is root:root + 0600.
Even removing /var/lib/arpwatch/eth0.dat doesn't help -- it get's
recreated with the above mentioned ownership + permissions.

I suspect arpwatch to drop the privileges *after* the file
gets created?

------- Comment #1 From Peter Volkov 2007-03-27 19:39:37 0000 -------
Fixed in net-analyzer/arpwatch-2.1.15-r4.

And note. In net-analyzer/arpwatch-2.1.15-r4 I've also fixed start/stop
problem.

------- Comment #2 From Wolfram Schlich 2007-03-28 08:14:17 0000 -------
Thanks! :-)