2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2019-2020 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-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} = /{usr/,}bin/lsusb
|
|
|
|
profile lsusb @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
|
|
|
|
network netlink raw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
/dev/bus/usb/ r,
|
|
|
|
/dev/bus/usb/** rw,
|
|
|
|
|
|
|
|
@{sys}/class/ r,
|
|
|
|
@{sys}/bus/ r,
|
|
|
|
@{sys}/bus/usb/devices/ r,
|
|
|
|
|
|
|
|
@{sys}/devices/pci[0-9]*/**/usb[0-9]/{,**} r,
|
|
|
|
|
2020-10-25 10:23:34 +01:00
|
|
|
@{run}/udev/data/c189:[0-9]* r, # for /dev/bus/usb/**
|
|
|
|
@{run}/udev/data/+usb:* r, #
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/etc/udev/hwdb.bin r,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/lsusb>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|