Messages in this thread | | | Date | Wed, 19 Apr 2006 21:50:24 +0200 (MEST) | From | Jan Engelhardt <> | Subject | Re: [RESEND][RFC][PATCH 2/7] implementation of LSM hooks |
| |
> >> Note that d_path still returns pathnames for files that have been >> removed from the filesystem (that are open) > >it does return "something". It just doesn't return meaningful pathnames. >At all. > Exactly. It currently appends " (deleted)", which may even match an existing file!
E.g.: $ touch blah "blah (deleted)" $ perl -e 'open I,blah;unlink blah;sleep 60' & $ ls -l /proc/`echo $! `/fd/ lr-x------ 1 jengelh root 64 Apr 19 21:48 3 -> /dev/shm/blah (deleted)
Note that ls will not colorize the part after ->, since that file actually exists!
Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |