feat(profile): add a few small profile needed by fsp.
This commit is contained in:
parent
1aa0142a6a
commit
d5a65ba831
4 changed files with 77 additions and 0 deletions
18
apparmor.d/profiles-a-f/e2scrub
Normal file
18
apparmor.d/profiles-a-f/e2scrub
Normal 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
|
||||
19
apparmor.d/profiles-m-r/open-iscsi-net-interface-handler
Normal file
19
apparmor.d/profiles-m-r/open-iscsi-net-interface-handler
Normal 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
|
||||
19
apparmor.d/profiles-s-z/u-d-c-print-pci-ids
Normal file
19
apparmor.d/profiles-s-z/u-d-c-print-pci-ids
Normal 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
|
||||
21
apparmor.d/profiles-s-z/udev-bridge-network-interface
Normal file
21
apparmor.d/profiles-s-z/udev-bridge-network-interface
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue