feat(profiles): add onefetch and gping.
This commit is contained in:
parent
c4e607ebfe
commit
e0fc80aaa9
2 changed files with 45 additions and 0 deletions
19
apparmor.d/profiles-g-l/gping
Normal file
19
apparmor.d/profiles-g-l/gping
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}bin/gping
|
||||||
|
profile gping @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/consoles>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/ping rPx,
|
||||||
|
|
||||||
|
include if exists <local/gping>
|
||||||
|
}
|
||||||
26
apparmor.d/profiles-m-r/onefetch
Normal file
26
apparmor.d/profiles-m-r/onefetch
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}bin/onefetch
|
||||||
|
profile onefetch @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/openssl>
|
||||||
|
include <abstractions/ssl_certs>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/git rPx,
|
||||||
|
|
||||||
|
owner @{user_config_dirs}/git/{,**} r,
|
||||||
|
owner @{user_projects_dirs}/{,**} r,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pid}/cgroup r,
|
||||||
|
owner @{PROC}/@{pid}/stat r,
|
||||||
|
|
||||||
|
include if exists <local/onefetch>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue