1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- From d9498d10d0e8241749835dbc9fa229465d4fdfd7 Mon Sep 17 00:00:00 2001
- From: Kai Kang <kai.kang@windriver.com>
- Date: Wed, 6 Feb 2019 13:58:04 +0000
- Subject: [PATCH] Fix permissions
- Update permissions of executable files that remove setuid bit and make
- everyone could read.
- Upstream-Status: Inappropriate [embedded specific]
- Signed-off-by: Kai Kang <kai.kang@windriver.com>
- ---
- Makefile | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
- diff --git a/Makefile b/Makefile
- index 3bf5929..1221ee4 100644
- --- a/Makefile
- +++ b/Makefile
- @@ -72,7 +72,7 @@ systemdinstall: genericinstall
- chmod 0644 $(DESTDIR)$(SYSDPATH)/atopacct.service
- cp atop.cronsystemd $(DESTDIR)$(CRNPATH)/atop
- cp atop-pm.sh $(DESTDIR)$(PMPATHD)
- - chmod 0711 $(DESTDIR)$(PMPATHD)/atop-pm.sh
- + chmod 0755 $(DESTDIR)$(PMPATHD)/atop-pm.sh
- #
- # only when making on target system:
- #
- @@ -97,11 +97,11 @@ sysvinstall: genericinstall
- #
- if [ -d $(DESTDIR)$(PMPATH1) ]; \
- then cp 45atoppm $(DESTDIR)$(PMPATH1); \
- - chmod 0711 $(DESTDIR)$(PMPATH1)/45atoppm; \
- + chmod 0755 $(DESTDIR)$(PMPATH1)/45atoppm; \
- fi
- if [ -d $(DESTDIR)$(PMPATH2) ]; \
- then cp 45atoppm $(DESTDIR)$(PMPATH2); \
- - chmod 0711 $(DESTDIR)$(PMPATH2)/45atoppm; \
- + chmod 0755 $(DESTDIR)$(PMPATH2)/45atoppm; \
- fi
- #
- #
- @@ -145,7 +145,7 @@ genericinstall: atop atopacctd atopconvert
- #
- cp atop $(DESTDIR)$(BINPATH)/atop
- chown root $(DESTDIR)$(BINPATH)/atop
- - chmod 04711 $(DESTDIR)$(BINPATH)/atop
- + chmod 0755 $(DESTDIR)$(BINPATH)/atop
- ln -sf atop $(DESTDIR)$(BINPATH)/atopsar
- cp atopacctd $(DESTDIR)$(SBINPATH)/atopacctd
- chown root $(DESTDIR)$(SBINPATH)/atopacctd
- @@ -159,7 +159,7 @@ genericinstall: atop atopacctd atopconvert
- chown root $(DESTDIR)$(BINPATH)/atopconvert
- chmod 0711 $(DESTDIR)$(BINPATH)/atopconvert
- cp atop.daily $(DESTDIR)$(SCRPATH)
- - chmod 0711 $(DESTDIR)$(SCRPATH)/atop.daily
- + chmod 0755 $(DESTDIR)$(SCRPATH)/atop.daily
- cp man/atop.1 $(DESTDIR)$(MAN1PATH)
- cp man/atopsar.1 $(DESTDIR)$(MAN1PATH)
- cp man/atopconvert.1 $(DESTDIR)$(MAN1PATH)
|