Searched refs:newcon (Results 1 – 4 of 4) sorted by relevance
/linux/kernel/printk/ |
H A D | printk.c | 3764 static int console_call_setup(struct console *newcon, char *options) in console_call_setup() argument 3768 if (!newcon->setup) in console_call_setup() 3773 err = newcon->setup(newcon, options); in console_call_setup() 3788 static int try_enable_preferred_console(struct console *newcon, in try_enable_preferred_console() argument 3802 if (!newcon->match || in try_enable_preferred_console() 3803 newcon->match(newcon, c->name, c->index, c->options) != 0) { in try_enable_preferred_console() 3805 BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name)); in try_enable_preferred_console() 3806 if (strcmp(c->name, newcon->name) != 0) in try_enable_preferred_console() 3808 if (newcon->index >= 0 && in try_enable_preferred_console() 3809 newcon->index != c->index) in try_enable_preferred_console() [all …]
|
/linux/security/selinux/ |
H A D | selinuxfs.c | 732 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 D | lowcomms.c | 984 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 D | services.c | 3174 struct context newcon; in security_sid_mls_copy() local 3186 context_init(&newcon); in security_sid_mls_copy() 3214 newcon.user = context1->user; in security_sid_mls_copy() 3215 newcon.role = context1->role; in security_sid_mls_copy() 3216 newcon.type = context1->type; in security_sid_mls_copy() 3217 rc = mls_context_cpy(&newcon, context2); in security_sid_mls_copy() 3222 if (!policydb_context_isvalid(policydb, &newcon)) { in security_sid_mls_copy() 3224 &newcon); in security_sid_mls_copy() 3226 if (!context_struct_to_string(policydb, &newcon, &s, in security_sid_mls_copy() 3243 rc = sidtab_context_to_sid(sidtab, &newcon, new_sid); in security_sid_mls_copy() [all …]
|