From: Hans de Goede Subject: [PATCH 1/4] backlight: Explain better why we support both pkexec and suid root for the helper Date: Mon, 17 Feb 2014 13:16:51 +0100 Message-ID: <1392639414-3909-2-git-send-email-hdegoede@redhat.com> References: <1392639414-3909-1-git-send-email-hdegoede@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTP id 46D9EFA3CF for ; Mon, 17 Feb 2014 04:16:59 -0800 (PST) Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1HCGwEP010568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Feb 2014 07:16:58 -0500 In-Reply-To: <1392639414-3909-1-git-send-email-hdegoede@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org Cc: peter.hutterer@redhat.com List-Id: intel-gfx@lists.freedesktop.org Update the comment about trying suid-root first with some explanations of why pkexec may be preferable in some cases. Signed-off-by: Hans de Goede --- src/backlight.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backlight.c b/src/backlight.c index 70c6559..0e63ba5 100644 --- a/src/backlight.c +++ b/src/backlight.c @@ -270,8 +270,10 @@ static int __backlight_helper_init(struct backlight *b, char *iface) int use_pkexec = 0; int fds[2]; - /* If system policy is to disallow setuid helpers, - * we fallback to invoking PolicyKit. However, as pkexec + /* + * Some systems may prefer using PolicyKit's pkexec over + * making the helper suid root, since the suid option will allow + * anyone to control the backlight. However, as pkexec * is quite troublesome and not universally available, we * still try the old fashioned and simple method first. * Either way, we have to trust that it is our backlight-helper -- 1.8.5.3