Searched refs:newcon (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/kernel/printk/ |
D | printk.c | 3017 static int try_enable_preferred_console(struct console *newcon, in try_enable_preferred_console() argument 3028 if (!newcon->match || in try_enable_preferred_console() 3029 newcon->match(newcon, c->name, c->index, c->options) != 0) { in try_enable_preferred_console() 3031 BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name)); in try_enable_preferred_console() 3032 if (strcmp(c->name, newcon->name) != 0) in try_enable_preferred_console() 3034 if (newcon->index >= 0 && in try_enable_preferred_console() 3035 newcon->index != c->index) in try_enable_preferred_console() 3037 if (newcon->index < 0) in try_enable_preferred_console() 3038 newcon->index = c->index; in try_enable_preferred_console() 3040 if (_braille_register_console(newcon, c)) in try_enable_preferred_console() [all …]
|
/linux-6.1.9/security/selinux/ |
D | selinuxfs.c | 787 char *oldcon = NULL, *newcon = NULL, *taskcon = NULL; in sel_write_validatetrans() local 820 newcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans() 821 if (!newcon) in sel_write_validatetrans() 829 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans() 836 rc = security_context_str_to_sid(state, newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans() 850 kfree(newcon); in sel_write_validatetrans() 972 char *newcon = NULL; in sel_write_create() local 1046 length = security_sid_to_context(state, newsid, &newcon, &len); in sel_write_create() 1057 memcpy(buf, newcon, len); in sel_write_create() 1060 kfree(newcon); in sel_write_create() [all …]
|
/linux-6.1.9/fs/dlm/ |
D | lowcomms.c | 1009 struct connection *newcon; in accept_from_sock() local 1065 newcon = nodeid2con(nodeid, GFP_NOFS); in accept_from_sock() 1066 if (!newcon) { in accept_from_sock() 1074 mutex_lock(&newcon->sock_mutex); in accept_from_sock() 1075 if (newcon->sock) { in accept_from_sock() 1076 struct connection *othercon = newcon->othercon; in accept_from_sock() 1082 mutex_unlock(&newcon->sock_mutex); in accept_from_sock() 1091 mutex_unlock(&newcon->sock_mutex); in accept_from_sock() 1098 newcon->othercon = othercon; in accept_from_sock() 1099 othercon->sendcon = newcon; in accept_from_sock() [all …]
|
/linux-6.1.9/security/selinux/ss/ |
D | services.c | 3216 struct context newcon; in security_sid_mls_copy() local 3228 context_init(&newcon); in security_sid_mls_copy() 3256 newcon.user = context1->user; in security_sid_mls_copy() 3257 newcon.role = context1->role; in security_sid_mls_copy() 3258 newcon.type = context1->type; in security_sid_mls_copy() 3259 rc = mls_context_cpy(&newcon, context2); in security_sid_mls_copy() 3264 if (!policydb_context_isvalid(policydb, &newcon)) { in security_sid_mls_copy() 3266 &newcon); in security_sid_mls_copy() 3268 if (!context_struct_to_string(policydb, &newcon, &s, in security_sid_mls_copy() 3285 rc = sidtab_context_to_sid(sidtab, &newcon, new_sid); in security_sid_mls_copy() [all …]
|