login
Header Space

 
 

Re: O_NOLINK for open()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andreas Schwab <schwab@...>
Cc: <linux-kernel@...>
Date: Wednesday, September 12, 2007 - 6:44 pm

On Wed, 12 Sep 2007, Andreas Schwab wrote:


In this particular case because the user may not normally have direct
access to some of the data to be contained in that file.

Decryption keys in a key management system, in particular.  If the
keys are passed over secure network links such that they only ever
exist in system RAM, and are not reachable via the filesystem, these
keys can be protected from disclosure to the user (short of /proc/#/mem
type of tricks).  However, if there is even a brief window when the
user can gain access to the file, these keys are at risk of disclosure.

The problem can be addressed, in this case, by having the daemon half
of the design create these files, however it would provide a bit more
flexibility if the client side was also capable of creating them.  It's
not a make-or-break problem, by any means, but does somewhat motivate
an O_NOLINK flag for open().

Brent

P.S. By the way, there doesn't seem to be a way to remove /proc/#/mem
     files.  That might be an additional nicety -- programs worried about
     being snooped could unlink their own entry.  /dev/mem and /dev/kmem
     can simply be removed by the sysadmin of such a system.  If all of
     that were done you'd have to resort to attacking crash dumps, core
     dumps, or via something like kdb to extract "hidden" data.

-- 
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)
speck-geostationary