From a87234244bb2ed46d216eb09028651c839b78194 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Mon, 25 Feb 2013 11:13:19 +0100 Subject: [PATCH] qrexec_policy: Improve user message readability --- qrexec/qrexec_policy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qrexec/qrexec_policy b/qrexec/qrexec_policy index 69b9cafb..c72aaee2 100755 --- a/qrexec/qrexec_policy +++ b/qrexec/qrexec_policy @@ -121,9 +121,8 @@ def add_always_allow(domain, target, exec_index, options): f.close() def policy_editor(domain, target, exec_index): - text = "Policy editor not yet implemented. Please add a line in the form \"" - text+= domain + " " + target + " action_to_take\"" - text+= " to /etc/qubes_rpc/policy/" + exec_index +" file in dom0, then close this info." + text = "No policy definition found for " + exec_index + " action. " + text+= "Please create a policy file in Dom0 in " + "/etc/qubes_rpc/policy/" + exec_index subprocess.call(["/usr/bin/zenity", "--info", "--text", text]) def main():