On Fri, 22 Sep 2000, Matthew Wilcox wrote:

> 
> Looks like more your area of expertise..
> (inner circle?  me?  good god.)
> -----------------------
> According to the security tests of "fs/exec.c", lines 676 and 678,
> both "current->files->count" and "current->fs->files" must reflect how many
> processes share the same files and important-directories respectively.

Yeah... Broken tests in exec.c, why I'm not surprised? Short version of
answer: tests for suid-ability need to be changed and Chris Evans had it
in his queue for a couple of months, IIRC.

IMO, correct variant is to do forced unsharing of descriptors and files,
but there are other problems. BTW, procfs access to files_struct is
not that harmless - if you are in the beginning of readdir() on
/proc/<pid>/fd and block on pagein (of area you are reading into, that
is) you may get a look at the files_struct.

-- 
There Is No Kernel Cabal

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]

Reply via email to