Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 25 of 504) sorted by relevance

12345678910>>...21

/freebsd-14-stable/sys/contrib/openzfs/module/os/freebsd/spl/
HDspl_policy.c41 secpolicy_nfs(cred_t *cr) in secpolicy_nfs() argument
44 return (priv_check_cred(cr, PRIV_NFS_DAEMON)); in secpolicy_nfs()
48 secpolicy_zfs(cred_t *cr) in secpolicy_zfs() argument
51 return (priv_check_cred(cr, PRIV_VFS_MOUNT)); in secpolicy_zfs()
55 secpolicy_zfs_proc(cred_t *cr, proc_t *proc) in secpolicy_zfs_proc() argument
58 return (priv_check_cred(cr, PRIV_VFS_MOUNT)); in secpolicy_zfs_proc()
62 secpolicy_sys_config(cred_t *cr, int checkonly __unused) in secpolicy_sys_config() argument
65 return (priv_check_cred(cr, PRIV_ZFS_POOL_CONFIG)); in secpolicy_sys_config()
69 secpolicy_zinject(cred_t *cr) in secpolicy_zinject() argument
72 return (priv_check_cred(cr, PRIV_ZFS_INJECT)); in secpolicy_zinject()
[all …]
/freebsd-14-stable/sys/contrib/openzfs/module/os/linux/zfs/
HDpolicy.c45 priv_policy_ns(const cred_t *cr, int capability, int err, in priv_policy_ns() argument
48 if (cr != CRED() && (cr != kcred)) in priv_policy_ns()
62 priv_policy(const cred_t *cr, int capability, int err) in priv_policy() argument
64 return (priv_policy_ns(cr, capability, err, cr->user_ns)); in priv_policy()
68 priv_policy_user(const cred_t *cr, int capability, int err) in priv_policy_user() argument
77 return (priv_policy_ns(cr, capability, err, cr->user_ns)); in priv_policy_user()
79 return (priv_policy_ns(cr, capability, err, NULL)); in priv_policy_user()
88 secpolicy_nfs(const cred_t *cr) in secpolicy_nfs() argument
90 return (priv_policy(cr, CAP_SYS_ADMIN, EPERM)); in secpolicy_nfs()
97 secpolicy_sys_config(const cred_t *cr, boolean_t checkonly) in secpolicy_sys_config() argument
[all …]
HDzpl_inode.c40 cred_t *cr = CRED(); in zpl_lookup() local
53 crhold(cr); in zpl_lookup()
64 zfs_flags, cr, NULL, ppn); in zpl_lookup()
67 crfree(cr); in zpl_lookup()
115 zpl_vap_init(vattr_t *vap, struct inode *dir, umode_t mode, cred_t *cr, in zpl_vap_init() argument
122 zfs_i_user_ns(dir), crgetuid(cr)); in zpl_vap_init()
130 zfs_i_user_ns(dir), crgetgid(cr)); in zpl_vap_init()
145 cred_t *cr = CRED(); in zpl_create() local
154 crhold(cr); in zpl_create()
156 zpl_vap_init(vap, dir, mode, cr, user_ns); in zpl_create()
[all …]
HDzpl_ctldir.c129 cred_t *cr = CRED(); in zpl_root_lookup() local
133 crhold(cr); in zpl_root_lookup()
134 error = -zfsctl_root_lookup(dip, dname(dentry), &ip, 0, cr, NULL, NULL); in zpl_root_lookup()
136 crfree(cr); in zpl_root_lookup()
212 cred_t *cr = CRED(); in zpl_snapdir_lookup() local
216 crhold(cr); in zpl_snapdir_lookup()
219 0, cr, NULL, NULL); in zpl_snapdir_lookup()
222 crfree(cr); in zpl_snapdir_lookup()
292 cred_t *cr = CRED(); in zpl_snapdir_rename2() local
299 crhold(cr); in zpl_snapdir_rename2()
[all …]
HDzpl_export.c115 cred_t *cr = CRED(); in zpl_get_name() local
124 crhold(cr); in zpl_get_name()
130 crfree(cr); in zpl_get_name()
139 cred_t *cr = CRED(); in zpl_get_parent() local
144 crhold(cr); in zpl_get_parent()
146 error = -zfs_lookup(ITOZ(child->d_inode), "..", &zp, 0, cr, NULL, NULL); in zpl_get_parent()
148 crfree(cr); in zpl_get_parent()
160 cred_t *cr = CRED(); in zpl_commit_metadata() local
167 crhold(cr); in zpl_commit_metadata()
169 error = -zfs_fsync(ITOZ(inode), 0, cr); in zpl_commit_metadata()
[all …]
HDzpl_file.c55 cred_t *cr = CRED(); in zpl_open() local
63 crhold(cr); in zpl_open()
65 error = -zfs_open(ip, filp->f_mode, filp->f_flags, cr); in zpl_open()
67 crfree(cr); in zpl_open()
76 cred_t *cr = CRED(); in zpl_release() local
84 crhold(cr); in zpl_release()
85 error = -zfs_close(ip, filp->f_flags, cr); in zpl_release()
87 crfree(cr); in zpl_release()
96 cred_t *cr = CRED(); in zpl_iterate() local
100 crhold(cr); in zpl_iterate()
[all …]
/freebsd-14-stable/sys/dev/bhnd/cores/chipc/
HDchipc_subr.c321 struct chipc_region *cr; in chipc_alloc_region() local
329 cr = malloc(sizeof(*cr), M_BHND, M_NOWAIT); in chipc_alloc_region()
330 if (cr == NULL) in chipc_alloc_region()
333 cr->cr_port_type = type; in chipc_alloc_region()
334 cr->cr_port_num = port; in chipc_alloc_region()
335 cr->cr_region_num = region; in chipc_alloc_region()
336 cr->cr_res = NULL; in chipc_alloc_region()
337 cr->cr_refs = 0; in chipc_alloc_region()
338 cr->cr_act_refs = 0; in chipc_alloc_region()
340 error = bhnd_get_region_addr(sc->dev, type, port, region, &cr->cr_addr, in chipc_alloc_region()
[all …]
/freebsd-14-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/
HDpolicy.h39 int secpolicy_nfs(cred_t *cr);
41 int secpolicy_zfs_proc(cred_t *cr, proc_t *proc);
42 int secpolicy_sys_config(cred_t *cr, int checkonly);
43 int secpolicy_zinject(cred_t *cr);
44 int secpolicy_fs_unmount(cred_t *cr, struct mount *vfsp);
45 int secpolicy_basic_link(vnode_t *vp, cred_t *cr);
46 int secpolicy_vnode_owner(vnode_t *vp, cred_t *cr, uid_t owner);
47 int secpolicy_vnode_chown(vnode_t *vp, cred_t *cr, uid_t owner);
48 int secpolicy_vnode_stky_modify(cred_t *cr);
49 int secpolicy_vnode_remove(vnode_t *vp, cred_t *cr);
[all …]
HDcred.h59 #define crgetuid(cr) ((cr)->cr_uid) argument
60 #define crgetruid(cr) ((cr)->cr_ruid) argument
61 #define crgetgid(cr) ((cr)->cr_gid) argument
62 #define crgetgroups(cr) ((cr)->cr_groups) argument
63 #define crgetngroups(cr) ((cr)->cr_ngroups) argument
64 #define crgetzoneid(cr) ((cr)->cr_prison->pr_id) argument
/freebsd-14-stable/sys/cddl/compat/opensolaris/sys/
HDpolicy.h40 int secpolicy_nfs(cred_t *cr);
42 int secpolicy_sys_config(cred_t *cr, int checkonly);
43 int secpolicy_zinject(cred_t *cr);
44 int secpolicy_fs_unmount(cred_t *cr, struct mount *vfsp);
45 int secpolicy_basic_link(vnode_t *vp, cred_t *cr);
46 int secpolicy_vnode_owner(vnode_t *vp, cred_t *cr, uid_t owner);
47 int secpolicy_vnode_chown(vnode_t *vp, cred_t *cr, uid_t owner);
48 int secpolicy_vnode_stky_modify(cred_t *cr);
49 int secpolicy_vnode_remove(vnode_t *vp, cred_t *cr);
50 int secpolicy_vnode_access(cred_t *cr, vnode_t *vp, uid_t owner,
[all …]
/freebsd-14-stable/sys/dev/ciss/
HDciss.c146 static int ciss_start(struct ciss_request *cr);
153 static int _ciss_report_request(struct ciss_request *cr, int *command_status, int *scsi_status, con…
154 static int ciss_synch_request(struct ciss_request *cr, int timeout);
155 static int ciss_poll_request(struct ciss_request *cr, int timeout);
156 static int ciss_wait_request(struct ciss_request *cr, int timeout);
158 static int ciss_abort_request(struct ciss_request *cr);
163 static void ciss_preen_command(struct ciss_request *cr);
164 static void ciss_release_request(struct ciss_request *cr);
172 static int ciss_map_request(struct ciss_request *cr);
175 static void ciss_unmap_request(struct ciss_request *cr);
[all …]
/freebsd-14-stable/sys/rpc/
HDsvc_auth.c178 struct ucred *cr = NULL; in svc_getcred() local
197 cr = crget(); in svc_getcred()
198 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xprt->xp_uid; in svc_getcred()
199 crsetgroups(cr, xprt->xp_ngrps, xprt->xp_gidp); in svc_getcred()
200 cr->cr_rgid = cr->cr_svgid = cr->cr_gid; in svc_getcred()
201 cr->cr_prison = curthread->td_ucred->cr_prison; in svc_getcred()
202 prison_hold(cr->cr_prison); in svc_getcred()
203 *crp = cr; in svc_getcred()
212 cr = crget(); in svc_getcred()
213 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xcr->cr_uid; in svc_getcred()
[all …]
HDclnt_bck.c207 struct ct_request *cr; in clnt_bck_call() local
213 cr = malloc(sizeof(struct ct_request), M_RPC, M_WAITOK); in clnt_bck_call()
219 free(cr, M_RPC); in clnt_bck_call()
232 cr->cr_mrep = NULL; in clnt_bck_call()
233 cr->cr_error = 0; in clnt_bck_call()
283 cr->cr_xid = xid; in clnt_bck_call()
301 TAILQ_INSERT_TAIL(&ct->ct_pending, cr, cr_link); in clnt_bck_call()
332 TAILQ_REMOVE(&ct->ct_pending, cr, cr_link); in clnt_bck_call()
338 reply_msg.acpted_rply.ar_verf.oa_base = cr->cr_verf; in clnt_bck_call()
345 TAILQ_REMOVE(&ct->ct_pending, cr, cr_link); in clnt_bck_call()
[all …]
HDclnt_dg.c354 struct cu_request *cr; in clnt_dg_call() local
358 cr = malloc(sizeof(struct cu_request), M_RPC, M_WAITOK); in clnt_dg_call()
364 free(cr, M_RPC); in clnt_dg_call()
377 cr->cr_client = cl; in clnt_dg_call()
378 cr->cr_mrep = NULL; in clnt_dg_call()
379 cr->cr_error = 0; in clnt_dg_call()
453 cr->cr_xid = xid; in clnt_dg_call()
474 TAILQ_INSERT_TAIL(&cs->cs_pending, cr, cr_link); in clnt_dg_call()
489 reply_msg.acpted_rply.ar_verf.oa_base = cr->cr_verf; in clnt_dg_call()
496 TAILQ_REMOVE(&cs->cs_pending, cr, cr_link); in clnt_dg_call()
[all …]
/freebsd-14-stable/sys/contrib/openzfs/module/os/linux/spl/
HDspl-cred.c56 crhold(cred_t *cr) in crhold() argument
58 (void) get_cred((const cred_t *)cr); in crhold()
63 crfree(cred_t *cr) in crfree() argument
65 put_cred((const cred_t *)cr); in crfree()
70 crgetngroups(const cred_t *cr) in crgetngroups() argument
75 gi = cr->group_info; in crgetngroups()
86 crgetgroups(const cred_t *cr) in crgetgroups() argument
91 gi = cr->group_info; in crgetgroups()
99 groupmember(gid_t gid, const cred_t *cr) in groupmember() argument
104 gi = cr->group_info; in groupmember()
[all …]
/freebsd-14-stable/sys/kern/
HDkern_prot.c96 static void crfree_final(struct ucred *cr);
111 static void crsetgroups_internal(struct ucred *cr, int ngrp,
1781 securelevel_gt(struct ucred *cr, int level) in securelevel_gt() argument
1784 return (cr->cr_prison->pr_securelevel > level ? EPERM : 0); in securelevel_gt()
1788 securelevel_ge(struct ucred *cr, int level) in securelevel_ge() argument
1791 return (cr->cr_prison->pr_securelevel >= level ? EPERM : 0); in securelevel_ge()
2329 crcowget(struct ucred *cr) in crcowget() argument
2332 mtx_lock(&cr->cr_mtx); in crcowget()
2333 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p", in crcowget()
2334 __func__, cr->cr_users, cr)); in crcowget()
[all …]
HDsubr_counter.c128 counter_ratecheck(struct counter_rate *cr, int64_t limit) in counter_ratecheck() argument
133 val = cr->cr_over; in counter_ratecheck()
136 if ((u_int)(now - cr->cr_ticks) >= hz) { in counter_ratecheck()
141 if ((cr->cr_lock == 0) && in counter_ratecheck()
142 atomic_cmpset_acq_int(&cr->cr_lock, 0, 1)) { in counter_ratecheck()
147 if ((u_int)(now - cr->cr_ticks) >= hz) { in counter_ratecheck()
148 val = counter_u64_fetch(cr->cr_rate); in counter_ratecheck()
149 counter_u64_zero(cr->cr_rate); in counter_ratecheck()
150 cr->cr_over = 0; in counter_ratecheck()
151 cr->cr_ticks = now; in counter_ratecheck()
[all …]
/freebsd-14-stable/sys/dev/cesa/
HDcesa.c238 struct cesa_request *cr; in cesa_alloc_request() local
240 CESA_GENERIC_ALLOC_LOCKED(sc, cr, requests); in cesa_alloc_request()
241 if (!cr) in cesa_alloc_request()
244 STAILQ_INIT(&cr->cr_tdesc); in cesa_alloc_request()
245 STAILQ_INIT(&cr->cr_sdesc); in cesa_alloc_request()
247 return (cr); in cesa_alloc_request()
251 cesa_free_request(struct cesa_softc *sc, struct cesa_request *cr) in cesa_free_request() argument
256 STAILQ_CONCAT(&sc->sc_free_tdesc, &cr->cr_tdesc); in cesa_free_request()
261 STAILQ_CONCAT(&sc->sc_free_sdesc, &cr->cr_sdesc); in cesa_free_request()
265 if (cr->cr_dmap_loaded) { in cesa_free_request()
[all …]
/freebsd-14-stable/sys/contrib/openzfs/include/os/linux/zfs/sys/
HDzfs_vnops_os.h41 extern int zfs_open(struct inode *ip, int mode, int flag, cred_t *cr);
42 extern int zfs_close(struct inode *ip, int flag, cred_t *cr);
46 cred_t *cr, int *direntflags, pathname_t *realpnp);
49 int mode, znode_t **zpp, cred_t *cr, int flag, vsecattr_t *vsecp,
52 int mode, struct inode **ipp, cred_t *cr, int flag, vsecattr_t *vsecp,
54 extern int zfs_remove(znode_t *dzp, char *name, cred_t *cr, int flags);
56 znode_t **zpp, cred_t *cr, int flags, vsecattr_t *vsecp, zidmap_t *mnt_ns);
58 cred_t *cr, int flags);
59 extern int zfs_readdir(struct inode *ip, struct dir_context *ctx, cred_t *cr);
66 extern int zfs_setattr(znode_t *zp, vattr_t *vap, int flag, cred_t *cr,
[all …]
/freebsd-14-stable/sys/contrib/ck/src/
HDck_epoch.c322 struct ck_epoch_record *cr, in ck_epoch_scan() argument
328 if (cr == NULL) { in ck_epoch_scan()
332 cursor = &cr->record_next; in ck_epoch_scan()
339 cr = ck_epoch_record_container(cursor); in ck_epoch_scan()
341 state = ck_pr_load_uint(&cr->state); in ck_epoch_scan()
347 active = ck_pr_load_uint(&cr->active); in ck_epoch_scan()
350 if (active != 0 && ck_pr_load_uint(&cr->epoch) != epoch) in ck_epoch_scan()
351 return cr; in ck_epoch_scan()
411 epoch_block(struct ck_epoch *global, struct ck_epoch_record *cr, in epoch_block() argument
416 cb(global, cr, ct); in epoch_block()
[all …]
/freebsd-14-stable/sys/arm/freescale/imx/
HDimx_machdep.c68 volatile uint16_t cr, *pcr; in imx_wdog_cpu_reset() local
76 cr = *pcr; in imx_wdog_cpu_reset()
90 if (cr & WDOG_CR_WDT) { in imx_wdog_cpu_reset()
91 cr &= ~WDOG_CR_WDA; /* Assert active-low ext reset bit. */ in imx_wdog_cpu_reset()
92 *pcr = cr; in imx_wdog_cpu_reset()
105 cr &= ~WDOG_CR_SRS; /* Assert active-low software reset bit. */ in imx_wdog_cpu_reset()
106 *pcr = cr; in imx_wdog_cpu_reset()
107 *pcr = cr; in imx_wdog_cpu_reset()
108 *pcr = cr; in imx_wdog_cpu_reset()
/freebsd-14-stable/sys/contrib/openzfs/include/os/freebsd/zfs/sys/
HDzfs_vnops_os.h36 extern int zfs_remove(znode_t *dzp, const char *name, cred_t *cr, int flags);
38 znode_t **zpp, cred_t *cr, int flags, vsecattr_t *vsecp, zidmap_t *mnt_ns);
40 cred_t *cr, int flags);
41 extern int zfs_setattr(znode_t *zp, vattr_t *vap, int flag, cred_t *cr,
44 const char *tnm, cred_t *cr, int flags, uint64_t rflags, vattr_t *wo_vap,
47 const char *link, znode_t **zpp, cred_t *cr, int flags, zidmap_t *mnt_ns);
49 const char *name, cred_t *cr, int flags);
51 offset_t offset, cred_t *cr);
53 int mode, znode_t **zpp, cred_t *cr, int flag, vsecattr_t *vsecp,
56 cred_t *cr);
/freebsd-14-stable/share/examples/bootforth/
HDloader.rc4 cr .( Loading Forth extensions:)
8 cr .( - loader.4th...)
14 cr .( - screen.4th...)
18 cr .( - frames.4th...)
22 cr .( - menuconf.4th...)
27 cr cr .( Initializing loader.4th...)
31 cr
/freebsd-14-stable/sys/fs/procfs/
HDprocfs_status.c69 struct ucred *cr; in procfs_doprocstatus() local
144 cr = p->p_ucred; in procfs_doprocstatus()
147 (u_long)cr->cr_uid, in procfs_doprocstatus()
148 (u_long)cr->cr_ruid, in procfs_doprocstatus()
149 (u_long)cr->cr_rgid); in procfs_doprocstatus()
154 for (i = 0; i < cr->cr_ngroups; i++) { in procfs_doprocstatus()
155 sbuf_printf(sb, ",%lu", (u_long)cr->cr_groups[i]); in procfs_doprocstatus()
158 if (jailed(cr)) { in procfs_doprocstatus()
159 mtx_lock(&cr->cr_prison->pr_mtx); in procfs_doprocstatus()
161 prison_name(td->td_ucred->cr_prison, cr->cr_prison)); in procfs_doprocstatus()
[all …]
/freebsd-14-stable/crypto/openssl/test/recipes/80-test_cmp_http_data/
HDtest_commands.csv15 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK,
17 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK,
19 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK,
21 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK,
23 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK,
25 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK,
27 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK,
31 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK,
33 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK,
35 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK,
[all …]

12345678910>>...21