/macosx-10.9.5/Libc-997.90.3/gen/ |
H A D | filesec.c | 59 static void filesec_discard_aclbuf(struct _filesec *fsec); 73 filesec_dup(filesec_t fsec) argument 79 *fsp = *fsec; 80 if (FS_ISVALID(fsec, FS_VALID_ACL)) { 81 if (fsec->fs_aclbuf != _FILESEC_REMOVE_ACL) { 82 fsp->fs_aclbuf = malloc(fsec->fs_aclsize); 87 bcopy(fsec->fs_aclbuf, fsp->fs_aclbuf, fsec->fs_aclsize); 95 filesec_free(filesec_t fsec) argument 97 filesec_discard_aclbuf(fsec); 102 filesec_get_property(filesec_t fsec, filesec_property_t property, void *propptr) argument 191 filesec_set_property(filesec_t fsec, filesec_property_t property, const void *propptr) argument 298 filesec_unset_property(filesec_t fsec, filesec_property_t property) argument 304 filesec_query_property(filesec_t fsec, filesec_property_t property, int *validptr) argument 344 filesec_discard_aclbuf(struct _filesec *fsec) argument [all...] |
/macosx-10.9.5/Libc-997.90.3/sys/ |
H A D | umaskx_np.c | 32 umaskx_np(filesec_t fsec) argument 38 if (fsec) 40 if ((filesec_get_property(fsec, FILESEC_MODE, &newmask) != 0) && (errno != ENOENT)) 43 if (((filesec_get_property(fsec, FILESEC_ACL_RAW, &acl) != 0) || 44 (filesec_get_property(fsec, FILESEC_ACL_ALLOCSIZE, &size) != 0)) &&
|
H A D | openx_np.c | 37 _mkfilex_np(int opcode, const char *path, int flags, filesec_t fsec) argument 48 if (fsec != NULL) { 50 if ((filesec_get_property(fsec, FILESEC_OWNER, &owner) != 0) && (errno != ENOENT)) 52 if ((filesec_get_property(fsec, FILESEC_GROUP, &group) != 0) && (errno != ENOENT)) 54 if ((filesec_get_property(fsec, FILESEC_MODE, &mode) != 0) && (errno != ENOENT)) 58 if (((filesec_get_property(fsec, FILESEC_ACL_RAW, &fsacl) != 0) || 59 (filesec_get_property(fsec, FILESEC_ACL_ALLOCSIZE, &size) != 0)) && 80 if (filesec_get_property(fsec, FILESEC_UUID, &fsacl->fsec_owner) != 0) { 87 if (filesec_get_property(fsec, FILESEC_GRPUUID, &fsacl->fsec_group) != 0) { 114 openx_np(const char *path, int flags, filesec_t fsec) argument 123 mkfifox_np(const char *path, filesec_t fsec) argument 129 mkdirx_np(const char *path, filesec_t fsec) argument [all...] |
H A D | statx_np.c | 42 void *sbptr, filesec_t fsec); 48 statx_np(const char *path, struct stat *sb, filesec_t fsec) argument 50 if (fsec == NULL) 52 return(statx1((void *)&path, statx_syscall, (void *)sb, fsec)); 56 fstatx_np(int fd, struct stat *sb, filesec_t fsec) argument 58 if (fsec == NULL) 60 return(statx1((void *)&fd, fstatx_syscall, (void *)sb, fsec)); 64 lstatx_np(const char *path, struct stat *sb, filesec_t fsec) argument 66 if (fsec == NULL) 68 return(statx1((void *)&path, lstatx_syscall, (void *)sb, fsec)); 74 statx64_np(const char *path, struct stat64 *sb, filesec_t fsec) argument 80 fstatx64_np(int fd, struct stat64 *sb, filesec_t fsec) argument 86 lstatx64_np(const char *path, struct stat64 *sb, filesec_t fsec) argument 142 statx1(void *obj, int (* stat_syscall)(void *obj, void *sbptr, void *fsacl, size_t *fsacl_size), void *sbptr, filesec_t fsec) argument [all...] |
H A D | chmodx_np.c | 43 filesec_t fsec); 49 chmodx_np(const char *path, filesec_t fsec) argument 51 return(chmodx1((void *)&path, chmodx_syscall, fsec)); 55 fchmodx_np(int fd, filesec_t fsec) argument 57 return(chmodx1((void *)&fd, fchmodx_syscall, fsec)); 88 filesec_t fsec) 100 if (fsec == NULL) { 106 if ((filesec_get_property(fsec, FILESEC_OWNER, &fsowner) != 0) && (errno != ENOENT)) 108 if ((filesec_get_property(fsec, FILESEC_GROUP, &fsgrp) != 0) && (errno != ENOENT)) 110 if ((filesec_get_property(fsec, FILESEC_MOD 86 chmodx1(void *obj, int (chmod_syscall)(void *obj, uid_t fsowner, gid_t fsgrp, int mode, kauth_filesec_t fsacl), filesec_t fsec) argument [all...] |
/macosx-10.9.5/Libc-997.90.3/posix1e/ |
H A D | acl_file.c | 74 filesec_t fsec; local 82 if ((fsec = filesec_init()) == NULL) 86 if (fstatx_np(fd, &sb, fsec) == 0) 87 filesec_get_property(fsec, FILESEC_ACL, &acl); 88 filesec_free(fsec); 95 filesec_t fsec; local 103 if ((fsec = filesec_init()) == NULL) 107 if ((follow ? statx_np(path, &sb, fsec) : lstatx_np(path, &sb, fsec)) == 0) 108 filesec_get_property(fsec, FILESEC_AC 128 filesec_t fsec; local 151 filesec_t fsec; local [all...] |
/macosx-10.9.5/xnu-2422.115.4/bsd/kern/ |
H A D | kern_authorization.c | 967 kauth_filesec_t fsec; local 972 fsec = NULL; 989 if ((fsec = kauth_filesec_alloc(count)) == NULL) { 994 if ((error = copyin(xsecurity, (caddr_t)fsec, copysize)) != 0) 998 if (fsec->fsec_magic != KAUTH_FILESEC_MAGIC) { 1006 if ((fsec->fsec_entrycount != KAUTH_FILESEC_NOACL) && 1007 (fsec->fsec_entrycount > count)) { 1008 if (fsec->fsec_entrycount > KAUTH_ACL_MAX_ENTRIES) { 1013 count = fsec->fsec_entrycount; 1014 kauth_filesec_free(fsec); 1109 kauth_filesec_acl_setendian(int kendian, kauth_filesec_t fsec, kauth_acl_t acl) argument [all...] |
H A D | kern_descrip.c | 2634 kauth_filesec_t fsec; local 2647 fsec = KAUTH_FILESEC_NONE; 2663 error = vn_stat((vnode_t)data, sbptr, &fsec, isstat64, ctx); 2734 if (fsec == KAUTH_FILESEC_NONE) { 2744 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { 2750 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) 2751 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); 2756 if (fsec != NULL) 2757 kauth_filesec_free(fsec); [all...] |
/macosx-10.9.5/xnu-2422.115.4/bsd/vfs/ |
H A D | kpi_vfs.c | 1985 kauth_filesec_t fsec; local 1993 fsec = NULL; 2022 if (((fsec = kauth_filesec_alloc(fsec_size)) == NULL) || 2024 uio_addiov(fsec_uio, CAST_USER_ADDR_T(fsec), xsize)) { 2059 if (fsec->fsec_magic != host_fsec_magic) { 2065 host_acl_entrycount = ntohl(fsec->fsec_acl.acl_entrycount); 2077 kauth_filesec_acl_setendian(KAUTH_ENDIAN_HOST, fsec, NULL); 2079 *fsecp = fsec; 2080 fsec = NULL; 2083 if (fsec ! 2124 vnode_set_filesec(vnode_t vp, kauth_filesec_t fsec, kauth_acl_t acl, vfs_context_t ctx) argument 2175 kauth_filesec_t fsec; local 2500 kauth_filesec_t fsec; local [all...] |
H A D | vfs_vnops.c | 1104 kauth_filesec_t fsec; local 1217 fsec = kauth_filesec_alloc(va.va_acl->acl_entrycount); 1219 fsec = kauth_filesec_alloc(0); 1221 if (fsec == NULL) { 1225 fsec->fsec_magic = KAUTH_FILESEC_MAGIC; 1227 fsec->fsec_owner = va.va_uuuid; 1229 fsec->fsec_owner = kauth_null_guid; 1232 fsec->fsec_group = va.va_guuid; 1234 fsec->fsec_group = kauth_null_guid; 1237 bcopy(va.va_acl, &(fsec [all...] |
H A D | vfs_attrlist.c | 1922 struct kauth_filesec fsec; local 1926 fsec.fsec_magic = KAUTH_FILESEC_MAGIC; 1927 fsec.fsec_owner = kauth_null_guid; 1928 fsec.fsec_group = kauth_null_guid; 1929 attrlist_pack_variable2(&ab, &fsec, __offsetof(struct kauth_filesec, fsec_acl), va.va_acl, KAUTH_ACL_COPYSIZE(va.va_acl));
|
H A D | vfs_syscalls.c | 4742 kauth_filesec_t fsec; local 4754 fsec = KAUTH_FILESEC_NONE; 4771 error = vn_stat(ndp->ni_vp, statptr, (xsecurity != USER_ADDR_NULL ? &fsec : NULL), isstat64, ctx); 4831 if (fsec == KAUTH_FILESEC_NONE) { 4841 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { 4847 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) 4848 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); 4852 if (fsec != KAUTH_FILESEC_NONE) 4853 kauth_filesec_free(fsec); 7129 umask1(proc_t p, int newmask, __unused kauth_filesec_t fsec, int32_t *retval) argument [all...] |
/macosx-10.9.5/copyfile-103.92.1/ |
H A D | copyfile.c | 99 filesec_t fsec; member in struct:_copyfile_state 446 filesec_t fsec = NULL; local 451 fsec = filesec_init(); 452 if (fsec == NULL) { 456 if (fstatx_np(fd, &sb, fsec) != 0) { 462 if (filesec_get_property(fsec, FILESEC_ACL, &acl) != 0) { 472 filesec_set_property(fsec, FILESEC_ACL, &acl) != 0 || 473 filesec_set_property(fsec, FILESEC_MODE, &m) != 0 || 474 fchmodx_np(fd, fsec) != 0) 482 if (fsec) 1364 copyfile_fix_perms(copyfile_state_t s __unused, filesec_t *fsec) argument 1453 copyfile_unset_posix_fsec(filesec_t fsec) argument [all...] |
/macosx-10.9.5/file_cmds-230/chmod/ |
H A D | chmod_acl.c | 710 filesec_t fsec = filesec_init(); local 711 if (fsec == NULL) 713 if (filesec_set_property(fsec, FILESEC_ACL, 716 if (chmodx_np(path, fsec) != 0) { 722 filesec_free(fsec);
|