Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 37) sorted by relevance

12

/kernel/
Dcred.c200 struct cred *new; in cred_alloc_blank() local
202 new = kmem_cache_zalloc(cred_jar, GFP_KERNEL); in cred_alloc_blank()
203 if (!new) in cred_alloc_blank()
206 atomic_set(&new->usage, 1); in cred_alloc_blank()
208 new->magic = CRED_MAGIC; in cred_alloc_blank()
211 if (security_cred_alloc_blank(new, GFP_KERNEL) < 0) in cred_alloc_blank()
214 return new; in cred_alloc_blank()
217 abort_creds(new); in cred_alloc_blank()
239 struct cred *new; in prepare_creds() local
243 new = kmem_cache_alloc(cred_jar, GFP_KERNEL); in prepare_creds()
[all …]
Dresource.c198 static struct resource * __request_resource(struct resource *root, struct resource *new) in __request_resource() argument
200 resource_size_t start = new->start; in __request_resource()
201 resource_size_t end = new->end; in __request_resource()
214 new->sibling = tmp; in __request_resource()
215 *p = new; in __request_resource()
216 new->parent = root; in __request_resource()
282 struct resource *request_resource_conflict(struct resource *root, struct resource *new) in request_resource_conflict() argument
287 conflict = __request_resource(root, new); in request_resource_conflict()
299 int request_resource(struct resource *root, struct resource *new) in request_resource() argument
303 conflict = request_resource_conflict(root, new); in request_resource()
[all …]
Dsys.c603 struct cred *new; in SYSCALL_DEFINE2() local
615 new = prepare_creds(); in SYSCALL_DEFINE2()
616 if (!new) in SYSCALL_DEFINE2()
625 new->gid = krgid; in SYSCALL_DEFINE2()
634 new->egid = kegid; in SYSCALL_DEFINE2()
641 new->sgid = new->egid; in SYSCALL_DEFINE2()
642 new->fsgid = new->egid; in SYSCALL_DEFINE2()
644 return commit_creds(new); in SYSCALL_DEFINE2()
647 abort_creds(new); in SYSCALL_DEFINE2()
660 struct cred *new; in SYSCALL_DEFINE1() local
[all …]
Duser.c169 struct user_struct *up, *new; in alloc_uid() local
176 new = kmem_cache_zalloc(uid_cachep, GFP_KERNEL); in alloc_uid()
177 if (!new) in alloc_uid()
180 new->uid = uid; in alloc_uid()
181 atomic_set(&new->__count, 1); in alloc_uid()
190 key_put(new->uid_keyring); in alloc_uid()
191 key_put(new->session_keyring); in alloc_uid()
192 kmem_cache_free(uid_cachep, new); in alloc_uid()
194 uid_hash_insert(new, hashent); in alloc_uid()
195 up = new; in alloc_uid()
Dparams.c596 struct module_param_attrs *new; in add_sysfs_param() local
612 new = krealloc(mk->mp, in add_sysfs_param()
615 if (!new) { in add_sysfs_param()
623 attrs = krealloc(attrs, sizeof(new->grp.attrs[0])*(num+2), GFP_KERNEL); in add_sysfs_param()
630 memset(new, 0, sizeof(*new)); in add_sysfs_param()
631 memset(&new->attrs[num], 0, sizeof(new->attrs[num])); in add_sysfs_param()
633 new->grp.name = "parameters"; in add_sysfs_param()
634 new->grp.attrs = attrs; in add_sysfs_param()
637 sysfs_attr_init(&new->attrs[num].mattr.attr); in add_sysfs_param()
638 new->attrs[num].param = kp; in add_sysfs_param()
[all …]
Dgroups.c164 int set_groups(struct cred *new, struct group_info *group_info) in set_groups() argument
166 put_group_info(new->group_info); in set_groups()
169 new->group_info = group_info; in set_groups()
184 struct cred *new; in set_current_groups() local
187 new = prepare_creds(); in set_current_groups()
188 if (!new) in set_current_groups()
191 ret = set_groups(new, group_info); in set_current_groups()
193 abort_creds(new); in set_current_groups()
197 return commit_creds(new); in set_current_groups()
Dtracepoint.c113 struct tracepoint_func *old, *new; in tracepoint_entry_add_probe() local
128 new = allocate_probes(nr_probes + 2); in tracepoint_entry_add_probe()
129 if (new == NULL) in tracepoint_entry_add_probe()
132 memcpy(new, old, nr_probes * sizeof(struct tracepoint_func)); in tracepoint_entry_add_probe()
133 new[nr_probes].func = probe; in tracepoint_entry_add_probe()
134 new[nr_probes].data = data; in tracepoint_entry_add_probe()
135 new[nr_probes + 1].func = NULL; in tracepoint_entry_add_probe()
137 entry->funcs = new; in tracepoint_entry_add_probe()
147 struct tracepoint_func *old, *new; in tracepoint_entry_remove_probe() local
178 new = allocate_probes(nr_probes - nr_del + 1); in tracepoint_entry_remove_probe()
[all …]
Dkmod.c202 struct cred *new; in ____call_usermodehelper() local
219 new = prepare_kernel_cred(current); in ____call_usermodehelper()
220 if (!new) in ____call_usermodehelper()
224 new->cap_bset = cap_intersect(usermodehelper_bset, new->cap_bset); in ____call_usermodehelper()
225 new->cap_inheritable = cap_intersect(usermodehelper_inheritable, in ____call_usermodehelper()
226 new->cap_inheritable); in ____call_usermodehelper()
230 retval = sub_info->init(sub_info, new); in ____call_usermodehelper()
232 abort_creds(new); in ____call_usermodehelper()
237 commit_creds(new); in ____call_usermodehelper()
532 int (*init)(struct subprocess_info *info, struct cred *new), in call_usermodehelper_setup() argument
Daudit_tree.c220 struct audit_chunk *new = NULL; in untag_chunk() local
230 new = alloc_chunk(size); in untag_chunk()
235 if (new) in untag_chunk()
236 free_chunk(new); in untag_chunk()
256 if (!new) in untag_chunk()
259 fsnotify_duplicate_mark(&new->mark, entry); in untag_chunk()
260 if (fsnotify_add_mark(&new->mark, new->mark.group, new->mark.i.inode, NULL, 1)) { in untag_chunk()
261 fsnotify_put_mark(&new->mark); in untag_chunk()
267 list_replace_init(&chunk->trees, &new->trees); in untag_chunk()
281 new->owners[i].owner = s; in untag_chunk()
[all …]
Dcapability.c237 struct cred *new; in SYSCALL_DEFINE2() local
271 new = prepare_creds(); in SYSCALL_DEFINE2()
272 if (!new) in SYSCALL_DEFINE2()
275 ret = security_capset(new, current_cred(), in SYSCALL_DEFINE2()
280 audit_log_capset(pid, new, current_cred()); in SYSCALL_DEFINE2()
282 return commit_creds(new); in SYSCALL_DEFINE2()
285 abort_creds(new); in SYSCALL_DEFINE2()
Dauditfilter.c727 struct audit_krule *new; in audit_dupe_rule() local
735 new = &entry->rule; in audit_dupe_rule()
736 new->vers_ops = old->vers_ops; in audit_dupe_rule()
737 new->flags = old->flags; in audit_dupe_rule()
738 new->listnr = old->listnr; in audit_dupe_rule()
739 new->action = old->action; in audit_dupe_rule()
741 new->mask[i] = old->mask[i]; in audit_dupe_rule()
742 new->prio = old->prio; in audit_dupe_rule()
743 new->buflen = old->buflen; in audit_dupe_rule()
744 new->inode_f = old->inode_f; in audit_dupe_rule()
[all …]
Daudit_watch.c217 struct audit_watch *new; in audit_dupe_watch() local
223 new = audit_init_watch(path); in audit_dupe_watch()
224 if (IS_ERR(new)) { in audit_dupe_watch()
229 new->dev = old->dev; in audit_dupe_watch()
230 new->ino = old->ino; in audit_dupe_watch()
232 new->parent = old->parent; in audit_dupe_watch()
235 return new; in audit_dupe_watch()
Dpid_namespace.c329 struct pid_namespace *ancestor, *new = ns; in pidns_install() local
331 if (!ns_capable(new->user_ns, CAP_SYS_ADMIN) || in pidns_install()
343 if (new->level < active->level) in pidns_install()
346 ancestor = new; in pidns_install()
353 nsproxy->pid_ns = get_pid_ns(new); in pidns_install()
Daudit.c269 static int audit_log_config_change(char *function_name, int new, int old, in audit_log_config_change() argument
278 audit_log_format(ab, "%s=%d old=%d", function_name, new, old); in audit_log_config_change()
288 static int audit_do_config_change(char *function_name, int *to_change, int new) in audit_do_config_change() argument
299 rc = audit_log_config_change(function_name, new, old, allow_changes); in audit_do_config_change()
306 *to_change = new; in audit_do_config_change()
765 char *old, *new; in audit_receive_msg() local
778 new = audit_unpack_string(&bufp, &msglen, sizes[1]); in audit_receive_msg()
779 if (IS_ERR(new)) { in audit_receive_msg()
780 err = PTR_ERR(new); in audit_receive_msg()
785 err = audit_tag_tree(old, new); in audit_receive_msg()
[all …]
Dpid.c387 struct pid *new) in __change_pid() argument
397 link->pid = new; in __change_pid()
419 void transfer_pid(struct task_struct *old, struct task_struct *new, in transfer_pid() argument
422 new->pids[type].pid = old->pids[type].pid; in transfer_pid()
423 hlist_replace_rcu(&old->pids[type].node, &new->pids[type].node); in transfer_pid()
Dutsname.c112 static int utsns_install(struct nsproxy *nsproxy, void *new) in utsns_install() argument
114 struct uts_namespace *ns = new; in utsns_install()
Dcompat.c684 struct compat_itimerspec __user *new, in compat_sys_timer_settime() argument
691 if (!new) in compat_sys_timer_settime()
693 if (get_compat_itimerspec(&newts, new)) in compat_sys_timer_settime()
1094 unsigned long __user *new = NULL; in compat_sys_migrate_pages() local
1106 new = old + size / sizeof(unsigned long); in compat_sys_migrate_pages()
1113 if (new == NULL) in compat_sys_migrate_pages()
1114 new = compat_alloc_user_space(size); in compat_sys_migrate_pages()
1115 if (copy_to_user(new, nodes_addr(tmp_mask), size)) in compat_sys_migrate_pages()
1118 return sys_migrate_pages(pid, nr_bits + 1, old, new); in compat_sys_migrate_pages()
Duser_namespace.c59 int create_user_ns(struct cred *new) in create_user_ns() argument
61 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns()
62 kuid_t owner = new->euid; in create_user_ns()
63 kgid_t group = new->egid; in create_user_ns()
99 set_cred_user_ns(new, ns); in create_user_ns()
Dnsproxy.c212 void switch_task_namespaces(struct task_struct *p, struct nsproxy *new) in switch_task_namespaces() argument
220 rcu_assign_pointer(p->nsproxy, new); in switch_task_namespaces()
Daudit.h287 extern int audit_tag_tree(char *old, char *new);
297 #define audit_tag_tree(old, new) -EINVAL argument
/kernel/irq/
Dmanage.c889 static void irq_setup_forced_threading(struct irqaction *new) in irq_setup_forced_threading() argument
893 if (new->flags & (IRQF_NO_THREAD | IRQF_PERCPU | IRQF_ONESHOT)) in irq_setup_forced_threading()
896 new->flags |= IRQF_ONESHOT; in irq_setup_forced_threading()
898 if (!new->thread_fn) { in irq_setup_forced_threading()
899 set_bit(IRQTF_FORCED_THREAD, &new->thread_flags); in irq_setup_forced_threading()
900 new->thread_fn = new->handler; in irq_setup_forced_threading()
901 new->handler = irq_default_primary_handler; in irq_setup_forced_threading()
910 __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) in __setup_irq() argument
931 if (!new->thread_fn) { in __setup_irq()
940 new->handler = irq_nested_primary_handler; in __setup_irq()
[all …]
/kernel/trace/
Dtrace_stat.c109 struct rb_node **new = &(root->rb_node), *parent = NULL; in insert_stat() local
121 while (*new) { in insert_stat()
125 this = container_of(*new, struct stat_node, node); in insert_stat()
128 parent = *new; in insert_stat()
130 new = &((*new)->rb_left); in insert_stat()
132 new = &((*new)->rb_right); in insert_stat()
135 rb_link_node(&data->node, parent, new); in insert_stat()
Dtrace_kprobe.c217 struct ftrace_event_file **new, **old; in enable_trace_probe() local
222 new = kzalloc((n + 2) * sizeof(struct ftrace_event_file *), in enable_trace_probe()
224 if (!new) { in enable_trace_probe()
228 memcpy(new, old, n * sizeof(struct ftrace_event_file *)); in enable_trace_probe()
229 new[n] = file; in enable_trace_probe()
232 rcu_assign_pointer(tp->files, new); in enable_trace_probe()
289 struct ftrace_event_file **new, **old; in disable_trace_probe() local
301 new = NULL; in disable_trace_probe()
303 new = kzalloc(n * sizeof(struct ftrace_event_file *), in disable_trace_probe()
305 if (!new) { in disable_trace_probe()
[all …]
/kernel/time/
Dclockevents.c379 struct clock_event_device *new) in clockevents_exchange_device() argument
394 if (new) { in clockevents_exchange_device()
395 BUG_ON(new->mode != CLOCK_EVT_MODE_UNUSED); in clockevents_exchange_device()
396 clockevents_shutdown(new); in clockevents_exchange_device()
/kernel/power/
Dswap.c123 struct rb_node **new = &(swsusp_extents.rb_node); in swsusp_extents_insert() local
128 while (*new) { in swsusp_extents_insert()
129 ext = rb_entry(*new, struct swsusp_extent, node); in swsusp_extents_insert()
130 parent = *new; in swsusp_extents_insert()
137 new = &((*new)->rb_left); in swsusp_extents_insert()
144 new = &((*new)->rb_right); in swsusp_extents_insert()
157 rb_link_node(&ext->node, parent, new); in swsusp_extents_insert()

12