how do I make lsof be useful again in fc3?

Chris Adams cmadams at hiwaay.net
Fri Dec 10 12:05:08 UTC 2004


Once upon a time, Jamie Zawinski <jwz at jwz.org> said:
> Hmm, if I take off the setgid bit, I get the same behavior:
> 
>   -rwxr-xr-x  1 root nobody 58332 Sep 20 21:56 /usr/bin/ssh-agent
>   dr-x------  2 root root       0 Dec 10 01:22 /proc/6039/fd
>   dr-xr-xr-x  3 jwz  jwz        0 Dec 10 01:26 /proc/6039

It isn't actually supposed to be setgid on Linux; see ssh-agent.c:

#if defined(HAVE_SYS_PRCTL_H)
#include <sys/prctl.h>	/* For prctl() and PR_SET_DUMPABLE */
#endif
...
#if defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE)
	/* Disable ptrace on Linux without sgid bit */
	prctl(PR_SET_DUMPABLE, 0);
#endif

-- 
Chris Adams <cmadams at hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.




More information about the fedora-devel-list mailing list