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.