diff options
author | 2025-03-07 10:56:43 +0100 | |
---|---|---|
committer | 2025-03-07 14:38:34 -0500 | |
commit | 6ae0042f4d3f331e841495eb0a3d51598e593ec2 (patch) | |
tree | cdd38335c3cbf968f98b64087c5beb166c2a6d81 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selinux: add permission checks for loading other kinds of kernel files (diff) | |
download | linux-rng-6ae0042f4d3f331e841495eb0a3d51598e593ec2.tar.xz linux-rng-6ae0042f4d3f331e841495eb0a3d51598e593ec2.zip |
selinux: Chain up tool resolving errors in install_policy.sh
Subshell evaluations are not exempt from errexit, so if a command is
not available, `which` will fail and exit the script as a whole.
This causes the helpful error messages to not be printed if they are
tacked on using a `$?` comparison.
Resolve the issue by using chains of logical operators, which are not
subject to the effects of errexit.
Fixes: e37c1877ba5b1 ("scripts/selinux: modernize mdp")
Signed-off-by: Tim Schumacher <tim.schumacher1@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions