Home
last modified time | relevance | path

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

/xnu-10002.41.9/libsyscall/wrappers/unix03/
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()
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()
/xnu-10002.41.9/bsd/sys/_types/
H A D_s_ifmt.h64 #define S_ISUID 0004000 /* [XSI] set user id on execution */ macro
/xnu-10002.41.9/bsd/sys/
H A Dstat.h460 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/xnu-10002.41.9/bsd/vfs/
H A Dvfs_subr.c10389 if ((vap->va_mode & S_ISUID) && (vap->va_uid != kauth_cred_getuid(cred))) { in vnode_authattr_new_internal()
10681 if (vap->va_mode & S_ISUID) { in vnode_authattr()
10949 if (newmode & (S_ISUID | S_ISGID)) { in vnode_authattr()
10952 newmode, newmode & ~(S_ISUID | S_ISGID)); in vnode_authattr()
10953 newmode &= ~(S_ISUID | S_ISGID); in vnode_authattr()