Hi Mohit,

Replying to the list this time.

On Wed, Oct 6, 2010 at 11:31 AM, mohit verma <[email protected]> wrote:
> hi all,
> a process :
> current --> files_struct --> file -->cred
>                     |                    |
>                 (* files)          (*fd_array)
> it seems a process can have the files having different credentials .  for
> example let a process be running in a high privilige level . after setuid (
> or any member of family) system call it gains the lower(or higher)
>  priority. the process remains same with the previous opened files and there
> attached  credentials.
> is it right  that  a process can have different ( or same) file opened  with
> different credentials ?
> if so then it must be a loop hole.
> i know i am missing something.please correct me at the places.

It seems quite reasonable to me. If you start as root and open a file,
and then do setuid to change your id to a different user and open a
second file, the two files will be opened with two different sets of
credentials.

I don't see any loopholes...

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to