Home
last modified time | relevance | path

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

/linux/kernel/printk/
H A Dprintk.c3734 static int console_call_setup(struct console *newcon, char *options) in console_call_setup() argument
3738 if (!newcon->setup) in console_call_setup()
3743 err = newcon->setup(newcon, options); in console_call_setup()
3758 static int try_enable_preferred_console(struct console *newcon, in try_enable_preferred_console() argument
3772 if (!newcon->match || in try_enable_preferred_console()
3773 newcon->match(newcon, c->name, c->index, c->options) != 0) { in try_enable_preferred_console()
3775 BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name)); in try_enable_preferred_console()
3776 if (strcmp(c->name, newcon->name) != 0) in try_enable_preferred_console()
3778 if (newcon->index >= 0 && in try_enable_preferred_console()
3779 newcon->index != c->index) in try_enable_preferred_console()
[all …]
/linux/security/selinux/
H A Dselinuxfs.c732 char *oldcon = NULL, *newcon = NULL, *taskcon = NULL; in sel_write_validatetrans() local
764 newcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans()
765 if (!newcon) in sel_write_validatetrans()
773 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans()
780 rc = security_context_str_to_sid(newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans()
794 kfree(newcon); in sel_write_validatetrans()
911 char *newcon = NULL; in sel_write_create() local
984 length = security_sid_to_context(newsid, &newcon, &len); in sel_write_create()
995 memcpy(buf, newcon, len); in sel_write_create()
998 kfree(newcon); in sel_write_create()
[all …]
/linux/fs/dlm/
H A Dlowcomms.c984 struct connection *newcon; in accept_from_sock() local
1039 newcon = nodeid2con(nodeid, 0); in accept_from_sock()
1040 if (WARN_ON_ONCE(!newcon)) { in accept_from_sock()
1048 down_write(&newcon->sock_lock); in accept_from_sock()
1049 if (newcon->sock) { in accept_from_sock()
1050 struct connection *othercon = newcon->othercon; in accept_from_sock()
1056 up_write(&newcon->sock_lock); in accept_from_sock()
1064 newcon->othercon = othercon; in accept_from_sock()
1084 add_sock(newsock, newcon); in accept_from_sock()
1087 lock_sock(newcon->sock->sk); in accept_from_sock()
[all …]
/linux/security/selinux/ss/
H A Dservices.c3164 struct context newcon; in security_sid_mls_copy() local
3176 context_init(&newcon); in security_sid_mls_copy()
3204 newcon.user = context1->user; in security_sid_mls_copy()
3205 newcon.role = context1->role; in security_sid_mls_copy()
3206 newcon.type = context1->type; in security_sid_mls_copy()
3207 rc = mls_context_cpy(&newcon, context2); in security_sid_mls_copy()
3212 if (!policydb_context_isvalid(policydb, &newcon)) { in security_sid_mls_copy()
3214 &newcon); in security_sid_mls_copy()
3216 if (!context_struct_to_string(policydb, &newcon, &s, in security_sid_mls_copy()
3233 rc = sidtab_context_to_sid(sidtab, &newcon, new_sid); in security_sid_mls_copy()
[all …]