From: David Madore <david+ml@madore.org>
To: Linux Kernel Mailing-List <linux-kernel@vger.kernel.org>
Subject: since when does linkat() on deleted /proc/$PID/fd/$num return ENOENT ?
Date: Fri, 30 Mar 2012 12:21:21 +0200 [thread overview]
Message-ID: <20120330102121.GA5999@aldebaran.gro-tsen.net> (raw)
It used to be the case (last time I checked was around late 2008 or
early 2009) that deleted entries from /proc/$PID/fd/ could be linked
back to the filesystem by using linkat(,,,,AT_SYMLINK_FOLLOW).
Now this just returns ENOENT.
I'd like to understand when, how and why this change took place. What
commit introduced it and was it a deliberate move (e.g., because the
feature was a security issue of itself, or came into conflict with
something else) or was it accidental? Does it depend on the /proc
filesystem itself or on the target filesystem where the deleted file
used to reside?
(There's a Reddit thread, <URL:
http://www.reddit.com/r/programming/comments/7yx6f/how_to_undelete_any_open_deleted_file_in_linux/
>, where some people are reporting ENOENT on 2.6.27 or perhaps even
2.6.26, which helps but a bound on the change.)
(See also this thread: <URL:
http://comments.gmane.org/gmane.linux.kernel/1224071
>, where the question is not answered, however.)
--
David A. Madore
( http://www.madore.org/~david/ )
next reply other threads:[~2012-03-30 10:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-30 10:21 David Madore [this message]
2012-03-31 6:53 ` since when does linkat() on deleted /proc/$PID/fd/$num return ENOENT ? Alexey Dobriyan
2012-03-31 11:06 ` David Madore
2012-03-31 14:45 ` Alexey Dobriyan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120330102121.GA5999@aldebaran.gro-tsen.net \
--to=david+ml@madore.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox