feat(profile): rewrite the profile for hw-probe.

This commit is contained in:
Alexandre Pujol 2025-06-21 20:36:52 +02:00
parent 4d201ea417
commit 43278aeda2
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 41 additions and 39 deletions

View file

@ -0,0 +1,24 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/lsscsi
profile lsscsi @{exec_path} {
include <abstractions/base>
include <abstractions/disks-read>
@{exec_path} mr,
/ r,
/dev/ r,
/dev/** r,
include if exists <local/lsscsi>
}
# vim:syntax=apparmor