Re: [PATCH] BSD Secure Levels: claim block dev in file struct rather than inode struct, 2.6.11-rc2-mm1 (3/8)

Valdis.Kletnieks
2005-02-08T03:15:56Z

[-- Attachment #1: Type: text/plain, Size: 460 bytes --]

On Mon, 07 Feb 2005 18:20:36 PST, Chris Wright said:
> * Valdis.Kletnieks@vt.edu (Valdis.Kletnieks@vt.edu) wrote:
> > open("/tmp/sh-thd-1107848098", O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_LARGEFILE,
0600) = 3
>
> O_EXCL
>
> > Wow - if my /tmp was on the same partition, and I'd hard-linked that
> > file to /etc/passwd, it would be toast now if root had run it.
>
> So, in fact, it wouldn't ;-)

Well.. Yeah. bash gets it right, a lot of programs botch it. ;)

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]