/illumos-gate/usr/src/uts/common/sys/ |
H A D | policy.h | 65 int priv_policy(const cred_t *, int, boolean_t, int, const char *); 66 boolean_t priv_policy_only(const cred_t *, int, boolean_t); 67 boolean_t priv_policy_choice(const cred_t *, int, boolean_t); 74 int secpolicy_acct(const cred_t *); 75 int secpolicy_require_privs(const cred_t *, const struct priv_set *); 76 int secpolicy_allow_setid(const cred_t *, uid_t, boolean_t); 77 int secpolicy_audit_config(const cred_t *); 78 int secpolicy_audit_getattr(const cred_t *, boolean_t); 79 int secpolicy_audit_modify(const cred_t *); 80 int secpolicy_blacklist(const cred_t *); [all …]
|
H A D | cred.h | 48 typedef struct cred cred_t; typedef 70 extern void crhold(cred_t *); 71 extern void crfree(cred_t *); 72 extern cred_t *cralloc(void); /* all but ref uninitialized */ 73 extern cred_t *cralloc_ksid(void); /* cralloc() + ksid alloc'ed */ 74 extern cred_t *crget(void); /* initialized */ 75 extern cred_t *crcopy(cred_t *); 76 extern void crcopy_to(cred_t *, cred_t *); 77 extern cred_t *crdup(cred_t *); 78 extern void crdup_to(cred_t *, cred_t *); [all …]
|
H A D | socket_proto.h | 101 sock_upcalls_t *, int, cred_t *); 103 sock_upper_handle_t, cred_t *); 105 cred_t *); 106 int (*sd_listen)(sock_lower_handle_t, int, cred_t *); 108 socklen_t, sock_connid_t *, cred_t *); 110 socklen_t *, cred_t *); 112 socklen_t *, cred_t *); 114 socklen_t *, cred_t *); 116 socklen_t, cred_t *); 118 cred_t *); [all …]
|
H A D | fem.h | 151 int (*femop_open)(femarg_t *vf, int mode, cred_t *cr, \ 154 offset_t offset, cred_t *cr, \ 157 cred_t *cr, caller_context_t *ct); \ 159 cred_t *cr, caller_context_t *ct); \ 161 int flag, cred_t *cr, int *rvalp, \ 164 cred_t *cr, caller_context_t *ct); \ 166 cred_t *cr, caller_context_t *ct); \ 168 cred_t *cr, caller_context_t *ct); \ 170 cred_t *cr, caller_context_t *ct); \ 173 cred_t *cr, caller_context_t *ct, \ [all …]
|
H A D | tem_impl.h | 250 screen_pos_t, screen_pos_t, cred_t *, enum called_from); 253 screen_pos_t, screen_pos_t, cred_t *, enum called_from); 254 void (*tsc_cursor)(struct tem_vt_state *, short, cred_t *, 258 screen_pos_t, screen_pos_t, cred_t *, enum called_from); 306 int tems_cls_layered(struct vis_consclear *, cred_t *); 307 void tems_display_layered(struct vis_consdisplay *, cred_t *); 308 void tems_copy_layered(struct vis_conscopy *, cred_t *); 309 void tems_cursor_layered(struct vis_conscursor *, cred_t *); 310 void tems_safe_copy(struct vis_conscopy *, cred_t *, enum called_from); 312 void tem_align(struct tem_vt_state *, cred_t *, enum called_from); [all …]
|
H A D | sockfilter.h | 74 cred_t *, void **); 78 typedef void (*sof_detach_fn_t)(sof_handle_t, void *, cred_t *); 82 mblk_t *, cred_t *, size_t *); 84 struct nmsghdr *, cred_t *, sof_rval_t *); 86 struct sockaddr *, socklen_t *, cred_t *); 88 cred_t *); 89 typedef sof_rval_t (*sof_accept_fn_t)(sof_handle_t, void *, cred_t *); 91 struct sockaddr *, socklen_t *, cred_t *); 93 cred_t *); 95 struct sockaddr *, socklen_t *, cred_t *); [all …]
|
H A D | vnode.h | 903 int (*vop_open)(vnode_t **, int, cred_t *, \ 905 int (*vop_close)(vnode_t *, int, int, offset_t, cred_t *, \ 907 int (*vop_read)(vnode_t *, uio_t *, int, cred_t *, \ 909 int (*vop_write)(vnode_t *, uio_t *, int, cred_t *, \ 911 int (*vop_ioctl)(vnode_t *, int, intptr_t, int, cred_t *, \ 913 int (*vop_setfl)(vnode_t *, int, int, cred_t *, \ 915 int (*vop_getattr)(vnode_t *, vattr_t *, int, cred_t *, \ 917 int (*vop_setattr)(vnode_t *, vattr_t *, int, cred_t *, \ 919 int (*vop_access)(vnode_t *, int, int, cred_t *, \ 923 int, vnode_t *, cred_t *, \ [all …]
|
H A D | tem.h | 48 tem_vt_state_t tem_init(cred_t *, queue_t *); 50 void tem_destroy(tem_vt_state_t, cred_t *); 52 int tem_info_init(char *, cred_t *); 54 void tem_write(tem_vt_state_t, uchar_t *, ssize_t, cred_t *); 62 void tem_activate(tem_vt_state_t, boolean_t, cred_t *); 64 void tem_switch(tem_vt_state_t, tem_vt_state_t, cred_t *); 68 void tem_set_fbmode(tem_vt_state_t, uchar_t, cred_t *);
|
/illumos-gate/usr/src/uts/common/smbsrv/ |
H A D | smb_fsops.h | 48 int smb_fsop_open(smb_node_t *, int, cred_t *); 49 void smb_fsop_close(smb_node_t *, int, cred_t *); 54 int smb_fsop_create(smb_request_t *, cred_t *, smb_node_t *, 58 smb_fsop_create_stream(smb_request_t *, cred_t *, smb_node_t *, smb_node_t *, 61 int smb_fsop_mkdir(smb_request_t *, cred_t *, smb_node_t *, 64 int smb_fsop_remove(smb_request_t *sr, cred_t *cr, smb_node_t *, 67 int smb_fsop_rmdir(smb_request_t *, cred_t *, smb_node_t *, char *, uint32_t); 69 int smb_fsop_getattr(smb_request_t *, cred_t *, smb_node_t *, smb_attr_t *); 73 int smb_fsop_link(smb_request_t *, cred_t *, smb_node_t *, smb_node_t *, 76 int smb_fsop_rename(smb_request_t *, cred_t *, [all …]
|
H A D | smb_vops.h | 127 int smb_vop_open(vnode_t **, int, cred_t *); 128 void smb_vop_close(vnode_t *, int, cred_t *); 129 int smb_vop_read(vnode_t *, uio_t *, int, cred_t *); 130 int smb_vop_write(vnode_t *, uio_t *, int, uint32_t *, cred_t *); 131 int smb_vop_ioctl(vnode_t *, int, void *, cred_t *); 132 int smb_vop_reqzcbuf(vnode_t *, int, xuio_t *, cred_t *); 133 int smb_vop_retzcbuf(vnode_t *, xuio_t *, cred_t *); 134 int smb_vop_getattr(vnode_t *, vnode_t *, smb_attr_t *, int, cred_t *); 135 int smb_vop_setattr(vnode_t *, vnode_t *, smb_attr_t *, int, cred_t *); 136 int smb_vop_space(vnode_t *, int, flock64_t *, int, offset_t, cred_t *); [all …]
|
/illumos-gate/usr/src/lib/libfakekernel/common/sys/ |
H A D | cred.h | 51 typedef struct cred cred_t; typedef 55 cred_t *_curcred(void); 67 extern void crhold(cred_t *); 68 extern void crfree(cred_t *); 70 extern int groupmember(gid_t, const cred_t *); 72 extern cred_t *zone_kcred(void); 74 extern uid_t crgetuid(const cred_t *); 75 extern uid_t crgetruid(const cred_t *); 76 extern uid_t crgetsuid(const cred_t *); 77 extern gid_t crgetgid(const cred_t *); [all …]
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | cred.c | 38 cred_t cred0; 39 cred_t *kcred = &cred0; 51 cred_t cred1 = { 60001, &ksid1 }; 53 cred_t * 62 crfree(cred_t *cr) in crfree() 68 crhold(cred_t *cr) in crhold() 74 crgetuid(const cred_t *cr) in crgetuid() 81 crgetruid(const cred_t *cr) in crgetruid() 88 crgetgid(const cred_t *cr) in crgetgid() 95 crgetngroups(const cred_t *cr) in crgetngroups() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | policy.c | 182 static int priv_policy_ap(const cred_t *, int, boolean_t, int, 184 static int priv_policy_va(const cred_t *, int, boolean_t, int, 230 priv_policy_errmsg(const cred_t *cr, int priv, const char *msg) in priv_policy_errmsg() 342 priv_policy_override(const cred_t *cr, int priv, boolean_t allzone, va_list ap) in priv_policy_override() 363 priv_policy_override_set(const cred_t *cr, const priv_set_t *req, va_list ap) in priv_policy_override_set() 374 priv_policy_override_set_va(const cred_t *cr, const priv_set_t *req, ...) in priv_policy_override_set_va() 389 priv_policy_err(const cred_t *cr, int priv, boolean_t allzone, const char *msg) in priv_policy_err() 413 priv_policy_ap(const cred_t *cr, int priv, boolean_t allzone, int err, in priv_policy_ap() 437 priv_policy_va(const cred_t *cr, int priv, boolean_t allzone, int err, in priv_policy_va() 451 priv_policy(const cred_t *cr, int priv, boolean_t allzone, int err, in priv_policy() [all …]
|
H A D | cred.c | 79 cred_t *eph_nobody; 93 cred_t *kcred; 94 static cred_t *dummycr; 143 static cred_t *crdup_flags(const cred_t *, int); 144 static cred_t *cralloc_flags(int); 172 crsize = sizeof (cred_t); in cred_init() 248 static cred_t * 251 cred_t *cr = kmem_cache_alloc(cred_cache, flgs); in cralloc_flags() 265 cred_t * 274 cred_t * [all …]
|
/illumos-gate/usr/src/uts/common/nfs/ |
H A D | rnode.h | 58 cred_t *cred; 274 cred_t *r_cred; /* current credentials */ 275 cred_t *r_unlcred; /* unlinked credentials */ 290 (vnode_t *, page_t *, u_offset_t *, size_t *, int, cred_t *); 344 struct seg *, cred_t *, 346 caddr_t, struct seg *, cred_t *)); 348 int, cred_t *, int (*)(vnode_t *, page_t *, 349 u_offset_t, size_t, int, cred_t *)); 351 int, cred_t *, int (*)(vnode_t *, page_t *, 352 u_offset_t, size_t, int, cred_t *)); [all …]
|
H A D | rnode4.h | 69 cred_t *cred; 246 cred_t *r_unlcred; /* unlinked credentials */ 265 (vnode_t *, page_t *, u_offset_t *, size_t *, int, cred_t *); 298 cred_t *r_deleg_cred; /* credential in force when the */ 400 extern void r4flush(struct vfs *, cred_t *); 401 extern void destroy_rtable4(struct vfs *, cred_t *); 403 extern void rp4_addfree(rnode4_t *, cred_t *); 410 hrtime_t, cred_t *, vnode_t *, nfs4_fname_t *); 412 nfs4_fname_t **, nfs4_ga_res_t *, mntinfo4_t *, cred_t *, hrtime_t); 419 extern nfs4_access_type_t nfs4_access_check(rnode4_t *, uint32_t, cred_t *); [all …]
|
H A D | nfs_acl.h | 332 struct exportinfo *, struct svc_req *, cred_t *, bool_t); 336 struct exportinfo *, struct svc_req *, cred_t *, bool_t); 339 struct exportinfo *, struct svc_req *, cred_t *, bool_t); 342 struct exportinfo *, struct svc_req *, cred_t *, bool_t); 345 struct exportinfo *, struct svc_req *, cred_t *, bool_t); 349 struct exportinfo *, struct svc_req *, cred_t *, bool_t); 353 struct exportinfo *, struct svc_req *, cred_t *, bool_t); 356 struct exportinfo *, struct svc_req *, cred_t *, bool_t); 363 extern int acl_getacl2(vnode_t *, vsecattr_t *, int, cred_t *); 364 extern int acl_setacl2(vnode_t *, vsecattr_t *, int, cred_t *); [all …]
|
H A D | nfs4_clnt.h | 168 cred_t *cr; 575 cred_t *oo_cred; 583 cred_t *oo_cred_otw; 689 cred_t *lr_cr; 1301 cred_t *s_cred; 1497 struct seg *, cred_t *, 1499 caddr_t, struct seg *, cred_t *)); 1501 int, cred_t *, int (*)(vnode_t *, page_t *, 1502 u_offset_t, size_t, int, cred_t *)); 1504 int, cred_t *, int (*)(vnode_t *, page_t *, [all …]
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | fs_subr.h | 57 extern int fs_nosys_syncfs(vfs_t *, uint64_t, cred_t *); 66 extern int fs_ioctl(vnode_t *, int, intptr_t, int, cred_t *, int *); 67 extern int fs_putpage(vnode_t *, offset_t, size_t, int, cred_t *, 69 extern int fs_fsync(vnode_t *, int, cred_t *, caller_context_t *); 70 extern int fs_sync(struct vfs *, short, cred_t *); 71 extern int fs_syncfs_nop(vfs_t *, uint64_t, cred_t *); 77 struct flk_callback *, cred_t *, caller_context_t *); 78 extern int fs_setfl(vnode_t *, int, int, cred_t *, caller_context_t *); 88 extern int fs_fab_acl(struct vnode *, vsecattr_t *, int flag, cred_t *, 91 cred_t *, caller_context_t *); [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | zfs_acl.h | 207 cred_t *, vsecattr_t *, zfs_acl_ids_t *); 210 int zfs_getacl(struct znode *, vsecattr_t *, boolean_t, cred_t *); 211 int zfs_setacl(struct znode *, vsecattr_t *, boolean_t, cred_t *); 215 extern boolean_t zfs_has_access(struct znode *zp, cred_t *cr); 216 extern int zfs_zaccess(struct znode *, int, int, boolean_t, cred_t *); 217 int zfs_fastaccesschk_execute(struct znode *, cred_t *, boolean_t); 218 extern int zfs_zaccess_rwx(struct znode *, mode_t, int, cred_t *); 219 extern int zfs_zaccess_unix(struct znode *, mode_t, cred_t *); 220 extern int zfs_acl_access(struct znode *, int, cred_t *); 222 int zfs_zaccess_delete(struct znode *, struct znode *, cred_t *); [all …]
|
H A D | zvol.h | 42 extern void zvol_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx); 48 extern int zvol_open(dev_t *devp, int flag, int otyp, cred_t *cr); 50 extern int zvol_close(dev_t dev, int flag, int otyp, cred_t *cr); 52 extern int zvol_read(dev_t dev, uio_t *uiop, cred_t *cr); 53 extern int zvol_write(dev_t dev, uio_t *uiop, cred_t *cr); 54 extern int zvol_aread(dev_t dev, struct aio_req *aio, cred_t *cr); 55 extern int zvol_awrite(dev_t dev, struct aio_req *aio, cred_t *cr); 56 extern int zvol_ioctl(dev_t dev, int cmd, intptr_t arg, int flag, cred_t *cr,
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socktpi_impl.h | 49 extern int so_set_events(struct sonode *, vnode_t *, cred_t *); 74 extern mblk_t *soallocproto(size_t, int, cred_t *); 75 extern mblk_t *soallocproto1(const void *, ssize_t, ssize_t, int, cred_t *); 78 ssize_t, int, cred_t *); 80 const void *, ssize_t, ssize_t, int, cred_t *); 82 extern int so_set_asyncsigs(vnode_t *, pid_t, int, int, cred_t *); 83 extern int so_flip_async(struct sonode *, vnode_t *, int, cred_t *); 84 extern int so_set_siggrp(struct sonode *, vnode_t *, pid_t, int, cred_t *); 90 mblk_t *, cred_t *);
|
H A D | sockfilter_impl.h | 141 extern int sof_sonode_autoattach_filters(struct sonode *, cred_t *); 183 sof_instance_t *, mblk_t *, struct nmsghdr *, cred_t *, int *); 187 socklen_t *, cred_t *); 188 extern int sof_filter_listen(struct sonode *, int *, cred_t *); 190 socklen_t *, cred_t *); 191 extern int sof_filter_accept(struct sonode *, cred_t *); 192 extern int sof_filter_shutdown(struct sonode *, int *, cred_t *); 194 socklen_t *, cred_t *); 196 socklen_t *, cred_t *); 198 socklen_t *, cred_t *); [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_fem.c | 48 vnode_t **, cred_t *, int, caller_context_t *, vsecattr_t *); 49 static int smb_fem_fcn_remove(femarg_t *, char *, cred_t *, 52 cred_t *, caller_context_t *, int); 54 cred_t *, caller_context_t *, int, vsecattr_t *); 55 static int smb_fem_fcn_rmdir(femarg_t *, char *, vnode_t *, cred_t *, 57 static int smb_fem_fcn_link(femarg_t *, vnode_t *, char *, cred_t *, 60 char *, cred_t *, caller_context_t *, int); 77 static int smb_fem_oplock_open(femarg_t *, int, cred_t *, 79 static int smb_fem_oplock_read(femarg_t *, uio_t *, int, cred_t *, 81 static int smb_fem_oplock_write(femarg_t *, uio_t *, int, cred_t *, [all …]
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | nd.h | 44 typedef int (*ndgetf_t)(queue_t *, MBLKP, caddr_t, cred_t *); 45 typedef int (*ndsetf_t)(queue_t *, MBLKP, char *, caddr_t, cred_t *); 79 extern int nd_get_default(queue_t *, MBLKP, caddr_t, cred_t *); 80 extern int nd_get_long(queue_t *, MBLKP, caddr_t, cred_t *); 81 extern int nd_get_names(queue_t *, MBLKP, caddr_t, cred_t *); 82 extern int nd_set_default(queue_t *, MBLKP, char *, caddr_t, cred_t *); 83 extern int nd_set_long(queue_t *, MBLKP, char *, caddr_t, cred_t *);
|