Add two profiles directory to have smaller dir.
This commit is contained in:
parent
6c0ae4ddc1
commit
d95a876424
521 changed files with 0 additions and 0 deletions
55
apparmor.d/profiles-m-r/ntfs-3g
Normal file
55
apparmor.d/profiles-m-r/ntfs-3g
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2018-2021 Mikhail Morfikov
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}bin/{low,}ntfs{,-3g}
|
||||
@{exec_path} += /{usr/,}{s,}bin/mount.{low,}ntfs{,-3g}
|
||||
profile ntfs-3g @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/disks-write>
|
||||
# When UserMapping is placed under /.NTFS-3G/UserMapping on the NTFS volume
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
# Needed in order to mount ntfs disks
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
capability sys_admin,
|
||||
capability dac_read_search,
|
||||
capability dac_override,
|
||||
capability mknod,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{PROC}/@{pids}/task/@{tid}/status r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
@{PROC}/@{pids}/mountinfo r,
|
||||
@{PROC}/swaps r,
|
||||
|
||||
/dev/fuse rw,
|
||||
|
||||
# Mount points
|
||||
@{MOUNTS}/*/ r,
|
||||
@{MOUNTS}/*/*/ r,
|
||||
|
||||
|
||||
# Allow to mount ntfs disks only under the /media/ and /mnt/ dirs
|
||||
mount fstype=fuseblk /dev/sd[a-z][0-9]* -> @{MOUNTS}/*/,
|
||||
mount fstype=fuseblk /dev/sd[a-z][0-9]* -> @{MOUNTS}/*/*/,
|
||||
mount fstype=fuseblk /dev/sd[a-z][0-9]* -> /mnt/,
|
||||
mount fstype=fuseblk /dev/sd[a-z][0-9]* -> /mnt/*/,
|
||||
|
||||
# Allow to mount encrypted partition
|
||||
mount fstype=fuseblk /dev/dm-[0-9]* -> @{MOUNTS}/*/,
|
||||
mount fstype=fuseblk /dev/dm-[0-9]* -> @{MOUNTS}/*/*/,
|
||||
mount fstype=fuseblk /dev/dm-[0-9]* -> /mnt/,
|
||||
mount fstype=fuseblk /dev/dm-[0-9]* -> /mnt/*/,
|
||||
|
||||
# kmod is used to load the fuse kernel module
|
||||
/{usr/,}bin/kmod rPx,
|
||||
|
||||
include if exists <local/ntfs-3g>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue