Home
last modified time | relevance | path

Searched full:new (Results 1 – 25 of 7869) sorted by relevance

12345678910>>...315

/kernel/linux/linux-4.19/kernel/
Dcred.c212 struct cred *new; in cred_alloc_blank() local
214 new = kmem_cache_zalloc(cred_jar, GFP_KERNEL); in cred_alloc_blank()
215 if (!new) in cred_alloc_blank()
218 atomic_set(&new->usage, 1); in cred_alloc_blank()
220 new->magic = CRED_MAGIC; in cred_alloc_blank()
223 if (security_cred_alloc_blank(new, GFP_KERNEL_ACCOUNT) < 0) in cred_alloc_blank()
226 return new; in cred_alloc_blank()
229 abort_creds(new); in cred_alloc_blank()
234 * prepare_creds - Prepare a new set of credentials for modification
236 * Prepare a new set of task credentials for modification. A task's creds
[all …]
/kernel/linux/linux-5.10/kernel/
Dcred.c215 struct cred *new; in cred_alloc_blank() local
217 new = kmem_cache_zalloc(cred_jar, GFP_KERNEL); in cred_alloc_blank()
218 if (!new) in cred_alloc_blank()
221 atomic_set(&new->usage, 1); in cred_alloc_blank()
223 new->magic = CRED_MAGIC; in cred_alloc_blank()
226 if (security_cred_alloc_blank(new, GFP_KERNEL_ACCOUNT) < 0) in cred_alloc_blank()
229 return new; in cred_alloc_blank()
232 abort_creds(new); in cred_alloc_blank()
237 * prepare_creds - Prepare a new set of credentials for modification
239 * Prepare a new set of task credentials for modification. A task's creds
[all …]
/kernel/linux/linux-4.19/fs/nfsd/
Dauth.c25 struct cred *new; in nfsd_setuser() local
31 /* discard any old override before preparing the new set */ in nfsd_setuser()
33 new = prepare_creds(); in nfsd_setuser()
34 if (!new) in nfsd_setuser()
37 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser()
38 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser()
43 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
44 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
49 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
50 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
[all …]
/kernel/linux/linux-5.10/fs/nfsd/
Dauth.c25 struct cred *new; in nfsd_setuser() local
31 /* discard any old override before preparing the new set */ in nfsd_setuser()
33 new = prepare_creds(); in nfsd_setuser()
34 if (!new) in nfsd_setuser()
37 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser()
38 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser()
43 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
44 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
49 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
50 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
[all …]
/kernel/linux/linux-4.19/security/
Dcommoncap.c237 * @new: The proposed new credentials; alterations should be made here
239 * @effective: A pointer to the proposed new effective capabilities set
240 * @inheritable: A pointer to the proposed new inheritable capabilities set
241 * @permitted: A pointer to the proposed new permitted capabilities set
244 * process's capability sets. The changes are made to the proposed new
247 int cap_capset(struct cred *new, in cap_capset() argument
263 /* no new pI capabilities outside bounding set */ in cap_capset()
266 /* verify restrictions on target's new Permitted set */ in cap_capset()
274 new->cap_effective = *effective; in cap_capset()
275 new->cap_inheritable = *inheritable; in cap_capset()
[all …]
/kernel/linux/linux-5.10/security/
Dcommoncap.c231 * @new: The proposed new credentials; alterations should be made here
233 * @effective: A pointer to the proposed new effective capabilities set
234 * @inheritable: A pointer to the proposed new inheritable capabilities set
235 * @permitted: A pointer to the proposed new permitted capabilities set
238 * process's capability sets. The changes are made to the proposed new
241 int cap_capset(struct cred *new, in cap_capset() argument
257 /* no new pI capabilities outside bounding set */ in cap_capset()
260 /* verify restrictions on target's new Permitted set */ in cap_capset()
268 new->cap_effective = *effective; in cap_capset()
269 new->cap_inheritable = *inheritable; in cap_capset()
[all …]
/kernel/linux/linux-5.10/fs/nfs/blocklayout/
Dextent_tree.c137 struct pnfs_block_extent *new, bool merge_ok) in __ext_tree_insert() argument
146 if (new->be_f_offset < be->be_f_offset) { in __ext_tree_insert()
147 if (merge_ok && ext_can_merge(new, be)) { in __ext_tree_insert()
148 be->be_f_offset = new->be_f_offset; in __ext_tree_insert()
150 be->be_v_offset = new->be_v_offset; in __ext_tree_insert()
151 be->be_length += new->be_length; in __ext_tree_insert()
156 } else if (new->be_f_offset >= ext_f_end(be)) { in __ext_tree_insert()
157 if (merge_ok && ext_can_merge(be, new)) { in __ext_tree_insert()
158 be->be_length += new->be_length; in __ext_tree_insert()
168 rb_link_node(&new->be_node, parent, p); in __ext_tree_insert()
[all …]
/kernel/linux/linux-4.19/fs/nfs/blocklayout/
Dextent_tree.c137 struct pnfs_block_extent *new, bool merge_ok) in __ext_tree_insert() argument
146 if (new->be_f_offset < be->be_f_offset) { in __ext_tree_insert()
147 if (merge_ok && ext_can_merge(new, be)) { in __ext_tree_insert()
148 be->be_f_offset = new->be_f_offset; in __ext_tree_insert()
150 be->be_v_offset = new->be_v_offset; in __ext_tree_insert()
151 be->be_length += new->be_length; in __ext_tree_insert()
156 } else if (new->be_f_offset >= ext_f_end(be)) { in __ext_tree_insert()
157 if (merge_ok && ext_can_merge(be, new)) { in __ext_tree_insert()
158 be->be_length += new->be_length; in __ext_tree_insert()
168 rb_link_node(&new->be_node, parent, p); in __ext_tree_insert()
[all …]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_rmap.c467 * growing the last AG. This extent is new space and so it is not tracked as
532 * just found as it is new space and won't be used by anyone. This is in xfs_rmap_unmap()
639 * record to the length of the new left-extent size, increment in xfs_rmap_unmap()
640 * the insertion position so we can insert a new record in xfs_rmap_unmap()
745 * When we allocate a new block, the first thing we do is add a reference to
917 * new record at current cursor position. in xfs_rmap_map()
980 #define NEW r[3] macro
997 /* prev is 2, new is 3 */ in xfs_rmap_convert()
1156 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert()
1201 NEW = LEFT; in xfs_rmap_convert()
[all …]
/kernel/linux/linux-4.19/fs/xfs/libxfs/
Dxfs_rmap.c448 * growing the last AG. This extent is new space and so it is not tracked as
507 * just found as it is new space and won't be used by anyone. This is in xfs_rmap_unmap()
600 * record to the length of the new left-extent size, increment in xfs_rmap_unmap()
601 * the insertion position so we can insert a new record in xfs_rmap_unmap()
706 * When we allocate a new block, the first thing we do is add a reference to
864 * new record at current cursor position. in xfs_rmap_map()
924 #define NEW r[3] macro
941 /* new is 3 */ in xfs_rmap_convert()
1077 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert()
1107 NEW = LEFT; in xfs_rmap_convert()
[all …]
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dftrace.c26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() argument
32 "1: cas [%[ip]], %[old], %[new]\n" in ftrace_modify_code()
47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code()
50 if (replaced != old && replaced != new) in ftrace_modify_code()
59 u32 old, new; in ftrace_make_nop() local
62 new = ftrace_nop; in ftrace_make_nop()
63 return ftrace_modify_code(ip, old, new); in ftrace_make_nop()
69 u32 old, new; in ftrace_make_call() local
72 new = ftrace_call_replace(ip, addr); in ftrace_make_call()
73 return ftrace_modify_code(ip, old, new); in ftrace_make_call()
[all …]
/kernel/linux/linux-4.19/arch/sparc/kernel/
Dftrace.c26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() argument
32 "1: cas [%[ip]], %[old], %[new]\n" in ftrace_modify_code()
47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code()
50 if (replaced != old && replaced != new) in ftrace_modify_code()
59 u32 old, new; in ftrace_make_nop() local
62 new = ftrace_nop; in ftrace_make_nop()
63 return ftrace_modify_code(ip, old, new); in ftrace_make_nop()
69 u32 old, new; in ftrace_make_call() local
72 new = ftrace_call_replace(ip, addr); in ftrace_make_call()
73 return ftrace_modify_code(ip, old, new); in ftrace_make_call()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/
Dmtd_blkdevs.c340 int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) in add_mtd_blktrans_dev() argument
342 struct mtd_blktrans_ops *tr = new->tr; in add_mtd_blktrans_dev()
352 if (new->devnum == -1) { in add_mtd_blktrans_dev()
356 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
357 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev()
360 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev()
364 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev()
366 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev()
373 if (new->devnum == -1) in add_mtd_blktrans_dev()
374 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
[all …]
/kernel/linux/linux-4.19/security/keys/
Dprocess_keys.c139 int install_thread_keyring_to_cred(struct cred *new) in install_thread_keyring_to_cred() argument
143 if (new->thread_keyring) in install_thread_keyring_to_cred()
146 keyring = keyring_alloc("_tid", new->uid, new->gid, new, in install_thread_keyring_to_cred()
153 new->thread_keyring = keyring; in install_thread_keyring_to_cred()
164 struct cred *new; in install_thread_keyring() local
167 new = prepare_creds(); in install_thread_keyring()
168 if (!new) in install_thread_keyring()
171 ret = install_thread_keyring_to_cred(new); in install_thread_keyring()
173 abort_creds(new); in install_thread_keyring()
177 return commit_creds(new); in install_thread_keyring()
[all …]
/kernel/linux/linux-5.10/security/apparmor/
Dtask.c11 * cred or task context but instead creates a new one. Ideally the task
37 * @label: new label (NOT NULL)
45 struct cred *new; in aa_replace_current_label() local
55 new = prepare_creds(); in aa_replace_current_label()
56 if (!new) in aa_replace_current_label()
79 aa_put_label(cred_label(new)); in aa_replace_current_label()
80 set_cred_label(new, label); in aa_replace_current_label()
82 commit_creds(new); in aa_replace_current_label()
118 struct cred *new; in aa_set_current_hat() local
120 new = prepare_creds(); in aa_set_current_hat()
[all …]
/kernel/linux/linux-4.19/security/apparmor/
Dtask.c15 * cred or task context but instead creates a new one. Ideally the task
41 * @label: new label (NOT NULL)
49 struct cred *new; in aa_replace_current_label() local
59 new = prepare_creds(); in aa_replace_current_label()
60 if (!new) in aa_replace_current_label()
83 aa_put_label(cred_label(new)); in aa_replace_current_label()
84 cred_label(new) = label; in aa_replace_current_label()
86 commit_creds(new); in aa_replace_current_label()
122 struct cred *new; in aa_set_current_hat() local
124 new = prepare_creds(); in aa_set_current_hat()
[all …]
/kernel/linux/linux-5.10/arch/s390/mm/
Dpageattr.c56 static void pgt_set(unsigned long *old, unsigned long new, unsigned long addr, in pgt_set() argument
75 crdte(*old, new, table, dtt, addr, S390_lowcore.kernel_asce); in pgt_set()
77 cspg(old, *old, new); in pgt_set()
79 csp((unsigned int *)old + 1, *old, new); in pgt_set()
86 pte_t *ptep, new; in walk_pte_level() local
90 new = *ptep; in walk_pte_level()
91 if (pte_none(new)) in walk_pte_level()
94 new = pte_wrprotect(new); in walk_pte_level()
96 new = pte_mkwrite(pte_mkdirty(new)); in walk_pte_level()
98 pte_val(new) |= _PAGE_NOEXEC; in walk_pte_level()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/rtc/
Dsetdate.c24 struct rtc_time new, current; in main() local
47 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main()
48 new.tm_mon -= 1; in main()
49 new.tm_year -= 1900; in main()
50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main()
53 new.tm_mday, new.tm_mon + 1, new.tm_year + 1900, in main()
54 new.tm_hour, new.tm_min, new.tm_sec); in main()
56 /* Write the new date in RTC */ in main()
57 retval = ioctl(fd, RTC_SET_TIME, &new); in main()
/kernel/linux/linux-4.19/arch/arm/kernel/
Dftrace.c105 unsigned long new, bool validate) in ftrace_modify_code() argument
111 new = __opcode_to_mem_thumb32(new); in ftrace_modify_code()
114 new = __opcode_to_mem_arm(new); in ftrace_modify_code()
125 if (probe_kernel_write((void *)pc, &new, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
136 unsigned long new; in ftrace_update_ftrace_func() local
140 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func()
142 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
147 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func()
149 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
156 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func()
[all …]
/kernel/linux/linux-4.19/drivers/mtd/
Dmtd_blkdevs.c332 int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) in add_mtd_blktrans_dev() argument
334 struct mtd_blktrans_ops *tr = new->tr; in add_mtd_blktrans_dev()
347 if (new->devnum == -1) { in add_mtd_blktrans_dev()
351 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
352 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev()
355 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev()
359 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev()
361 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev()
368 if (new->devnum == -1) in add_mtd_blktrans_dev()
369 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
[all …]
/kernel/linux/linux-5.10/arch/s390/include/asm/
Datomic_ops.h67 int old, new; \
70 "0: lr %[new],%[old]\n" \
71 op_string " %[new],%[val]\n" \
72 " cs %[old],%[new],%[ptr]\n" \
74 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
93 long old, new; \
96 "0: lgr %[new],%[old]\n" \
97 op_string " %[new],%[val]\n" \
98 " csg %[old],%[new],%[ptr]\n" \
100 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
[all …]
/kernel/linux/linux-4.19/arch/s390/include/asm/
Datomic_ops.h67 int old, new; \
70 "0: lr %[new],%[old]\n" \
71 op_string " %[new],%[val]\n" \
72 " cs %[old],%[new],%[ptr]\n" \
74 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
93 long old, new; \
96 "0: lgr %[new],%[old]\n" \
97 op_string " %[new],%[val]\n" \
98 " csg %[old],%[new],%[ptr]\n" \
100 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
[all …]
/kernel/linux/linux-4.19/tools/testing/selftests/rtc/
Dsetdate.c33 struct rtc_time new, current; in main() local
56 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main()
57 new.tm_mon -= 1; in main()
58 new.tm_year -= 1900; in main()
59 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main()
62 new.tm_mday, new.tm_mon + 1, new.tm_year + 1900, in main()
63 new.tm_hour, new.tm_min, new.tm_sec); in main()
65 /* Write the new date in RTC */ in main()
66 retval = ioctl(fd, RTC_SET_TIME, &new); in main()
/kernel/linux/linux-5.10/security/keys/
Dprocess_keys.c221 int install_thread_keyring_to_cred(struct cred *new) in install_thread_keyring_to_cred() argument
225 if (new->thread_keyring) in install_thread_keyring_to_cred()
228 keyring = keyring_alloc("_tid", new->uid, new->gid, new, in install_thread_keyring_to_cred()
235 new->thread_keyring = keyring; in install_thread_keyring_to_cred()
246 struct cred *new; in install_thread_keyring() local
249 new = prepare_creds(); in install_thread_keyring()
250 if (!new) in install_thread_keyring()
253 ret = install_thread_keyring_to_cred(new); in install_thread_keyring()
255 abort_creds(new); in install_thread_keyring()
259 return commit_creds(new); in install_thread_keyring()
[all …]
/kernel/linux/linux-4.19/arch/s390/mm/
Dpageattr.c57 static void pgt_set(unsigned long *old, unsigned long new, unsigned long addr, in pgt_set() argument
76 crdte(*old, new, table, dtt, addr, S390_lowcore.kernel_asce); in pgt_set()
78 cspg(old, *old, new); in pgt_set()
80 csp((unsigned int *)old + 1, *old, new); in pgt_set()
87 pte_t *ptep, new; in walk_pte_level() local
91 new = *ptep; in walk_pte_level()
92 if (pte_none(new)) in walk_pte_level()
95 new = pte_wrprotect(new); in walk_pte_level()
97 new = pte_mkwrite(pte_mkdirty(new)); in walk_pte_level()
99 pte_val(new) |= _PAGE_NOEXEC; in walk_pte_level()
[all …]

12345678910>>...315