feat(profiles): add onefetch and gping.

This commit is contained in:
Alexandre Pujol 2023-03-10 10:26:00 +00:00
parent c4e607ebfe
commit e0fc80aaa9
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 45 additions and 0 deletions

View 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>
}

View 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>
}