/macosx-10.10.1/Libc-1044.1.2/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.10.1/Libc-1044.1.2/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.10.1/Libc-1044.1.2/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.10.1/xnu-2782.1.97/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 | 2835 kauth_filesec_t fsec; local 2848 fsec = KAUTH_FILESEC_NONE; 2864 error = vn_stat((vnode_t)data, sbptr, &fsec, isstat64, ctx); 2933 if (fsec == KAUTH_FILESEC_NONE) { 2943 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { 2949 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) 2950 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); 2955 if (fsec != NULL) 2956 kauth_filesec_free(fsec); [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/vfs/ |
H A D | kpi_vfs.c | 1997 kauth_filesec_t fsec; local 2005 fsec = NULL; 2034 if (((fsec = kauth_filesec_alloc(fsec_size)) == NULL) || 2036 uio_addiov(fsec_uio, CAST_USER_ADDR_T(fsec), xsize)) { 2071 if (fsec->fsec_magic != host_fsec_magic) { 2077 host_acl_entrycount = ntohl(fsec->fsec_acl.acl_entrycount); 2089 kauth_filesec_acl_setendian(KAUTH_ENDIAN_HOST, fsec, NULL); 2091 *fsecp = fsec; 2092 fsec = NULL; 2095 if (fsec ! 2136 vnode_set_filesec(vnode_t vp, kauth_filesec_t fsec, kauth_acl_t acl, vfs_context_t ctx) argument 2187 kauth_filesec_t fsec; local 2512 kauth_filesec_t fsec; local [all...] |
H A D | vfs_vnops.c | 1173 kauth_filesec_t fsec; local 1286 fsec = kauth_filesec_alloc(va.va_acl->acl_entrycount); 1288 fsec = kauth_filesec_alloc(0); 1290 if (fsec == NULL) { 1294 fsec->fsec_magic = KAUTH_FILESEC_MAGIC; 1296 fsec->fsec_owner = va.va_uuuid; 1298 fsec->fsec_owner = kauth_null_guid; 1301 fsec->fsec_group = va.va_guuid; 1303 fsec->fsec_group = kauth_null_guid; 1306 bcopy(va.va_acl, &(fsec [all...] |
H A D | vfs_attrlist.c | 1713 struct kauth_filesec fsec; local 1717 fsec.fsec_magic = KAUTH_FILESEC_MAGIC; 1718 fsec.fsec_owner = kauth_null_guid; 1719 fsec.fsec_group = kauth_null_guid; 1720 attrlist_pack_variable2(abp, &fsec, __offsetof(struct kauth_filesec, fsec_acl), vap->va_acl, KAUTH_ACL_COPYSIZE(vap->va_acl));
|
H A D | vfs_syscalls.c | 5247 kauth_filesec_t fsec; local 5263 fsec = KAUTH_FILESEC_NONE; 5280 error = vn_stat(nd.ni_vp, statptr, (xsecurity != USER_ADDR_NULL ? &fsec : NULL), isstat64, ctx); 5340 if (fsec == KAUTH_FILESEC_NONE) { 5350 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { 5356 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) 5357 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); 5361 if (fsec != KAUTH_FILESEC_NONE) 5362 kauth_filesec_free(fsec); 7754 umask1(proc_t p, int newmask, __unused kauth_filesec_t fsec, int32_t *retval) argument [all...] |
/macosx-10.10.1/copyfile-118.1.2/ |
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.10.1/file_cmds-242/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);
|