diff options
author | Karel Zak | 2017-06-20 13:12:43 +0200 |
---|---|---|
committer | Karel Zak | 2017-06-20 13:12:43 +0200 |
commit | 8c1979948c6a616d5e53ef693b4b123ec879441d (patch) | |
tree | cb81d21b5e94ee2defc6b5463c947bc2284c3fdf /sys-utils/Makemodule.am | |
parent | libmount: ignore "bind" from fstab on command line "remount" (diff) | |
download | kernel-qcow2-util-linux-8c1979948c6a616d5e53ef693b4b123ec879441d.tar.gz kernel-qcow2-util-linux-8c1979948c6a616d5e53ef693b4b123ec879441d.tar.xz kernel-qcow2-util-linux-8c1979948c6a616d5e53ef693b4b123ec879441d.zip |
build-sys: chown before chmod for SUIDs
Make sure SUIDs are really owned by root.
Reported-by: L A Walsh <lkml@tlinx.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/Makemodule.am')
-rw-r--r-- | sys-utils/Makemodule.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index c5651946b..6fbc517d2 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -291,7 +291,9 @@ endif if MAKEINSTALL_DO_SETUID install-exec-hook-mount: + chown root:root $(DESTDIR)$(bindir)/mount chmod 4755 $(DESTDIR)$(bindir)/mount + chown root:root $(DESTDIR)$(bindir)/umount chmod 4755 $(DESTDIR)$(bindir)/umount INSTALL_EXEC_HOOKS += install-exec-hook-mount |