feat(profile): add some new profile.

This commit is contained in:
Alexandre Pujol 2024-05-07 17:25:43 +01:00
parent 239d5efe63
commit fe1e3c3be8
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
10 changed files with 264 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/systemd/systemd-network-generator
profile systemd-network-generator @{exec_path} {
include <abstractions/base>
include <abstractions/common/systemd>
capability net_admin,
@{exec_path} mr,
owner @{run}/systemd/network/{,**} rw,
include if exists <local/systemd-network-generator>
}