diff options
author | Jan Rybar <jrybar@redhat.com> | 2022-01-25 15:38:53 +0000 |
---|---|---|
committer | Jan Rybar <jrybar@redhat.com> | 2022-01-25 15:38:53 +0000 |
commit | 4ff1abe4a4c1f8c8378b9eaddb0346ac6448abd8 (patch) | |
tree | ace32df568b2b805f5021b3891ab047c54ef5f46 /meson_post_install.py | |
parent | c7fc4e1b61f0fd82fc697c19c604af7e9fb291a2 (diff) | |
download | polkit-4ff1abe4a4c1f8c8378b9eaddb0346ac6448abd8.tar.gz |
SUID bit removed after chown
Diffstat (limited to 'meson_post_install.py')
-rw-r--r-- | meson_post_install.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 ' |