Searched refs:fsec (Results 1 – 6 of 6) sorted by relevance
| /xnu-11215/bsd/kern/ |
| H A D | kern_authorization.c | 967 kauth_filesec_t fsec; in kauth_copyinfilesec() local 972 fsec = NULL; in kauth_copyinfilesec() 1017 (fsec->fsec_entrycount > count)) { in kauth_copyinfilesec() 1023 count = fsec->fsec_entrycount; in kauth_copyinfilesec() 1024 kauth_filesec_free(fsec); in kauth_copyinfilesec() 1030 if (fsec) { in kauth_copyinfilesec() 1031 kauth_filesec_free(fsec); in kauth_copyinfilesec() 1034 *xsecdestpp = fsec; in kauth_copyinfilesec() 1035 AUDIT_ARG(opaque, fsec, copysize); in kauth_copyinfilesec() 1136 acl = &fsec->fsec_acl; in kauth_filesec_acl_setendian() [all …]
|
| H A D | kern_descrip.c | 5445 kauth_filesec_t fsec; in fstat() local 5458 fsec = KAUTH_FILESEC_NONE; in fstat() 5474 error = vn_stat((vnode_t)data, sbptr, &fsec, isstat64, 0, ctx); in fstat() 5542 if (fsec == KAUTH_FILESEC_NONE) { in fstat() 5552 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { in fstat() 5558 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) { in fstat() 5559 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); in fstat() 5565 if (fsec != NULL) { in fstat() 5566 kauth_filesec_free(fsec); in fstat()
|
| /xnu-11215/bsd/vfs/ |
| H A D | kpi_vfs.c | 2500 kauth_filesec_t fsec; in vnode_get_filesec() local 2508 fsec = NULL; in vnode_get_filesec() 2600 *fsecp = fsec; in vnode_get_filesec() 2601 fsec = NULL; in vnode_get_filesec() 2604 if (fsec != NULL) { in vnode_get_filesec() 2750 kauth_filesec_t fsec; in vnode_getattr() local 2794 fsec = NULL; in vnode_getattr() 2803 if (fsec == NULL) { in vnode_getattr() 3190 fsec = NULL; in vnode_setattr_fallback() 3200 if (fsec == NULL) { in vnode_setattr_fallback() [all …]
|
| H A D | vfs_vnops.c | 1465 kauth_filesec_t fsec; in vn_stat_noauth() local 1599 fsec = kauth_filesec_alloc(va.va_acl->acl_entrycount); in vn_stat_noauth() 1601 fsec = kauth_filesec_alloc(0); in vn_stat_noauth() 1603 if (fsec == NULL) { in vn_stat_noauth() 1607 fsec->fsec_magic = KAUTH_FILESEC_MAGIC; in vn_stat_noauth() 1609 fsec->fsec_owner = va.va_uuuid; in vn_stat_noauth() 1611 fsec->fsec_owner = kauth_null_guid; in vn_stat_noauth() 1614 fsec->fsec_group = va.va_guuid; in vn_stat_noauth() 1616 fsec->fsec_group = kauth_null_guid; in vn_stat_noauth() 1621 fsec->fsec_acl.acl_entrycount = KAUTH_FILESEC_NOACL; in vn_stat_noauth() [all …]
|
| H A D | vfs_attrlist.c | 1990 struct kauth_filesec fsec; in attr_pack_common() local 1994 fsec.fsec_magic = KAUTH_FILESEC_MAGIC; in attr_pack_common() 1995 fsec.fsec_owner = kauth_null_guid; in attr_pack_common() 1996 fsec.fsec_group = kauth_null_guid; in attr_pack_common() 1997 …attrlist_pack_variable2(abp, &fsec, __offsetof(struct kauth_filesec, fsec_acl), vap->va_acl, KAUTH… in attr_pack_common()
|
| H A D | vfs_syscalls.c | 7096 kauth_filesec_t fsec = KAUTH_FILESEC_NONE; in fstatat_internal() local 7160 error = vn_stat(ndp->ni_vp, statptr, (xsecurity != USER_ADDR_NULL ? &fsec : NULL), in fstatat_internal() 7228 if (fsec == KAUTH_FILESEC_NONE) { in fstatat_internal() 7238 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { in fstatat_internal() 7244 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) { in fstatat_internal() 7245 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); in fstatat_internal() 7253 if (fsec != KAUTH_FILESEC_NONE) { in fstatat_internal() 7254 kauth_filesec_free(fsec); in fstatat_internal() 10714 umask1(proc_t p, int newmask, __unused kauth_filesec_t fsec, int32_t *retval) in umask1() argument
|