aboutsummaryrefslogtreecommitdiffstats
path: root/epan/privileges.c
AgeCommit message (Collapse)AuthorFilesLines
2008-03-16Have started_with_special_privs() assert out if get_credential_info() was notJeff Morriss1-0/+4
previously called. This prevents the function from always returning TRUE in programs that hadn't called get_credential_info(). Call get_credential_info() in the programs that should have been. svn path=/trunk/; revision=24648
2008-02-25Check for setres[gu]id and define HAVE_SETRESUID and HAVE_SETREGUIDGerald Combs1-0/+4
accordingly. Also define _GNU_SOURCE to appease glibc. svn path=/trunk/; revision=24465
2007-11-20Update some comments and whitespace.Gerald Combs1-1/+1
svn path=/trunk/; revision=23509
2007-10-20In relinquish_special_privs_perm(), only relinquish special privilegesGuy Harris1-8/+18
if we were given them; doing so when we weren't seems to change the apparent group set in OS X 10.5 (and possibly 10.4 - the group set manipulated by getgroups()/setgroups() isn't the full group set, and changing your UID might cause the credential identity resolver daemon not to give you your full group set). svn path=/trunk/; revision=23234
2007-09-15Add routines under Windows to check if npf.sys is running, and toGerald Combs1-0/+41
fetch the major OS version. If we're running Windows >= 6 (Vista) _and_ npf.sys isn't running, warn the user in Wireshark and TShark. Add a recent prefs item to disable the warning in Wireshark. svn path=/trunk/; revision=22877
2007-09-04on unix, we dont have size_t until we have imported all the other Ronnie Sahlberg1-1/+2
includes which breaks emem.h svn path=/trunk/; revision=22790
2007-08-30Change the "--enable-setuid-install" option to install dumpcap and TSharkGerald Combs1-3/+130
setuid instead of Wireshark. Remove the "DANGEROUS" notices, but leave it disabled by default. Whine if the user runs Wireshark or TShark as root. Add a preference to disable the whining. Add a "setuid-root" script that can be used to switch dumpcap and TShark's setuid-ness on and off for development and testing. Update the release notes and README.packaging. svn path=/trunk/; revision=22733
2006-05-31Tethereal/tethereal -> TShark/tshark.Gerald Combs1-1/+1
svn path=/trunk/; revision=18268
2006-05-28Ethereal->WiresharkAnders Broman1-1/+1
svn path=/trunk/; revision=18234
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-02-06Move the code to relinquish set-UID and set-GID privileges to a routineGuy Harris1-0/+21
in epan/privileges.c. svn path=/trunk/; revision=17181
2006-02-06Add code to check whether the app was started with special privilegesGuy Harris1-0/+95
(e.g., set-UID or set-GID), and don't load user plugs if it is. svn path=/trunk/; revision=17174