Lines Matching refs:cred
216 IN kauth_cred_t cred;
300 int synthfs_chmod(struct vnode *vp, int mode, kauth_cred_t cred, struct proc *p)
321 int synthfs_chflags(struct vnode *vp, u_long flags, kauth_cred_t cred, struct proc *p)
337 int synthfs_chown(struct vnode *vp, uid_t uid, gid_t gid, kauth_cred_t cred, struct proc *p)
355 if (ouid != uid && suser(cred, NULL)) sp->s_mode &= ~S_ISUID;
356 if (ogid != gid && suser(cred, NULL)) sp->s_mode &= ~S_ISGID;
384 kauth_cred_t cred = vfs_context_ucred(ap->a_context);
394 if ((result = synthfs_chflags(vp, vap->va_flags, cred, p))) {
406 if ((result = synthfs_chown(vp, nuid, ngid, cred, p))) {
445 result = synthfs_chmod(vp, (int)vap->va_mode, cred, p);
834 IN kauth_cred_t cred;
1023 kauth_cred_t cred = vfs_context_ucred(ctx);
1112 suser(cred, NULL) &&
1113 (kauth_cred_getuid(cred) != dsp->s_uid) &&
1116 (VTOS(target_vp)->s_uid != kauth_cred_getuid(cred))) {