Lines Matching refs:mp

148 mac_mount_label_init(struct mount *mp)  in mac_mount_label_init()  argument
150 mac_labelzone_alloc_owned(&mp->mnt_mntlabel, MAC_WAITOK, ^(struct label *label) { in mac_mount_label_init()
158 mac_mount_label(struct mount *mp) in mac_mount_label() argument
160 return mac_label_verify(&mp->mnt_mntlabel); in mac_mount_label()
164 mac_mount_label_destroy(struct mount *mp) in mac_mount_label_destroy() argument
166 mac_labelzone_free_owned(&mp->mnt_mntlabel, ^(struct label *label) { in mac_mount_label_destroy()
346 mac_devfs_label_update(struct mount *mp, struct devnode *de, in mac_devfs_label_update() argument
357 MAC_PERFORM(devfs_label_update, mp, de, mac_devfs_label(de), vp, in mac_devfs_label_update()
363 mac_vnode_label_associate(struct mount *mp, struct vnode *vp, vfs_context_t ctx) in mac_vnode_label_associate() argument
380 mac_vnode_label_associate_devfs(mp, dnp, vp); in mac_vnode_label_associate()
384 error = mac_vnode_label_associate_fdesc(mp, fnp, vp, ctx); in mac_vnode_label_associate()
387 error = mac_vnode_label_associate_extattr(mp, vp); in mac_vnode_label_associate()
395 mac_vnode_label_associate_devfs(struct mount *mp, struct devnode *de, in mac_vnode_label_associate_devfs() argument
407 mp, mp ? mac_mount_label(mp) : NULL, in mac_vnode_label_associate_devfs()
414 mac_vnode_label_associate_extattr(struct mount *mp, struct vnode *vp) in mac_vnode_label_associate_extattr() argument
419 MAC_CHECK(vnode_label_associate_extattr, mp, mac_mount_label(mp), vp, in mac_vnode_label_associate_extattr()
427 mac_vnode_label_associate_singlelabel(struct mount *mp, struct vnode *vp) in mac_vnode_label_associate_singlelabel() argument
440 MAC_PERFORM(vnode_label_associate_singlelabel, mp, in mac_vnode_label_associate_singlelabel()
441 mp ? mac_mount_label(mp) : NULL, vp, mac_vnode_label(vp)); in mac_vnode_label_associate_singlelabel()
446 mac_vnode_notify_create(vfs_context_t ctx, struct mount *mp, in mac_vnode_notify_create() argument
463 MAC_CHECK(vnode_notify_create, cred, mp, mac_mount_label(mp), in mac_vnode_notify_create()
719 mac_vnode_label_update_extattr(struct mount *mp, struct vnode *vp, in mac_vnode_label_update_extattr() argument
735 MAC_PERFORM(vnode_label_update_extattr, mp, mac_mount_label(mp), vp, in mac_vnode_label_update_extattr()
2195 mac_mount_label_associate(vfs_context_t ctx, struct mount *mp) in mac_mount_label_associate() argument
2202 if ((mp->mnt_flag & MNT_ROOTFS) && in mac_mount_label_associate()
2203 (strcmp(mp->mnt_vfsstat.f_fstypename, "hfs") == 0)) { in mac_mount_label_associate()
2204 mp->mnt_flag |= MNT_MULTILABEL; in mac_mount_label_associate()
2208 if (strcmp(mp->mnt_vfsstat.f_fstypename, "devfs") == 0) { in mac_mount_label_associate()
2209 mp->mnt_flag |= MNT_MULTILABEL; in mac_mount_label_associate()
2213 if (strcmp(mp->mnt_vfsstat.f_fstypename, "fdesc") == 0) { in mac_mount_label_associate()
2214 mp->mnt_flag |= MNT_MULTILABEL; in mac_mount_label_associate()
2218 if (strcmp(mp->mnt_vfsstat.f_fstypename, "nfs") == 0) { in mac_mount_label_associate()
2219 mp->mnt_flag |= MNT_MULTILABEL; in mac_mount_label_associate()
2223 if (strcmp(mp->mnt_vfsstat.f_fstypename, "afpfs") == 0) { in mac_mount_label_associate()
2224 mp->mnt_flag |= MNT_MULTILABEL; in mac_mount_label_associate()
2227 if (mp->mnt_vtable != NULL) { in mac_mount_label_associate()
2229 if ((mp->mnt_vtable->vfc_vfsflags & VFC_VFSNATIVEXATTR)) { in mac_mount_label_associate()
2230 mp->mnt_flag |= MNT_MULTILABEL; in mac_mount_label_associate()
2234 if ((mp->mnt_vtable->vfc_vfsflags & VFC_VFSNOMACLABEL) && in mac_mount_label_associate()
2235 (mp->mnt_flag & MNT_MULTILABEL)) { in mac_mount_label_associate()
2236 mp->mnt_flag &= ~MNT_MULTILABEL; in mac_mount_label_associate()
2240 VFS_KERNEL_DEBUG_START1(76, mp); in mac_mount_label_associate()
2241 MAC_PERFORM(mount_label_associate, cred, mp, mac_mount_label(mp)); in mac_mount_label_associate()
2242 VFS_KERNEL_DEBUG_END1(76, mp); in mac_mount_label_associate()
2245 mp->mnt_flag & MNT_MULTILABEL ? "multilabel" : "singlelabel", in mac_mount_label_associate()
2246 mp->mnt_vfsstat.f_mntfromname, in mac_mount_label_associate()
2247 mp->mnt_vfsstat.f_mntonname, in mac_mount_label_associate()
2248 mp->mnt_vfsstat.f_fstypename); in mac_mount_label_associate()
2277 mac_mount_check_mount_late(vfs_context_t ctx, struct mount *mp) in mac_mount_check_mount_late() argument
2292 VFS_KERNEL_DEBUG_START1(78, mp); in mac_mount_check_mount_late()
2293 MAC_CHECK(mount_check_mount_late, cred, mp); in mac_mount_check_mount_late()
2294 VFS_KERNEL_DEBUG_END1(78, mp); in mac_mount_check_mount_late()
2300 mac_mount_check_snapshot_create(vfs_context_t ctx, struct mount *mp, in mac_mount_check_snapshot_create() argument
2316 VFS_KERNEL_DEBUG_START1(79, mp); in mac_mount_check_snapshot_create()
2317 MAC_CHECK(mount_check_snapshot_create, cred, mp, name); in mac_mount_check_snapshot_create()
2318 VFS_KERNEL_DEBUG_END1(79, mp); in mac_mount_check_snapshot_create()
2323 mac_mount_check_snapshot_delete(vfs_context_t ctx, struct mount *mp, in mac_mount_check_snapshot_delete() argument
2339 VFS_KERNEL_DEBUG_START1(80, mp); in mac_mount_check_snapshot_delete()
2340 MAC_CHECK(mount_check_snapshot_delete, cred, mp, name); in mac_mount_check_snapshot_delete()
2341 VFS_KERNEL_DEBUG_END1(80, mp); in mac_mount_check_snapshot_delete()
2369 mac_mount_check_snapshot_revert(vfs_context_t ctx, struct mount *mp, in mac_mount_check_snapshot_revert() argument
2385 VFS_KERNEL_DEBUG_START1(81, mp); in mac_mount_check_snapshot_revert()
2386 MAC_CHECK(mount_check_snapshot_revert, cred, mp, name); in mac_mount_check_snapshot_revert()
2387 VFS_KERNEL_DEBUG_END1(81, mp); in mac_mount_check_snapshot_revert()
2392 mac_mount_check_remount(vfs_context_t ctx, struct mount *mp, int flags) in mac_mount_check_remount() argument
2408 VFS_KERNEL_DEBUG_START1(82, mp); in mac_mount_check_remount()
2409 MAC_CHECK(mount_check_remount, cred, mp, mac_mount_label(mp), visflags); in mac_mount_check_remount()
2410 VFS_KERNEL_DEBUG_END1(82, mp); in mac_mount_check_remount()
2416 mac_mount_check_umount(vfs_context_t ctx, struct mount *mp) in mac_mount_check_umount() argument
2431 VFS_KERNEL_DEBUG_START1(83, mp); in mac_mount_check_umount()
2432 MAC_CHECK(mount_check_umount, cred, mp, mac_mount_label(mp)); in mac_mount_check_umount()
2433 VFS_KERNEL_DEBUG_END1(83, mp); in mac_mount_check_umount()
2439 mac_mount_check_getattr(vfs_context_t ctx, struct mount *mp, in mac_mount_check_getattr() argument
2455 VFS_KERNEL_DEBUG_START1(84, mp); in mac_mount_check_getattr()
2456 MAC_CHECK(mount_check_getattr, cred, mp, mac_mount_label(mp), vfa); in mac_mount_check_getattr()
2457 VFS_KERNEL_DEBUG_END1(84, mp); in mac_mount_check_getattr()
2462 mac_mount_check_setattr(vfs_context_t ctx, struct mount *mp, in mac_mount_check_setattr() argument
2478 VFS_KERNEL_DEBUG_START1(85, mp); in mac_mount_check_setattr()
2479 MAC_CHECK(mount_check_setattr, cred, mp, mac_mount_label(mp), vfa); in mac_mount_check_setattr()
2480 VFS_KERNEL_DEBUG_END1(85, mp); in mac_mount_check_setattr()
2531 mac_mount_check_fsctl(vfs_context_t ctx, struct mount *mp, u_long cmd) in mac_mount_check_fsctl() argument
2546 VFS_KERNEL_DEBUG_START1(88, mp); in mac_mount_check_fsctl()
2547 MAC_CHECK(mount_check_fsctl, cred, mp, mac_mount_label(mp), cmd); in mac_mount_check_fsctl()
2548 VFS_KERNEL_DEBUG_END1(88, mp); in mac_mount_check_fsctl()
2644 mac_vnode_label_associate_fdesc(struct mount *mp, struct fdescnode *fnp, in mac_vnode_label_associate_fdesc() argument
2664 mp, mac_mount_label(mp), NULL, NULL, vp, mac_vnode_label(vp)); in mac_vnode_label_associate_fdesc()
2731 mp, mac_mount_label(mp), fp->fp_glob, NULL, in mac_vnode_label_associate_fdesc()
2777 mac_mount_check_quotactl(vfs_context_t ctx, struct mount *mp, int cmd, int id) in mac_mount_check_quotactl() argument
2792 VFS_KERNEL_DEBUG_START1(95, mp); in mac_mount_check_quotactl()
2793 MAC_CHECK(mount_check_quotactl, cred, mp, cmd, id); in mac_mount_check_quotactl()
2794 VFS_KERNEL_DEBUG_END1(95, mp); in mac_mount_check_quotactl()
2815 VFS_KERNEL_DEBUG_START1(96, mp); in mac_vnode_check_getattrlistbulk()
2817 VFS_KERNEL_DEBUG_END1(96, mp); in mac_vnode_check_getattrlistbulk()