Lines Matching defs:ucred
103 static int shm_access(struct shmfd *shmfd, struct ucred *ucred, int flags);
104 static struct shmfd *shm_alloc(struct ucred *ucred, mode_t mode);
110 static int shm_remove(char *path, Fnv32_t fnv, struct ucred *ucred);
280 shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
303 shm_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
332 shm_truncate(struct file *fp, off_t length, struct ucred *active_cred,
351 struct ucred *active_cred, struct thread *td)
358 shm_poll(struct file *fp, int events, struct ucred *active_cred,
373 shm_stat(struct file *fp, struct stat *sb, struct ucred *active_cred,
534 shm_alloc(struct ucred *ucred, mode_t mode)
540 shmfd->shm_uid = ucred->cr_uid;
541 shmfd->shm_gid = ucred->cr_gid;
544 shmfd->shm_size, VM_PROT_DEFAULT, 0, ucred);
558 mac_posixshm_create(ucred, shmfd);
592 shm_access(struct shmfd *shmfd, struct ucred *ucred, int flags)
604 accmode, ucred, NULL);
653 shm_remove(char *path, Fnv32_t fnv, struct ucred *ucred)
663 error = mac_posixshm_check_unlink(ucred, map->sm_shmfd);
667 error = shm_access(map->sm_shmfd, ucred,
863 shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
892 shm_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,