incorrect tracking of /proc/*/exe for overwritten running processes

2007-06-06 Thread Mike Frysinger
looking at a simple program: int main() { if (fork()) return 0; printf("pid = %i\n", getpid()); while (1) sleep(3600); } and where my / and /var/tmp are on the same partition: # gcc test.c -o /usr/sbin/MOO # /usr/sbin/MOO pid = 17144 # readlink /proc/17144/exe /usr/sbin/MOO # gcc test.c -o

incorrect tracking of /proc/*/exe for overwritten running processes

2007-06-06 Thread Mike Frysinger
looking at a simple program: int main() { if (fork()) return 0; printf(pid = %i\n, getpid()); while (1) sleep(3600); } and where my / and /var/tmp are on the same partition: # gcc test.c -o /usr/sbin/MOO # /usr/sbin/MOO pid = 17144 # readlink /proc/17144/exe /usr/sbin/MOO # gcc test.c -o