mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profiles): add onefetch and gping.
This commit is contained in:
parent
c4e607ebfe
commit
e0fc80aaa9
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…
Reference in New Issue
Block a user