Searched refs:newcon (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/kernel/printk/ |
D | printk.c | 2663 static int try_enable_new_console(struct console *newcon, bool user_specified) in try_enable_new_console() argument 2673 if (!newcon->match || in try_enable_new_console() 2674 newcon->match(newcon, c->name, c->index, c->options) != 0) { in try_enable_new_console() 2676 BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name)); in try_enable_new_console() 2677 if (strcmp(c->name, newcon->name) != 0) in try_enable_new_console() 2679 if (newcon->index >= 0 && in try_enable_new_console() 2680 newcon->index != c->index) in try_enable_new_console() 2682 if (newcon->index < 0) in try_enable_new_console() 2683 newcon->index = c->index; in try_enable_new_console() 2685 if (_braille_register_console(newcon, c)) in try_enable_new_console() [all …]
|
/Linux-v5.10/security/selinux/ |
D | selinuxfs.c | 781 char *oldcon = NULL, *newcon = NULL, *taskcon = NULL; in sel_write_validatetrans() local 814 newcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans() 815 if (!newcon) in sel_write_validatetrans() 823 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans() 830 rc = security_context_str_to_sid(state, newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans() 844 kfree(newcon); in sel_write_validatetrans() 966 char *newcon = NULL; in sel_write_create() local 1040 length = security_sid_to_context(state, newsid, &newcon, &len); in sel_write_create() 1051 memcpy(buf, newcon, len); in sel_write_create() 1054 kfree(newcon); in sel_write_create() [all …]
|
/Linux-v5.10/fs/dlm/ |
D | lowcomms.c | 777 struct connection *newcon; in accept_from_sock() local 826 newcon = nodeid2con(nodeid, GFP_NOFS); in accept_from_sock() 827 if (!newcon) { in accept_from_sock() 831 mutex_lock_nested(&newcon->sock_mutex, 1); in accept_from_sock() 832 if (newcon->sock) { in accept_from_sock() 833 struct connection *othercon = newcon->othercon; in accept_from_sock() 839 mutex_unlock(&newcon->sock_mutex); in accept_from_sock() 847 mutex_unlock(&newcon->sock_mutex); in accept_from_sock() 869 newcon->othercon = othercon; in accept_from_sock() 875 newcon->rx_action = receive_from_sock; in accept_from_sock() [all …]
|
/Linux-v5.10/security/selinux/ss/ |
D | services.c | 3115 struct context newcon; in security_sid_mls_copy() local 3126 context_init(&newcon); in security_sid_mls_copy() 3154 newcon.user = context1->user; in security_sid_mls_copy() 3155 newcon.role = context1->role; in security_sid_mls_copy() 3156 newcon.type = context1->type; in security_sid_mls_copy() 3157 rc = mls_context_cpy(&newcon, context2); in security_sid_mls_copy() 3162 if (!policydb_context_isvalid(policydb, &newcon)) { in security_sid_mls_copy() 3164 &newcon); in security_sid_mls_copy() 3166 if (!context_struct_to_string(policydb, &newcon, &s, in security_sid_mls_copy() 3183 rc = sidtab_context_to_sid(sidtab, &newcon, new_sid); in security_sid_mls_copy() [all …]
|