Re: a process having different credentials' files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mohit,

Replying to the list this time.

On Wed, Oct 6, 2010 at 11:31 AM, mohit verma <mohit89mlnc@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux