Function report |
Source Code:security\keys\keyring.c |
Create Date:2022-07-28 18:18:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Find a keyring with the specified name
Proto:struct key *find_keyring_by_name(const char *name, bool uid_keyring)
Type:struct key
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | name | |
bool | uid_keyring |
1145 | ns = current_user_ns() |
1151 | read_lock( & keyring_name_lock) |
1157 | If Not kuid_has_mapping(ns, uid) Then Continue |
1160 | If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Continue |
1163 | If strcmp(description, name) != 0 Then Continue |
1166 | If uid_keyring Then |
1167 | If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Continue |
1170 | Else |
1171 | If Check to see whether permission is granted to use a key in the desired way. < 0 Then Continue |
1182 | Go to out |
1186 | out : |
1187 | read_unlock( & keyring_name_lock) |
1188 | Return keyring |
Name | Describe |
---|---|
join_session_keyring | Join the named keyring as the session keyring if possible else attempt to* create a new one of that name and join that |
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 |