linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* /prod/PID-related proc fs question
@ 2002-11-06 19:12 Calin A. Culianu
  2002-11-06 19:48 ` Richard B. Johnson
  0 siblings, 1 reply; 5+ messages in thread
From: Calin A. Culianu @ 2002-11-06 19:12 UTC (permalink / raw)
  To: linux-kernel


I just noticed something today that I found odd and I know there must be a
good reason for it, but I can't think of what it might be..

Basically if I am listing the contents of a /proc/PID directory, it seems
that the cwd, exe, and root (symlink) entries are invalid unless the
process corresponding to PID is a process owned by me, or I am root.  Why
is this?

Is this feature security related?

If so I can't really think of any security issues that would arise from
having that information as a non-priviledged user.

It would seem reasonable to me that users seeing each other's
/prod/PID/root and /proc/PID/exe symlinks isn't really much of a security
vulnerability.. Plus it would make possible a non-root user to grab
statistics on the most popular running binaries, the number of chrooted
processes.. etc..  probably trivial statistics but it still would be nice
to see if any other instance of an application is running (unless there
already is another mechanism for this that I am unaware of).

Anyway any answers appreciated...

-Calin




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-11-07 22:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-06 19:12 /prod/PID-related proc fs question Calin A. Culianu
2002-11-06 19:48 ` Richard B. Johnson
2002-11-06 20:07   ` Calin A. Culianu
2002-11-06 20:15     ` Calin A. Culianu
2002-11-07 23:00       ` Frank v Waveren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).