diff --git a/qemu/tests/qemu_guest_agent.py b/qemu/tests/qemu_guest_agent.py index 8bef5b030a..bb44bf6a2b 100644 --- a/qemu/tests/qemu_guest_agent.py +++ b/qemu/tests/qemu_guest_agent.py @@ -1873,6 +1873,11 @@ def _change_bl(self, session): """ if self.params.get("os_type") == "linux": + error_context.context( + "Set selinux policy to 'Permissive' mode in guest.", LOG_JOB.info + ) + if session.cmd_output("getenforce").strip() != "Permissive": + session.cmd("setenforce 0") cmd_blacklist_backup = self.params["black_file_backup"] session.cmd(cmd_blacklist_backup) full_qga_ver = self._get_qga_version(session, self.vm, main_ver=False)