feat(profile): add pgrep.
This commit is contained in:
parent
c85ed58fa9
commit
e6939f4968
2 changed files with 41 additions and 0 deletions
19
tests/integration/procps/pgrep.bats
Normal file
19
tests/integration/procps/pgrep.bats
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bats
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
load ../common
|
||||
|
||||
@test "pgrep: Return PIDs of any running processes with a matching command string" {
|
||||
pgrep systemd
|
||||
}
|
||||
|
||||
@test "pgrep: Search for processes including their command-line options" {
|
||||
pgrep --full 'systemd'
|
||||
}
|
||||
|
||||
@test "pgrep: Search for processes run by a specific user" {
|
||||
pgrep --euid root systemd-udevd
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue