Re: [RESEND][RFC][PATCH 2/7] implementation of LSM hooks

Jan Engelhardt
2006-04-19T19:50:52Z

>
>> 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
--