feat(opensuse): add pidof.
This commit is contained in:
parent
5bc4860c39
commit
faf7663cde
1 changed files with 27 additions and 0 deletions
27
apparmor.d/profiles-m-r/pidof
Normal file
27
apparmor.d/profiles-m-r/pidof
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
# 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/pidof
|
||||||
|
profile pidof @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability sys_ptrace,
|
||||||
|
|
||||||
|
ptrace (read),
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{PROC}/ r,
|
||||||
|
@{PROC}/@{pids}/cmdline r,
|
||||||
|
@{PROC}/@{pids}/stat r,
|
||||||
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
|
||||||
|
owner /dev/tty[0-9]* rw,
|
||||||
|
|
||||||
|
include if exists <local/pidof>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue