bug in handling of setting gid

carter at qosient.com carter at qosient.com
Thu Jan 18 05:55:59 EST 2007


Very interesting, I'll try to fix tonight!!
Carter

Carter Bullard
QoSient LLC
150 E. 57th Street Suite 12D
New York, New York 10022
+1 212 588-9133 Phone
+1 212 588-9134 Fax  

-----Original Message-----
From: Russell Fulton <r.fulton at auckland.ac.nz>
Date: Thu, 18 Jan 2007 11:15:50 
To:Argus <argus-info at lists.andrew.cmu.edu>
Subject: [ARGUS] bug in handling of setting gid

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