mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-12-14 15:02:51 -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
|
else
|
||||||
if ! capsh --print \
|
if ! capsh --print \
|
||||||
| grep --fixed-strings -- "Bounding set" \
|
| grep --fixed-strings -- "Bounding set" \
|
||||||
| grep --quiet -- "${policy_capability_item}"; then
|
| grep -- "${policy_capability_item}" >/dev/null; then
|
||||||
log error \
|
log error \
|
||||||
"Capability from config does not exist: '${policy_capability_item}'" \
|
"Capability from config does not exist: '${policy_capability_item}'" \
|
||||||
>&2
|
>&2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue