mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
118 lines
3.7 KiB
Plaintext
118 lines
3.7 KiB
Plaintext
# vim:syntax=apparmor
|
|
# ------------------------------------------------------------------
|
|
#
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
# License published by the Free Software Foundation.
|
|
#
|
|
# ------------------------------------------------------------------
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
# Video/audio extensions:
|
|
# a52, aac, ac3, mka, flac, mp1, mp2, mp3, mpc, oga, oma, wav, wv, wm, wma, 3g2, 3gp, 3gp2, 3gpp,
|
|
# asf, avi, divx, m1v, m2v, m4v, mkv, mov, mp4, mpa, mpe, mpg, mpeg, mpeg1, mpeg2, mpeg4, ogg, ogm,
|
|
# ogx, ogv, rm, rmvb, webm, wmv, wtv, mp2t
|
|
@{mkvtoolnix_ext} = [aA]{52,[aA][cC],[cC]3}
|
|
@{mkvtoolnix_ext} += [mM][kK][aA]
|
|
@{mkvtoolnix_ext} += [fF][lL][aA][cC]
|
|
@{mkvtoolnix_ext} += [mM][pP][123cC]
|
|
@{mkvtoolnix_ext} += [oO][gGmM][aA]
|
|
@{mkvtoolnix_ext} += [wW]{,[aA]}[vV]
|
|
@{mkvtoolnix_ext} += [wW][mM]{,[aA]}
|
|
@{mkvtoolnix_ext} += 3[gG]{[2pP],[pP][2pP]}
|
|
@{mkvtoolnix_ext} += [aA][sS][fF]
|
|
@{mkvtoolnix_ext} += [aA][vV][iI]
|
|
@{mkvtoolnix_ext} += [dD][iI][vV][xX]
|
|
@{mkvtoolnix_ext} += [mM][124][vV]
|
|
@{mkvtoolnix_ext} += [mM][kKoO][vV]
|
|
@{mkvtoolnix_ext} += [mM][pP][4aAeEgG]
|
|
@{mkvtoolnix_ext} += [mM][pP][eE][gG]{,[124]}
|
|
@{mkvtoolnix_ext} += [oO][gG][gGmMxXvV]
|
|
@{mkvtoolnix_ext} += [rR][mM]{,[vV][bB]}
|
|
@{mkvtoolnix_ext} += [wW][eE][bB][mM]
|
|
@{mkvtoolnix_ext} += [wW][mMtT][vV]
|
|
@{mkvtoolnix_ext} += [mM][pP]2[tT]
|
|
|
|
# Subtitle extensions:
|
|
# srt, txt, sub
|
|
@{mkvtoolnix_ext} += [sS][rR][tT]
|
|
@{mkvtoolnix_ext} += [tT][xX][tT]
|
|
@{mkvtoolnix_ext} += [sS][uU][bB]
|
|
|
|
@{exec_path} = /{usr/,}bin/mkvtoolnix-gui
|
|
profile mkvtoolnix-gui @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/X>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/fonts>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/gtk>
|
|
include <abstractions/dri-enumerate>
|
|
include <abstractions/mesa>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/qt5-settings-write>
|
|
include <abstractions/qt5-compose-cache-write>
|
|
include <abstractions/openssl>
|
|
include <abstractions/ssl_certs>
|
|
include <abstractions/user-download-strict>
|
|
include <abstractions/deny-root-dir-access>
|
|
|
|
signal (send) set=(term, kill) peer=mkvmerge,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/mkvmerge rPx,
|
|
|
|
# Which files mkvtoolnix should be able to open
|
|
/ r,
|
|
/home/ r,
|
|
owner @{HOME}/ r,
|
|
owner @{HOME}/**/ r,
|
|
/media/ r,
|
|
owner /media/**/ r,
|
|
owner /{home,media}/**.@{mkvtoolnix_ext} rw,
|
|
|
|
owner @{HOME}/.config/bunkus.org/ rw,
|
|
owner @{HOME}/.config/bunkus.org/mkvtoolnix-gui/ rw,
|
|
owner @{HOME}/.config/bunkus.org/mkvtoolnix-gui/** rwkl -> @{HOME}/.config/bunkus.org/mkvtoolnix-gui/#[0-9]*[0-9],
|
|
|
|
owner @{HOME}/.cache/ rw,
|
|
owner @{HOME}/.cache/bunkus.org/ rw,
|
|
owner @{HOME}/.cache/bunkus.org/mkvtoolnix-gui/ rw,
|
|
owner @{HOME}/.cache/bunkus.org/mkvtoolnix-gui/**/ rw,
|
|
owner @{HOME}/.cache/bunkus.org/mkvtoolnix-gui/**/[0-9a-f]* rw,
|
|
|
|
owner @{HOME}/.config/qt5ct/{,**} r,
|
|
/usr/share/qt5ct/** r,
|
|
|
|
owner /tmp/#[0-9]*[0-9] rw,
|
|
owner /tmp/MKVToolNix-GUI-MuxConfig-* rwl -> /tmp/#[0-9]*[0-9],
|
|
owner /tmp/MKVToolNix-process-*.json rwl -> /tmp/#[0-9]*[0-9],
|
|
owner /tmp/MKVToolNix-GUI-MuxJob-*.json rwl -> /tmp/#[0-9]*[0-9],
|
|
owner /tmp/MKVToolNix-GUI-Instance-Communicator-* rw,
|
|
|
|
deny owner @{PROC}/@{pid}/cmdline r,
|
|
deny @{PROC}/sys/kernel/random/boot_id r,
|
|
@{PROC}/@{pid}/mountinfo r,
|
|
@{PROC}/@{pid}/mounts r,
|
|
|
|
/etc/fstab r,
|
|
|
|
/dev/shm/#[0-9]*[0-9] rw,
|
|
|
|
/usr/share/hwdata/pnp.ids r,
|
|
|
|
/var/lib/dbus/machine-id r,
|
|
/etc/machine-id r,
|
|
|
|
# file_inherit
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
include if exists <local/mkvtoolnix-gui>
|
|
}
|