apparmor.d/profiles/keepassxc-proxy

54 lines
1.5 KiB
Text
Raw Normal View History

# vim:syntax=apparmor
# ------------------------------------------------------------------
#
2021-01-10 16:35:07 +01:00
# Copyright (C) 2018-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.
#
# ------------------------------------------------------------------
2020-12-10 22:33:39 +01:00
abi <abi/3.0>,
2020-12-10 22:33:39 +01:00
include <tunables/global>
@{exec_path} = /{usr/,}bin/keepassxc-proxy
profile keepassxc-proxy @{exec_path} {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/deny-root-dir-access>
signal (receive) set=(term, kill),
2020-12-18 11:12:55 +01:00
network inet dgram,
network inet6 dgram,
2020-12-10 22:33:39 +01:00
network inet stream,
network inet6 stream,
2021-03-21 17:04:10 +01:00
network netlink raw,
2020-12-10 22:33:39 +01:00
@{exec_path} mr,
# file_inherit
2020-10-25 10:23:34 +01:00
deny owner @{run}/user/[0-9]*/.[a-zA-Z]*/{,s} rw,
deny owner @{run}/user/[0-9]*/kpxc_server rw,
deny /dev/shm/org.chromium.* rw,
deny owner /dev/shm/org.mozilla.ipc.[0-9]*.[0-9]* rw,
#
deny owner @{HOME}/.mozilla/** rw,
deny owner @{HOME}/.cache/mozilla/** rw,
deny owner /media/*/.mozilla/** rw,
deny owner /tmp/firefox*/.parentlock rw,
deny owner /tmp/tmp-*.xpi rw,
deny owner /tmp/tmpaddon r,
deny owner @{HOME}/.config/google-chrome/** rw,
deny owner @{HOME}/.config/chromium/** rw,
#
2021-01-10 16:35:07 +01:00
/usr/share/icons/*/index.theme r,
#
owner @{HOME}/.xsession-errors w,
2021-01-10 16:35:07 +01:00
/dev/dri/renderD128 rw,
2020-12-10 22:33:39 +01:00
include if exists <local/keepassxc-proxy>
}