48 lines
1.1 KiB
Text
48 lines
1.1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2025 valoq <valoq@mailbox.org>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/texstudio
|
|
profile texstudio @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/desktop>
|
|
include <abstractions/fonts>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/user-write-strict>
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/pdflatex ix,
|
|
@{bin}/pdftex ix,
|
|
@{bin}/kpsewhich ix,
|
|
@{bin}/gsettings ix,
|
|
@{bin}/which{,.debianutils} ix,
|
|
|
|
/usr/share/texmf-dist/{,**} r,
|
|
/usr/share/doc/texstudio/{,**} r,
|
|
/usr/share/hunspell/{,**} r,
|
|
/usr/share/texstudio/{,**} r,
|
|
/usr/share/poppler/{,**} r,
|
|
|
|
/etc/texmf/{,**} r,
|
|
/etc/machine-id r,
|
|
|
|
/var/lib/texmf/{,**} r,
|
|
|
|
owner @{user_config_dirs}/texstudio/{,**} rwlk,
|
|
owner /tmp/qtsingleapp-TeXstu-** rw,
|
|
owner /tmp/qtsingleapp-TeXstu-**-lockfile rwk,
|
|
|
|
## silencer
|
|
deny owner /usr/share/hunspell/en_US-large.ign w,
|
|
|
|
include if exists <local/texstudio>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|