Home
last modified time | relevance | path

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

/linux-6.6.21/kernel/printk/
Dprintk.c3267 static int try_enable_preferred_console(struct console *newcon, in try_enable_preferred_console() argument
3278 if (!newcon->match || in try_enable_preferred_console()
3279 newcon->match(newcon, c->name, c->index, c->options) != 0) { in try_enable_preferred_console()
3281 BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name)); in try_enable_preferred_console()
3282 if (strcmp(c->name, newcon->name) != 0) in try_enable_preferred_console()
3284 if (newcon->index >= 0 && in try_enable_preferred_console()
3285 newcon->index != c->index) in try_enable_preferred_console()
3287 if (newcon->index < 0) in try_enable_preferred_console()
3288 newcon->index = c->index; in try_enable_preferred_console()
3290 if (_braille_register_console(newcon, c)) in try_enable_preferred_console()
[all …]
/linux-6.6.21/security/selinux/
Dselinuxfs.c741 char *oldcon = NULL, *newcon = NULL, *taskcon = NULL; in sel_write_validatetrans() local
773 newcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans()
774 if (!newcon) in sel_write_validatetrans()
782 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans()
789 rc = security_context_str_to_sid(newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans()
803 kfree(newcon); in sel_write_validatetrans()
920 char *newcon = NULL; in sel_write_create() local
993 length = security_sid_to_context(newsid, &newcon, &len); in sel_write_create()
1004 memcpy(buf, newcon, len); in sel_write_create()
1007 kfree(newcon); in sel_write_create()
[all …]
/linux-6.6.21/fs/dlm/
Dlowcomms.c980 struct connection *newcon; in accept_from_sock() local
1035 newcon = nodeid2con(nodeid, 0); in accept_from_sock()
1036 if (WARN_ON_ONCE(!newcon)) { in accept_from_sock()
1044 down_write(&newcon->sock_lock); in accept_from_sock()
1045 if (newcon->sock) { in accept_from_sock()
1046 struct connection *othercon = newcon->othercon; in accept_from_sock()
1052 up_write(&newcon->sock_lock); in accept_from_sock()
1060 newcon->othercon = othercon; in accept_from_sock()
1080 add_sock(newsock, newcon); in accept_from_sock()
1083 lock_sock(newcon->sock->sk); in accept_from_sock()
[all …]
/linux-6.6.21/security/selinux/ss/
Dservices.c3152 struct context newcon; in security_sid_mls_copy() local
3164 context_init(&newcon); in security_sid_mls_copy()
3192 newcon.user = context1->user; in security_sid_mls_copy()
3193 newcon.role = context1->role; in security_sid_mls_copy()
3194 newcon.type = context1->type; in security_sid_mls_copy()
3195 rc = mls_context_cpy(&newcon, context2); in security_sid_mls_copy()
3200 if (!policydb_context_isvalid(policydb, &newcon)) { in security_sid_mls_copy()
3202 &newcon); in security_sid_mls_copy()
3204 if (!context_struct_to_string(policydb, &newcon, &s, in security_sid_mls_copy()
3221 rc = sidtab_context_to_sid(sidtab, &newcon, new_sid); in security_sid_mls_copy()
[all …]