Tim Schumacher 6ae0042f4d 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>
2025-03-07 14:38:34 -05:00
..
\n
2024-11-21 09:50:18 -08:00
2017-05-18 10:31:30 -06:00

Please see Documentation/admin-guide/LSM/SELinux.rst for information on
installing a dummy SELinux policy.