Wireshark-commits: [Wireshark-commits] rev 24347: /trunk/ /trunk/: dumpcap.c

Date: Sat, 16 Feb 2008 03:18:42 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=24347

User: guy
Date: 2008/02/16 03:18 AM

Log:
 If we don't have libcap, relinquish special privileges just after
 opening the capture device.  That somewhat fixes bug 2273, although the
 second and subsequent files don't have the right group ownership,
 probably because of the problem described in the comment before
 relinquish_special_privs_perm().
 
 We should also relinquish special privileges *before* trying to open the
 capture pipe, so that we can't open a pipe to which the real user
 doesn't have access.

Directory: /trunk/
  Changes    Path          Action
  +5 -3      dumpcap.c     Modified