feat(profile): add a few small profile needed by fsp.

This commit is contained in:
Alexandre Pujol 2025-05-29 23:26:18 +02:00
parent 1aa0142a6a
commit d5a65ba831
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# 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} = @{sbin}/e2scrub
profile e2scrub @{exec_path} flags=(complain) {
include <abstractions/base>
@{exec_path} mr,
include if exists <local/e2scrub>
}
# vim:syntax=apparmor

View file

@ -0,0 +1,19 @@
# 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} = @{lib}/open-iscsi/net-interface-handler
profile open-iscsi-net-interface-handler @{exec_path} flags=(complain) {
include <abstractions/base>
@{exec_path} mr,
@{sh_path} r,
include if exists <local/open-iscsi-net-interface-handler>
}
# vim:syntax=apparmor

View file

@ -0,0 +1,19 @@
# 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} = @{sbin}/u-d-c-print-pci-ids
profile u-d-c-print-pci-ids @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
@{sh_path} r,
include if exists <local/u-d-c-print-pci-ids>
}
# vim:syntax=apparmor

View file

@ -0,0 +1,21 @@
# 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} = @{lib}/udev/bridge-network-interface
profile udev-bridge-network-interface @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
@{sh_path} r,
/etc/default/bridge-utils r,
include if exists <local/udev-bridge-network-interface>
}
# vim:syntax=apparmor