Home
last modified time | relevance | path

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

/Linux-v5.15/kernel/printk/
Dprintk.c2863 static int try_enable_new_console(struct console *newcon, bool user_specified) in try_enable_new_console() argument
2873 if (!newcon->match || in try_enable_new_console()
2874 newcon->match(newcon, c->name, c->index, c->options) != 0) { in try_enable_new_console()
2876 BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name)); in try_enable_new_console()
2877 if (strcmp(c->name, newcon->name) != 0) in try_enable_new_console()
2879 if (newcon->index >= 0 && in try_enable_new_console()
2880 newcon->index != c->index) in try_enable_new_console()
2882 if (newcon->index < 0) in try_enable_new_console()
2883 newcon->index = c->index; in try_enable_new_console()
2885 if (_braille_register_console(newcon, c)) in try_enable_new_console()
[all …]
/Linux-v5.15/security/selinux/
Dselinuxfs.c783 char *oldcon = NULL, *newcon = NULL, *taskcon = NULL; in sel_write_validatetrans() local
816 newcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans()
817 if (!newcon) in sel_write_validatetrans()
825 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans()
832 rc = security_context_str_to_sid(state, newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans()
846 kfree(newcon); in sel_write_validatetrans()
968 char *newcon = NULL; in sel_write_create() local
1042 length = security_sid_to_context(state, newsid, &newcon, &len); in sel_write_create()
1053 memcpy(buf, newcon, len); in sel_write_create()
1056 kfree(newcon); in sel_write_create()
[all …]
/Linux-v5.15/fs/dlm/
Dlowcomms.c994 struct connection *newcon; in accept_from_sock() local
1032 newcon = nodeid2con(nodeid, GFP_NOFS); in accept_from_sock()
1033 if (!newcon) { in accept_from_sock()
1041 mutex_lock(&newcon->sock_mutex); in accept_from_sock()
1042 if (newcon->sock) { in accept_from_sock()
1043 struct connection *othercon = newcon->othercon; in accept_from_sock()
1049 mutex_unlock(&newcon->sock_mutex); in accept_from_sock()
1058 mutex_unlock(&newcon->sock_mutex); in accept_from_sock()
1065 newcon->othercon = othercon; in accept_from_sock()
1066 othercon->sendcon = newcon; in accept_from_sock()
[all …]
/Linux-v5.15/security/selinux/ss/
Dservices.c3221 struct context newcon; in security_sid_mls_copy() local
3233 context_init(&newcon); in security_sid_mls_copy()
3261 newcon.user = context1->user; in security_sid_mls_copy()
3262 newcon.role = context1->role; in security_sid_mls_copy()
3263 newcon.type = context1->type; in security_sid_mls_copy()
3264 rc = mls_context_cpy(&newcon, context2); in security_sid_mls_copy()
3269 if (!policydb_context_isvalid(policydb, &newcon)) { in security_sid_mls_copy()
3271 &newcon); in security_sid_mls_copy()
3273 if (!context_struct_to_string(policydb, &newcon, &s, in security_sid_mls_copy()
3290 rc = sidtab_context_to_sid(sidtab, &newcon, new_sid); in security_sid_mls_copy()
[all …]