From 02b706b673ec28ef4c5e4f3d557162eb5e755dcc Mon Sep 17 00:00:00 2001 From: Tomas Hozza Date: Thu, 2 Sep 2021 18:12:02 +0200 Subject: [PATCH] image-info: use subprocess_check_output() in read_selinux_ctx_mismatch() Use the `subprocess_check_output()` wrapper function in the `read_selinux_ctx_mismatch()` parser function, instead of directly calling `subprocess.check_output()`. Signed-off-by: Tomas Hozza --- tools/image-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/image-info b/tools/image-info index 4037fc419..bf80a45f6 100755 --- a/tools/image-info +++ b/tools/image-info @@ -1009,7 +1009,7 @@ def read_selinux_ctx_mismatch(tree, is_ostree): # context for /etc path CMD.extend(["-e", f"{tree}/etc"]) - output = subprocess.check_output(CMD).decode() + output = subprocess_check_output(CMD) # output are lines such as: # Would relabel /tmp/tmpwrozmb47/dev from system_u:object_r:root_t:s0 to system_u:object_r:device_t:s0\n