Lines Matching refs:ucred
110 static int shm_access(struct shmfd *shmfd, struct ucred *ucred, int flags);
111 static struct shmfd *shm_alloc(struct ucred *ucred, mode_t mode);
117 static int shm_remove(char *path, Fnv32_t fnv, struct ucred *ucred);
288 shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
311 shm_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
340 shm_truncate(struct file *fp, off_t length, struct ucred *active_cred,
359 struct ucred *active_cred, struct thread *td)
366 shm_poll(struct file *fp, int events, struct ucred *active_cred,
381 shm_stat(struct file *fp, struct stat *sb, struct ucred *active_cred,
544 shm_alloc(struct ucred *ucred, mode_t mode)
551 shmfd->shm_uid = ucred->cr_uid;
552 shmfd->shm_gid = ucred->cr_gid;
555 shmfd->shm_size, VM_PROT_DEFAULT, 0, ucred);
575 mac_posixshm_create(ucred, shmfd);
611 shm_access(struct shmfd *shmfd, struct ucred *ucred, int flags)
623 accmode, ucred, NULL);
676 shm_remove(char *path, Fnv32_t fnv, struct ucred *ucred)
686 error = mac_posixshm_check_unlink(ucred, map->sm_shmfd);
690 error = shm_access(map->sm_shmfd, ucred,
892 shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
921 shm_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,