Home
last modified time | relevance | path

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

/Linux-v5.4/kernel/printk/
Dprintk.c2648 void register_console(struct console *newcon) in register_console() argument
2658 if (WARN(bcon == newcon, in register_console()
2667 if (console_drivers && newcon->flags & CON_BOOT) { in register_console()
2672 newcon->name, newcon->index); in register_console()
2690 if (newcon->index < 0) in register_console()
2691 newcon->index = 0; in register_console()
2692 if (newcon->setup == NULL || in register_console()
2693 newcon->setup(newcon, NULL) == 0) { in register_console()
2694 newcon->flags |= CON_ENABLED; in register_console()
2695 if (newcon->device) { in register_console()
[all …]
/Linux-v5.4/fs/dlm/
Dlowcomms.c734 struct connection *newcon; in tcp_accept_from_sock() local
782 newcon = nodeid2con(nodeid, GFP_NOFS); in tcp_accept_from_sock()
783 if (!newcon) { in tcp_accept_from_sock()
787 mutex_lock_nested(&newcon->sock_mutex, 1); in tcp_accept_from_sock()
788 if (newcon->sock) { in tcp_accept_from_sock()
789 struct connection *othercon = newcon->othercon; in tcp_accept_from_sock()
795 mutex_unlock(&newcon->sock_mutex); in tcp_accept_from_sock()
810 newcon->othercon = othercon; in tcp_accept_from_sock()
819 mutex_unlock(&newcon->sock_mutex); in tcp_accept_from_sock()
824 newcon->rx_action = receive_from_sock; in tcp_accept_from_sock()
[all …]
/Linux-v5.4/security/selinux/
Dselinuxfs.c687 char *oldcon = NULL, *newcon = NULL, *taskcon = NULL; in sel_write_validatetrans() local
720 newcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans()
721 if (!newcon) in sel_write_validatetrans()
729 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans()
736 rc = security_context_str_to_sid(state, newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans()
750 kfree(newcon); in sel_write_validatetrans()
872 char *newcon = NULL; in sel_write_create() local
946 length = security_sid_to_context(state, newsid, &newcon, &len); in sel_write_create()
957 memcpy(buf, newcon, len); in sel_write_create()
960 kfree(newcon); in sel_write_create()
[all …]
/Linux-v5.4/security/selinux/ss/
Dservices.c2970 struct context newcon; in security_sid_mls_copy() local
2981 context_init(&newcon); in security_sid_mls_copy()
3001 newcon.user = context1->user; in security_sid_mls_copy()
3002 newcon.role = context1->role; in security_sid_mls_copy()
3003 newcon.type = context1->type; in security_sid_mls_copy()
3004 rc = mls_context_cpy(&newcon, context2); in security_sid_mls_copy()
3009 if (!policydb_context_isvalid(policydb, &newcon)) { in security_sid_mls_copy()
3010 rc = convert_context_handle_invalid_context(state, &newcon); in security_sid_mls_copy()
3012 if (!context_struct_to_string(policydb, &newcon, &s, in security_sid_mls_copy()
3030 rc = sidtab_context_to_sid(sidtab, &newcon, new_sid); in security_sid_mls_copy()
[all …]