X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff..b5d655f7532a546b54809da387f7467d128a756b:/sys/chmodx_np.c diff --git a/sys/chmodx_np.c b/sys/chmodx_np.c index 099610e..6896298 100644 --- a/sys/chmodx_np.c +++ b/sys/chmodx_np.c @@ -21,7 +21,6 @@ * @APPLE_LICENSE_HEADER_END@ */ #include -#include #include #include #include @@ -61,19 +60,22 @@ fchmodx_np(int fd, filesec_t fsec) /* * Chmod syscalls. */ +extern int __chmod_extended(char *, uid_t, gid_t, int, struct kauth_filesec *); +extern int __fchmod_extended(int, uid_t, gid_t, int, struct kauth_filesec *); + static int chmodx_syscall(void *obj, uid_t fsowner, gid_t fsgrp, int mode, struct kauth_filesec *fsacl) { char *path = *(char **)obj; - return(syscall(SYS_chmod_extended, path, fsowner, fsgrp, mode, fsacl)); + return(__chmod_extended(path, fsowner, fsgrp, mode, fsacl)); } static int fchmodx_syscall(void *obj, uid_t fsowner, gid_t fsgrp, int mode, struct kauth_filesec *fsacl) { int fd = *(int *)obj; - return(syscall(SYS_fchmod_extended, fd, fsowner, fsgrp, mode, fsacl)); + return(__fchmod_extended(fd, fsowner, fsgrp, mode, fsacl)); } /*