From d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 15 Jun 2021 14:57:03 +0100 Subject: gentoo resync : 15.06.2021 --- ...ome-remote-desktop-44.0.2403.44-always-sudo.patch | 20 -------------------- ...ome-remote-desktop-91.0.4472.10-always-sudo.patch | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 net-misc/chrome-remote-desktop/files/chrome-remote-desktop-44.0.2403.44-always-sudo.patch create mode 100644 net-misc/chrome-remote-desktop/files/chrome-remote-desktop-91.0.4472.10-always-sudo.patch (limited to 'net-misc/chrome-remote-desktop/files') diff --git a/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-44.0.2403.44-always-sudo.patch b/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-44.0.2403.44-always-sudo.patch deleted file mode 100644 index d303e5e753f9..000000000000 --- a/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-44.0.2403.44-always-sudo.patch +++ /dev/null @@ -1,20 +0,0 @@ -https://bugs.gentoo.org/541708 - -just use `sudo` for everything - ---- a/opt/google/chrome-remote-desktop/chrome-remote-desktop -+++ b/opt/google/chrome-remote-desktop/chrome-remote-desktop -@@ -1092,12 +1092,7 @@ - logging.info("Group '%s' not found." % CHROME_REMOTING_GROUP_NAME) - - command = [SCRIPT_PATH, '--add-user-as-root', user] -- if os.getenv("DISPLAY"): -- # TODO(rickyz): Add a Polkit policy that includes a more friendly message -- # about what this command does. -- command = ["/usr/bin/pkexec"] + command -- else: -- command = ["/usr/bin/sudo", "-k", "--"] + command -+ command = ["/usr/bin/sudo", "-k", "--"] + command - - # Run with an empty environment out of paranoia, though if an attacker - # controls the environment this script is run under, we're already screwed diff --git a/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-91.0.4472.10-always-sudo.patch b/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-91.0.4472.10-always-sudo.patch new file mode 100644 index 000000000000..9e9ebd80c73b --- /dev/null +++ b/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-91.0.4472.10-always-sudo.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/541708 + +just use `sudo` for everything + +--- a/opt/google/chrome-remote-desktop/chrome-remote-desktop ++++ b/opt/google/chrome-remote-desktop/chrome-remote-desktop +@@ -1092,12 +1092,7 @@ + + + def run_command_as_root(command): +- if os.getenv("DISPLAY"): +- # TODO(rickyz): Add a Polkit policy that includes a more friendly +- # message about what this command does. +- command = ["/usr/bin/pkexec"] + command +- else: +- command = ["/usr/bin/sudo", "-k", "--"] + command ++ command = ["/usr/bin/sudo", "-k", "--"] + command + + return subprocess.call(command) + -- cgit v1.2.3