apparmor.d/apparmor.d/lsusb

40 lines
897 B
Text
Raw Normal View History

# 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-12-10 22:33:39 +01:00
include <tunables/global>
@{exec_path} = /{usr/,}bin/lsusb
profile lsusb @{exec_path} {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
network netlink raw,
@{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, #
/etc/udev/hwdb.bin r,
2020-12-10 22:33:39 +01:00
include if exists <local/lsusb>
}