Function report |
Source Code:kernel\cred.c |
Create Date:2022-07-28 09:32:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Copy a certificate
Proto:int copy_creds(struct task_struct *p, unsigned long clone_flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | p | |
unsigned long | clone_flags |
339 | If Not keyring private to this thread && clone_flags & Same thread group Then |
348 | kdebug("share_creds(%p{%d,%d})", Effective (overridable) subjective task credentials (COW): , atomic_read( & usage), read_cred_subscribers( Effective (overridable) subjective task credentials (COW): )) |
352 | Return 0 |
355 | new = prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification |
359 | If clone_flags & New user namespace Then |
368 | If keyring private to this thread Then |
370 | keyring private to this thread = NULL |
371 | If clone_flags & Same thread group Then he userspace interface |
378 | If Not (clone_flags & Same thread group) Then |
380 | keyring private to this process = NULL |
386 | alter_cred_subscribers(new, 2) |
387 | validate_creds(new) |
388 | Return 0 |
390 | error_put : |
392 | Return ret |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |