bug in handling of setting gid

Russell Fulton r.fulton at auckland.ac.nz
Wed Jan 17 17:15:50 EST 2007


Hi Folks,

I'm rebuilding a number of my sensors and putting argus 3.0 on them. 
I've been playing with the -u and -g flags and found -g always give a
permission denied error from setgid.  I looked at the source and as I
had guessed Carter had changed the uid before the gid :)  I'm pleased
other do things like this, it make me feel much better ;)  Fix is to
swap the bits of code in ArgusOutput.c that reset the gid and uid.


I also tried the -C <chroot dir>  but could not make it work.  I kept
getting message:

argus[22245]: 17 Jan 07 21:14:05.576373 Cannot map stdout to /dev/null

I don't have time to pursue that one right now ( some of my sensor
hardware has to go back to the leaser next week and I only got the
replacement last week!  Thank heavens we have given up leasing servers!).

Russell.





More information about the argus mailing list