Home
last modified time | relevance | path

Searched refs:newcon (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/kernel/kernel/printk/
H A Dprintk.c2729 static int try_enable_new_console(struct console *newcon, bool user_specified) in try_enable_new_console() argument
2739 if (!newcon->match || in try_enable_new_console()
2740 newcon->match(newcon, c->name, c->index, c->options) != 0) { in try_enable_new_console()
2742 BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name)); in try_enable_new_console()
2743 if (strcmp(c->name, newcon->name) != 0) in try_enable_new_console()
2745 if (newcon->index >= 0 && in try_enable_new_console()
2746 newcon->index != c->index) in try_enable_new_console()
2748 if (newcon->index < 0) in try_enable_new_console()
2749 newcon->index = c->index; in try_enable_new_console()
2751 if (_braille_register_console(newcon, c)) in try_enable_new_console()
[all …]
/OK3568_Linux_fs/kernel/security/selinux/
H A Dselinuxfs.c780 char *oldcon = NULL, *newcon = NULL, *taskcon = NULL; in sel_write_validatetrans() local
813 newcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans()
814 if (!newcon) in sel_write_validatetrans()
822 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans()
829 rc = security_context_str_to_sid(state, newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans()
843 kfree(newcon); in sel_write_validatetrans()
965 char *newcon = NULL; in sel_write_create() local
1039 length = security_sid_to_context(state, newsid, &newcon, &len); in sel_write_create()
1050 memcpy(buf, newcon, len); in sel_write_create()
1053 kfree(newcon); in sel_write_create()
[all …]
/OK3568_Linux_fs/kernel/fs/dlm/
H A Dlowcomms.c773 struct connection *newcon; in accept_from_sock() local
822 newcon = nodeid2con(nodeid, GFP_NOFS); in accept_from_sock()
823 if (!newcon) { in accept_from_sock()
827 mutex_lock_nested(&newcon->sock_mutex, 1); in accept_from_sock()
828 if (newcon->sock) { in accept_from_sock()
829 struct connection *othercon = newcon->othercon; in accept_from_sock()
835 mutex_unlock(&newcon->sock_mutex); in accept_from_sock()
843 mutex_unlock(&newcon->sock_mutex); in accept_from_sock()
865 newcon->othercon = othercon; in accept_from_sock()
871 newcon->rx_action = receive_from_sock; in accept_from_sock()
[all …]
/OK3568_Linux_fs/kernel/security/selinux/ss/
H A Dservices.c3205 struct context newcon; in security_sid_mls_copy() local
3217 context_init(&newcon); in security_sid_mls_copy()
3245 newcon.user = context1->user; in security_sid_mls_copy()
3246 newcon.role = context1->role; in security_sid_mls_copy()
3247 newcon.type = context1->type; in security_sid_mls_copy()
3248 rc = mls_context_cpy(&newcon, context2); in security_sid_mls_copy()
3253 if (!policydb_context_isvalid(policydb, &newcon)) { in security_sid_mls_copy()
3255 &newcon); in security_sid_mls_copy()
3257 if (!context_struct_to_string(policydb, &newcon, &s, in security_sid_mls_copy()
3274 rc = sidtab_context_to_sid(sidtab, &newcon, new_sid); in security_sid_mls_copy()
[all …]