Home
last modified time | relevance | path

Searched refs:S_ISUID (Results 1 – 5 of 5) sorted by relevance

/xnu-12377.1.9/libsyscall/wrappers/unix03/
H A Dfchmod.c45 if (res >= 0 || errno != EPERM || (mode & (S_ISUID | S_ISGID)) == 0) { in fchmod()
54 if (mode & S_ISUID) { in fchmod()
55 res = __fchmod(fd, mode ^ S_ISUID); in fchmod()
60 if ((mode & (S_ISUID | S_ISGID)) == (S_ISUID | S_ISGID)) { in fchmod()
61 res = __fchmod(fd, mode ^ (S_ISUID | S_ISGID)); in fchmod()
H A Dchmod.c45 if (res >= 0 || errno != EPERM || (mode & (S_ISUID | S_ISGID)) == 0) { in chmod()
54 if (mode & S_ISUID) { in chmod()
55 res = __chmod(path, mode ^ S_ISUID); in chmod()
60 if ((mode & (S_ISUID | S_ISGID)) == (S_ISUID | S_ISGID)) { in chmod()
61 res = __chmod(path, mode ^ (S_ISUID | S_ISGID)); in chmod()
/xnu-12377.1.9/bsd/sys/_types/
H A D_s_ifmt.h64 #define S_ISUID 0004000 /* [XSI] set user id on execution */ macro
/xnu-12377.1.9/bsd/sys/
H A Dstat.h460 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/xnu-12377.1.9/bsd/vfs/
H A Dvfs_subr.c10742 if ((vap->va_mode & S_ISUID) && (vap->va_uid != kauth_cred_getuid(cred))) { in vnode_authattr_new_internal()
11034 if (vap->va_mode & S_ISUID) { in vnode_authattr()
11302 if (newmode & (S_ISUID | S_ISGID)) { in vnode_authattr()
11305 newmode, newmode & ~(S_ISUID | S_ISGID)); in vnode_authattr()
11306 newmode &= ~(S_ISUID | S_ISGID); in vnode_authattr()