Home
last modified time | relevance | path

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

12345678910>>...21

/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_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/sys/contrib/openzfs/module/os/linux/zfs/
H A Dpolicy.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 …]
H A Dzpl_inode.c40 cred_t *cr = CRED(); in zpl_lookup() local
73 crhold(cr); in zpl_lookup()
84 zfs_flags, cr, NULL, ppn); in zpl_lookup()
87 crfree(cr); in zpl_lookup()
135 zpl_vap_init(vattr_t *vap, struct inode *dir, umode_t mode, cred_t *cr, in zpl_vap_init() argument
142 zfs_i_user_ns(dir), crgetuid(cr)); in zpl_vap_init()
150 zfs_i_user_ns(dir), crgetgid(cr)); in zpl_vap_init()
175 cred_t *cr = CRED(); in zpl_create() local
188 crhold(cr); in zpl_create()
190 zpl_vap_init(vap, dir, mode, cr, user_ns); in zpl_create()
[all …]
H A Dzpl_ctldir.c133 cred_t *cr = CRED(); in zpl_root_lookup() local
137 crhold(cr); in zpl_root_lookup()
138 error = -zfsctl_root_lookup(dip, dname(dentry), &ip, 0, cr, NULL, NULL); in zpl_root_lookup()
140 crfree(cr); in zpl_root_lookup()
216 cred_t *cr = CRED(); in zpl_snapdir_lookup() local
220 crhold(cr); in zpl_snapdir_lookup()
223 0, cr, NULL, NULL); in zpl_snapdir_lookup()
226 crfree(cr); in zpl_snapdir_lookup()
296 cred_t *cr = CRED(); in zpl_snapdir_rename2() local
303 crhold(cr); in zpl_snapdir_rename2()
[all …]
H A Dzpl_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()
138 cred_t *cr = CRED(); in zpl_get_parent() local
143 crhold(cr); in zpl_get_parent()
145 error = -zfs_lookup(ITOZ(child->d_inode), "..", &zp, 0, cr, NULL, NULL); in zpl_get_parent()
147 crfree(cr); in zpl_get_parent()
159 cred_t *cr = CRED(); in zpl_commit_metadata() local
166 crhold(cr); in zpl_commit_metadata()
168 error = -zfs_fsync(ITOZ(inode), 0, cr); in zpl_commit_metadata()
[all …]
H A Dzpl_file.c56 cred_t *cr = CRED(); in zpl_open() local
64 crhold(cr); in zpl_open()
66 error = -zfs_open(ip, filp->f_mode, filp->f_flags, cr); in zpl_open()
68 crfree(cr); in zpl_open()
77 cred_t *cr = CRED(); in zpl_release() local
85 crhold(cr); in zpl_release()
86 error = -zfs_close(ip, filp->f_flags, cr); in zpl_release()
88 crfree(cr); in zpl_release()
97 cred_t *cr = CRED(); in zpl_iterate() local
101 crhold(cr); in zpl_iterate()
[all …]
/freebsd/sys/dev/bhnd/cores/chipc/
H A Dchipc_subr.c320 struct chipc_region *cr; in chipc_alloc_region() local
328 cr = malloc(sizeof(*cr), M_BHND, M_NOWAIT); in chipc_alloc_region()
329 if (cr == NULL) in chipc_alloc_region()
332 cr->cr_port_type = type; in chipc_alloc_region()
333 cr->cr_port_num = port; in chipc_alloc_region()
334 cr->cr_region_num = region; in chipc_alloc_region()
335 cr->cr_res = NULL; in chipc_alloc_region()
336 cr->cr_refs = 0; in chipc_alloc_region()
337 cr->cr_act_refs = 0; in chipc_alloc_region()
339 error = bhnd_get_region_addr(sc->dev, type, port, region, &cr->cr_addr, in chipc_alloc_region()
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dpolicy.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 …]
H A Dcred.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/sys/cddl/compat/opensolaris/sys/
H A Dpolicy.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/sys/kern/
H A Dkern_prot.c91 static void crfree_final(struct ucred *cr);
106 static void crsetgroups_internal(struct ucred *cr, int ngrp,
1423 securelevel_gt(struct ucred *cr, int level) in securelevel_gt() argument
1426 return (cr->cr_prison->pr_securelevel > level ? EPERM : 0); in securelevel_gt()
1430 securelevel_ge(struct ucred *cr, int level) in securelevel_ge() argument
1433 return (cr->cr_prison->pr_securelevel >= level ? EPERM : 0); in securelevel_ge()
1971 crcowget(struct ucred *cr) in crcowget() argument
1974 mtx_lock(&cr->cr_mtx); in crcowget()
1975 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p", in crcowget()
1976 __func__, cr->cr_users, cr)); in crcowget()
[all …]
H A Dsubr_counter.c127 counter_ratecheck(struct counter_rate *cr, int64_t limit) in counter_ratecheck() argument
132 val = cr->cr_over; in counter_ratecheck()
135 if ((u_int)(now - cr->cr_ticks) >= hz) { in counter_ratecheck()
140 if ((cr->cr_lock == 0) && in counter_ratecheck()
141 atomic_cmpset_acq_int(&cr->cr_lock, 0, 1)) { in counter_ratecheck()
146 if ((u_int)(now - cr->cr_ticks) >= hz) { in counter_ratecheck()
147 val = counter_u64_fetch(cr->cr_rate); in counter_ratecheck()
148 counter_u64_zero(cr->cr_rate); in counter_ratecheck()
149 cr->cr_over = 0; in counter_ratecheck()
150 cr->cr_ticks = now; in counter_ratecheck()
[all …]
/freebsd/sys/dev/ciss/
H A Dciss.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/sys/rpc/
H A Dsvc_auth.c173 struct ucred *cr = NULL; in svc_getcred() local
192 cr = crget(); in svc_getcred()
193 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xprt->xp_uid; in svc_getcred()
194 crsetgroups(cr, xprt->xp_ngrps, xprt->xp_gidp); in svc_getcred()
195 cr->cr_rgid = cr->cr_svgid = cr->cr_gid; in svc_getcred()
196 cr->cr_prison = curthread->td_ucred->cr_prison; in svc_getcred()
197 prison_hold(cr->cr_prison); in svc_getcred()
198 *crp = cr; in svc_getcred()
207 cr = crget(); in svc_getcred()
208 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xcr->cr_uid; in svc_getcred()
[all …]
H A Dclnt_bck.c202 struct ct_request *cr; in clnt_bck_call() local
208 cr = malloc(sizeof(struct ct_request), M_RPC, M_WAITOK); in clnt_bck_call()
214 free(cr, M_RPC); in clnt_bck_call()
227 cr->cr_mrep = NULL; in clnt_bck_call()
228 cr->cr_error = 0; in clnt_bck_call()
278 cr->cr_xid = xid; in clnt_bck_call()
296 TAILQ_INSERT_TAIL(&ct->ct_pending, cr, cr_link); in clnt_bck_call()
327 TAILQ_REMOVE(&ct->ct_pending, cr, cr_link); in clnt_bck_call()
333 reply_msg.acpted_rply.ar_verf.oa_base = cr->cr_verf; in clnt_bck_call()
340 TAILQ_REMOVE(&ct->ct_pending, cr, cr_link); in clnt_bck_call()
[all …]
H A Dclnt_dg.c349 struct cu_request *cr; in clnt_dg_call() local
353 cr = malloc(sizeof(struct cu_request), M_RPC, M_WAITOK); in clnt_dg_call()
359 free(cr, M_RPC); in clnt_dg_call()
372 cr->cr_client = cl; in clnt_dg_call()
373 cr->cr_mrep = NULL; in clnt_dg_call()
374 cr->cr_error = 0; in clnt_dg_call()
448 cr->cr_xid = xid; in clnt_dg_call()
469 TAILQ_INSERT_TAIL(&cs->cs_pending, cr, cr_link); in clnt_dg_call()
484 reply_msg.acpted_rply.ar_verf.oa_base = cr->cr_verf; in clnt_dg_call()
491 TAILQ_REMOVE(&cs->cs_pending, cr, cr_link); in clnt_dg_call()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-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/sys/dev/cesa/
H A Dcesa.c237 struct cesa_request *cr; in cesa_alloc_request() local
239 CESA_GENERIC_ALLOC_LOCKED(sc, cr, requests); in cesa_alloc_request()
240 if (!cr) in cesa_alloc_request()
243 STAILQ_INIT(&cr->cr_tdesc); in cesa_alloc_request()
244 STAILQ_INIT(&cr->cr_sdesc); in cesa_alloc_request()
246 return (cr); in cesa_alloc_request()
250 cesa_free_request(struct cesa_softc *sc, struct cesa_request *cr) in cesa_free_request() argument
255 STAILQ_CONCAT(&sc->sc_free_tdesc, &cr->cr_tdesc); in cesa_free_request()
260 STAILQ_CONCAT(&sc->sc_free_sdesc, &cr->cr_sdesc); in cesa_free_request()
264 if (cr->cr_dmap_loaded) { in cesa_free_request()
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dzfs_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/sys/contrib/ck/src/
H A Dck_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/sys/arm/freescale/imx/
H A Dimx_machdep.c67 volatile uint16_t cr, *pcr; in imx_wdog_cpu_reset() local
75 cr = *pcr; in imx_wdog_cpu_reset()
89 if (cr & WDOG_CR_WDT) { in imx_wdog_cpu_reset()
90 cr &= ~WDOG_CR_WDA; /* Assert active-low ext reset bit. */ in imx_wdog_cpu_reset()
91 *pcr = cr; in imx_wdog_cpu_reset()
104 cr &= ~WDOG_CR_SRS; /* Assert active-low software reset bit. */ in imx_wdog_cpu_reset()
105 *pcr = cr; in imx_wdog_cpu_reset()
106 *pcr = cr; in imx_wdog_cpu_reset()
107 *pcr = cr; in imx_wdog_cpu_reset()
/freebsd/sys/contrib/openzfs/include/os/freebsd/zfs/sys/
H A Dzfs_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/share/examples/bootforth/
H A Dloader.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/sys/fs/procfs/
H A Dprocfs_status.c68 struct ucred *cr; in procfs_doprocstatus()
138 cr = p->p_ucred; in procfs_doprocstatus()
141 (u_long)cr->cr_uid, in procfs_doprocstatus()
142 (u_long)cr->cr_ruid, in procfs_doprocstatus()
143 (u_long)cr->cr_rgid); in procfs_doprocstatus()
145 /* egid (cr->cr_svgid) is equal to cr_ngroups[0] in procfs_doprocstatus()
148 for (i = 0; i < cr->cr_ngroups; i++) { in procfs_doprocstatus()
149 sbuf_printf(sb, ",%lu", (u_long)cr->cr_groups[i]); in procfs_doprocstatus()
152 if (jailed(cr)) { in procfs_doprocstatus()
153 mtx_lock(&cr in procfs_doprocstatus()
67 struct ucred *cr; procfs_doprocstatus() local
[all...]
/freebsd/crypto/openssl/test/recipes/80-test_cmp_http_data/
H A Dtest_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