• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/security/

Lines Matching refs:ctx

300 mac_vnode_label_associate(struct mount *mp, struct vnode *vp, vfs_context_t ctx)
317 error = mac_vnode_label_associate_fdesc(mp, fnp, vp, ctx);
363 mac_vnode_notify_create(vfs_context_t ctx, struct mount *mp,
370 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
373 cred = vfs_context_ucred(ctx);
381 mac_vnode_notify_rename(vfs_context_t ctx, struct vnode *vp,
387 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
390 cred = vfs_context_ucred(ctx);
396 mac_vnode_notify_open(vfs_context_t ctx, struct vnode *vp, int acc_flags)
401 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
404 cred = vfs_context_ucred(ctx);
409 mac_vnode_notify_link(vfs_context_t ctx, struct vnode *vp,
415 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
418 cred = vfs_context_ucred(ctx);
448 mac_vnode_label_store(vfs_context_t ctx, struct vnode *vp,
455 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
458 cred = vfs_context_ucred(ctx);
465 mac_cred_label_update_execve(vfs_context_t ctx, kauth_cred_t new, struct vnode *vp, off_t offset,
480 cred = vfs_context_ucred(ctx);
504 error = mac_error_select(hook(cred, new, vfs_context_proc(ctx), vp, offset, scriptvp,
521 error = mac_error_select(hook(cred, new, vfs_context_proc(ctx), vp, offset, scriptvp,
532 mac_cred_check_label_update_execve(vfs_context_t ctx, struct vnode *vp, off_t offset,
542 cred = vfs_context_ucred(ctx);
590 mac_vnode_check_access(vfs_context_t ctx, struct vnode *vp,
598 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
601 cred = vfs_context_ucred(ctx);
609 mac_vnode_check_chdir(vfs_context_t ctx, struct vnode *dvp)
615 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
618 cred = vfs_context_ucred(ctx);
624 mac_vnode_check_chroot(vfs_context_t ctx, struct vnode *dvp,
631 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
634 cred = vfs_context_ucred(ctx);
640 mac_vnode_check_create(vfs_context_t ctx, struct vnode *dvp,
647 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
650 cred = vfs_context_ucred(ctx);
656 mac_vnode_check_unlink(vfs_context_t ctx, struct vnode *dvp, struct vnode *vp,
663 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
666 cred = vfs_context_ucred(ctx);
673 mac_vnode_check_deleteacl(vfs_context_t ctx, struct vnode *vp,
680 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
683 cred = vfs_context_ucred(ctx);
690 mac_vnode_check_deleteextattr(vfs_context_t ctx, struct vnode *vp,
697 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
700 cred = vfs_context_ucred(ctx);
705 mac_vnode_check_exchangedata(vfs_context_t ctx,
712 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
715 cred = vfs_context_ucred(ctx);
724 mac_vnode_check_getacl(vfs_context_t ctx, struct vnode *vp, acl_type_t type)
730 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
733 cred = vfs_context_ucred(ctx);
740 mac_vnode_check_getattrlist(vfs_context_t ctx, struct vnode *vp,
747 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
750 cred = vfs_context_ucred(ctx);
758 mac_vnode_check_exec(vfs_context_t ctx, struct vnode *vp,
767 cred = vfs_context_ucred(ctx);
823 mac_vnode_check_fsgetpath(vfs_context_t ctx, struct vnode *vp)
829 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
832 cred = vfs_context_ucred(ctx);
855 mac_vnode_check_getacl(vfs_context_t ctx, struct vnode *vp, acl_type_t type)
861 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
864 cred = vfs_context_ucred(ctx);
871 mac_vnode_check_getextattr(vfs_context_t ctx, struct vnode *vp,
878 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
881 cred = vfs_context_ucred(ctx);
888 mac_vnode_check_ioctl(vfs_context_t ctx, struct vnode *vp, u_int cmd)
894 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
897 cred = vfs_context_ucred(ctx);
903 mac_vnode_check_kqfilter(vfs_context_t ctx, kauth_cred_t file_cred,
910 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
913 cred = vfs_context_ucred(ctx);
921 mac_vnode_check_link(vfs_context_t ctx, struct vnode *dvp,
928 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
931 cred = vfs_context_ucred(ctx);
938 mac_vnode_check_listextattr(vfs_context_t ctx, struct vnode *vp)
944 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
947 cred = vfs_context_ucred(ctx);
953 mac_vnode_check_lookup(vfs_context_t ctx, struct vnode *dvp,
960 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
963 cred = vfs_context_ucred(ctx);
969 mac_vnode_check_open(vfs_context_t ctx, struct vnode *vp, int acc_mode)
975 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
978 cred = vfs_context_ucred(ctx);
984 mac_vnode_check_read(vfs_context_t ctx, struct ucred *file_cred,
991 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
994 cred = vfs_context_ucred(ctx);
1002 mac_vnode_check_readdir(vfs_context_t ctx, struct vnode *dvp)
1008 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1011 cred = vfs_context_ucred(ctx);
1017 mac_vnode_check_readlink(vfs_context_t ctx, struct vnode *vp)
1023 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1026 cred = vfs_context_ucred(ctx);
1032 mac_vnode_check_label_update(vfs_context_t ctx, struct vnode *vp,
1039 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1042 cred = vfs_context_ucred(ctx);
1049 mac_vnode_check_rename(vfs_context_t ctx, struct vnode *dvp,
1057 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1060 cred = vfs_context_ucred(ctx);
1079 mac_vnode_check_revoke(vfs_context_t ctx, struct vnode *vp)
1085 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1088 cred = vfs_context_ucred(ctx);
1094 mac_vnode_check_searchfs(vfs_context_t ctx, struct vnode *vp, struct attrlist *alist)
1100 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1103 cred = vfs_context_ucred(ctx);
1109 mac_vnode_check_select(vfs_context_t ctx, struct vnode *vp, int which)
1115 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1118 cred = vfs_context_ucred(ctx);
1125 mac_vnode_check_setacl(vfs_context_t ctx, struct vnode *vp, acl_type_t type,
1132 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1135 cred = vfs_context_ucred(ctx);
1142 mac_vnode_check_setattrlist(vfs_context_t ctx, struct vnode *vp,
1149 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1152 cred = vfs_context_ucred(ctx);
1158 mac_vnode_check_setextattr(vfs_context_t ctx, struct vnode *vp,
1165 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1168 cred = vfs_context_ucred(ctx);
1175 mac_vnode_check_setflags(vfs_context_t ctx, struct vnode *vp, u_long flags)
1181 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1184 cred = vfs_context_ucred(ctx);
1190 mac_vnode_check_setmode(vfs_context_t ctx, struct vnode *vp, mode_t mode)
1196 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1199 cred = vfs_context_ucred(ctx);
1205 mac_vnode_check_setowner(vfs_context_t ctx, struct vnode *vp, uid_t uid,
1212 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1215 cred = vfs_context_ucred(ctx);
1221 mac_vnode_check_setutimes(vfs_context_t ctx, struct vnode *vp,
1228 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1231 cred = vfs_context_ucred(ctx);
1238 mac_vnode_check_stat(vfs_context_t ctx, struct ucred *file_cred,
1245 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1248 cred = vfs_context_ucred(ctx);
1255 mac_vnode_check_truncate(vfs_context_t ctx, struct ucred *file_cred,
1262 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1265 cred = vfs_context_ucred(ctx);
1273 mac_vnode_check_write(vfs_context_t ctx, struct ucred *file_cred,
1280 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1283 cred = vfs_context_ucred(ctx);
1290 mac_vnode_check_uipc_bind(vfs_context_t ctx, struct vnode *dvp,
1297 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1300 cred = vfs_context_ucred(ctx);
1306 mac_vnode_check_uipc_connect(vfs_context_t ctx, struct vnode *vp)
1312 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1315 cred = vfs_context_ucred(ctx);
1321 mac_vnode_label_update(vfs_context_t ctx, struct vnode *vp, struct label *newlabel)
1323 kauth_cred_t cred = vfs_context_ucred(ctx);
1358 mac_mount_label_associate(vfs_context_t ctx, struct mount *mp)
1360 kauth_cred_t cred = vfs_context_ucred(ctx);
1407 mac_mount_check_mount(vfs_context_t ctx, struct vnode *vp,
1414 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1417 cred = vfs_context_ucred(ctx);
1424 mac_mount_check_remount(vfs_context_t ctx, struct mount *mp)
1430 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1433 cred = vfs_context_ucred(ctx);
1440 mac_mount_check_umount(vfs_context_t ctx, struct mount *mp)
1446 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1449 cred = vfs_context_ucred(ctx);
1456 mac_mount_check_getattr(vfs_context_t ctx, struct mount *mp,
1463 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1466 cred = vfs_context_ucred(ctx);
1472 mac_mount_check_setattr(vfs_context_t ctx, struct mount *mp,
1479 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1482 cred = vfs_context_ucred(ctx);
1488 mac_mount_check_stat(vfs_context_t ctx, struct mount *mount)
1494 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1497 cred = vfs_context_ucred(ctx);
1504 mac_mount_check_label_update(vfs_context_t ctx, struct mount *mount)
1510 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1513 cred = vfs_context_ucred(ctx);
1520 mac_mount_check_fsctl(vfs_context_t ctx, struct mount *mp, u_int cmd)
1526 !mac_context_check_enforce(ctx, MAC_VNODE_ENFORCE))
1529 cred = vfs_context_ucred(ctx);
1606 struct vnode *vp, vfs_context_t ctx)
1623 MAC_PERFORM(vnode_label_associate_file, vfs_context_ucred(ctx),
1628 p = vfs_context_proc(ctx);
1651 vfs_context_ucred(ctx), (socket_t)so, so->so_label,
1657 pshm_label_associate(fp, vp, ctx);
1660 psem_label_associate(fp, vp, ctx);
1670 MAC_PERFORM(vnode_label_associate_pipe, vfs_context_ucred(ctx),
1677 MAC_PERFORM(vnode_label_associate_file, vfs_context_ucred(ctx),