Lines Matching defs:cred
1118 kauth_cred_t cred = vfs_context_ucred(ap->a_context);
1251 ((error = hfs_chown(vp, nuid, ngid, cred, p)) != 0))
1261 ((error = hfs_chmod(vp, (int)vap->va_mode, cred, p)) != 0))
1395 hfs_chmod(struct vnode *vp, int mode, __unused kauth_cred_t cred, __unused struct proc *p)
1420 hfs_write_access(struct vnode *vp, kauth_cred_t cred, struct proc *p, Boolean considerFlags)
1447 if (!suser(cred, NULL))
1451 if ((retval = hfs_owner_rights(VTOHFS(vp), cp->c_uid, cred, p, false)) == 0)
1455 if (kauth_cred_ismember_gid(cred, cp->c_gid, &is_member) == 0 && is_member) {
1470 hfs_chown(struct vnode *vp, uid_t uid, gid_t gid, __unused kauth_cred_t cred,
1473 hfs_chown(struct vnode *vp, uid_t uid, gid_t gid, kauth_cred_t cred,
1503 if ((kauth_cred_getuid(cred) != cp->c_uid || uid != cp->c_uid ||
1505 (kauth_cred_ismember_gid(cred, gid, &is_member) || !is_member))) &&
1506 (error = suser(cred, 0)))
1532 (void) hfs_chkdq(cp, -change, cred, CHOWN);
1533 (void) hfs_chkiq(cp, -1, cred, CHOWN);
1551 if ((error = hfs_chkdq(cp, change, cred, CHOWN)) == 0) {
1552 if ((error = hfs_chkiq(cp, 1, cred, CHOWN)) == 0)
1555 (void) hfs_chkdq(cp, -change, cred, CHOWN|FORCE);
1573 (void) hfs_chkdq(cp, change, cred, FORCE|CHOWN);
1574 (void) hfs_chkiq(cp, 1, cred, FORCE|CHOWN);