mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-28 16:06:54 +01:00
38 lines
950 B
Text
38 lines
950 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2024 Roman Beslik <me@beroal.in.ua>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/xsane-gimp
|
|
profile xsane-gimp @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/devices-usb>
|
|
include <abstractions/gnome-strict>
|
|
|
|
signal (receive) set=(term, kill) peer=gimp,
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
@{system_share_dirs}/gimp/{,**} r,
|
|
@{system_share_dirs}/sane/xsane/{,**} r,
|
|
@{system_share_dirs}/snmp/mibs/{,**} r, # network
|
|
/etc/sane.d/{,**} r,
|
|
owner @{HOME}/.sane/{,**} rw,
|
|
owner @{tmp}/xsane-*-@{rand6} rw,
|
|
@{sys}/devices/@{pci}/{model,type,vendor} r,
|
|
@{PROC}/sys/dev/parport/{,parport@{int}/{base-addr,irq}} r,
|
|
|
|
# SCSI
|
|
@{sys}/bus/scsi/devices/ r,
|
|
@{PROC}/scsi/scsi r,
|
|
|
|
include if exists <local/xsane-gimp>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|