Re: O_NOLINK for open()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Al Viro <viro@...>
Cc: <linux-kernel@...>
Date: Wednesday, September 12, 2007 - 7:27 pm

On Wed, 12 Sep 2007, Al Viro wrote:


Yes, I fully understand that mknod can recreate the nodes -- however
only the superuser can do so, and if the superuser is attacking a
process all bets are off anyway.  OK, so /dev/*mem isn't to worry
about, since it's already owned by root.  Still, /proc/#/mem is owned
by the user, not root, leaving it potentially open to inspection by
third party processes.

I'm thinking out loud.  Sorry to cause any grief.

My (limited) understanding of ptrace is that a parent-child
relationship is needed between the tracing process and the traced
process (at least that's what I gather from the man page).  This
does give cause for concern, and I might have to see what can be
done to alleviate this concern.  I fully realize that making this
design completely unassilable is a fools errand, but closing off
as many attack vectors as possible seems prudent.

-- 
Brent Casavant                          All music is folk music.  I ain't
bcasavan@sgi.com                        never heard a horse sing a song.
Silicon Graphics, Inc.                    -- Louis Armstrong
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
O_NOLINK for open(), Brent Casavant, (Wed Sep 12, 4:37 pm)
Re: O_NOLINK for open(), Gabor Gombas, (Thu Sep 13, 6:08 am)
Re: O_NOLINK for open(), Brent Casavant, (Thu Sep 13, 12:05 pm)
Re: O_NOLINK for open(), Andreas Schwab, (Wed Sep 12, 5:42 pm)
Re: O_NOLINK for open(), Brent Casavant, (Wed Sep 12, 6:44 pm)
Re: O_NOLINK for open(), Al Viro, (Wed Sep 12, 6:49 pm)
Re: O_NOLINK for open(), Brent Casavant, (Wed Sep 12, 7:27 pm)
Re: O_NOLINK for open(), Goswin von Brederlow, (Fri Sep 14, 12:37 pm)
Re: O_NOLINK for open(), Brent Casavant, (Wed Sep 12, 7:48 pm)
Re: O_NOLINK for open(), H. Peter Anvin, (Wed Sep 12, 5:07 pm)
Re: O_NOLINK for open(), Brent Casavant, (Wed Sep 12, 5:39 pm)
Re: O_NOLINK for open(), H. Peter Anvin, (Wed Sep 12, 5:46 pm)