Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:19:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:_task_smack - initialize a task security blob*@tsp: blob to initialize*@task: a pointer to the Smack label for the running task*@forked: a pointer to the Smack label for the forked task
Proto:static void init_task_smack(struct task_smack *tsp, struct smack_known *task, struct smack_known *forked)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_smack * | tsp | |
| struct smack_known * | task | |
| struct smack_known * | forked |
| 332 | label for access control = task |
| 333 | label when forked = forked |
| 336 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock for the rules ) |
| Name | Describe |
|---|---|
| smack_cred_alloc_blank | smack_cred_alloc_blank - "allocate" blank task-level security credentials*@cred: the new credentials*@gfp: the atomicity of any memory allocations* Prepare a blank set of credentials for modification |
| smack_cred_prepare | smack_cred_prepare - prepare new set of credentials for modification*@new: the new credentials*@old: the original credentials*@gfp: the atomicity of any memory allocations* Prepare a new set of credentials for modification. |
| smack_init | smack_init - initialize the smack system* Returns 0 on success, -ENOMEM is there's no memory |
| 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 |