mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-12-10 18:02:14 -05:00
protect against grep pipefail
This commit is contained in:
parent
abb2207313
commit
5195977be4
1 changed files with 1 additions and 1 deletions
|
|
@ -626,7 +626,7 @@ commit_policy() {
|
|||
else
|
||||
if ! capsh --print \
|
||||
| grep --fixed-strings -- "Bounding set" \
|
||||
| grep --quiet -- "${policy_capability_item}"; then
|
||||
| grep -- "${policy_capability_item}" >/dev/null; then
|
||||
log error \
|
||||
"Capability from config does not exist: '${policy_capability_item}'" \
|
||||
>&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue