selinux: avoid probing memory status if debug logs are not enabled
authorLuca Boccassi <bluca@debian.org>
Fri, 10 Nov 2023 11:53:11 +0000 (11:53 +0000)
committerLuca Boccassi <bluca@debian.org>
Sat, 11 Nov 2023 12:29:52 +0000 (12:29 +0000)
commit2c6a231b47c0e42f64d13efea461e5c061d9e605
treec5de914b7ae5082646dd6c4db7969fd0c10dee5a
parent4f3d8def186bf22013723416701cc8b9bc76fc26
selinux: avoid probing memory status if debug logs are not enabled

Given we are optimizing the selinux paths, avoid doing these operations
unless the result is actually used
src/shared/selinux-util.c