[so2] [SO2][Linux][Tema1] Neclaritate

Silviu Popescu silviupopescu1990 at gmail.com
Fri Mar 15 12:43:25 EET 2013


On Fri, Mar 15, 2013 at 12:38 PM, Stoica Cosmin
<cosmin.stoica9 at gmail.com> wrote:
> Salut!
>
>       Care este diferenta intre cele doua campuri din task_struct?
>
> /* process credentials */
> 1381   const struct cred __rcu *real_cred; /* objective and real subjective
> task
> 1382                                          * credentials (COW) */
> 1383         const struct cred __rcu *cred;  /* effective (overridable)
> subjective task
> 1384                                          * credentials (COW) */

Aici ajung seteuid() and friends din userspace. Practic una tine minte
credentialele adevarate, alta cele setate in mod programatic. Mai
multe detalii la [1].

[1] http://cursuri.cs.pub.ro/pipermail/so2/2011-March/004594.html

--
Silviu Popescu


More information about the so2 mailing list