PolicyKit: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 25 15:38:55 UTC 2022


 meson_post_install.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4ff1abe4a4c1f8c8378b9eaddb0346ac6448abd8
Author: Jan Rybar <jrybar at redhat.com>
Date:   Tue Jan 25 15:38:53 2022 +0000

    SUID bit removed after chown

diff --git a/meson_post_install.py b/meson_post_install.py
index 0ab7469..e742310 100644
--- a/meson_post_install.py
+++ b/meson_post_install.py
@@ -30,8 +30,8 @@ except KeyError:
 dst = os.path.join(bindir, 'pkexec')
 
 if os.geteuid() == 0:
-    os.chmod(dst, 0o4755)
     os.chown(dst, 0, -1)
+    os.chmod(dst, 0o4755)
 else:
     print(
         'Owner and mode of {} need to be setuid root (04755) after '
@@ -63,8 +63,8 @@ for dst in dst_dirs:
 dst = os.path.join(pkglibdir, 'polkit-agent-helper-1')
 
 if os.geteuid() == 0:
-    os.chmod(dst, 0o4755)
     os.chown(dst, 0, -1)
+    os.chmod(dst, 0o4755)
 else:
     print(
         'Owner and mode of {} need to be setuid root (04755) after '


More information about the hal-commit mailing list