blob: ee7419993970a02157de254734d30dd1f73653d0 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001Update permissions of executable files that remove setuid bit and make everyone
2could read.
3
4Upstream-Status: Inappropriate [embedded specific]
5
6Signed-off-by: Kai Kang <kai.kang@windriver.com>
7---
8diff --git a/Makefile b/Makefile
9index a65b9b6..21d9828 100644
10--- a/Makefile
11+++ b/Makefile
12@@ -66,7 +66,7 @@ systemdinstall: genericinstall
13 chmod 0644 $(DESTDIR)$(SYSDPATH)/atopacct.service
14 cp atop.cronsystemd $(DESTDIR)$(CRNPATH)/atop
15 cp atop-pm.sh $(DESTDIR)$(PMPATHD)
16- chmod 0711 $(DESTDIR)$(PMPATHD)/atop-pm.sh
17+ chmod 0755 $(DESTDIR)$(PMPATHD)/atop-pm.sh
18 #
19 # only when making on target system:
20 #
21@@ -91,11 +91,11 @@ sysvinstall: genericinstall
22 #
23 if [ -d $(DESTDIR)$(PMPATH1) ]; \
24 then cp 45atoppm $(DESTDIR)$(PMPATH1); \
25- chmod 0711 $(DESTDIR)$(PMPATH1)/45atoppm; \
26+ chmod 0755 $(DESTDIR)$(PMPATH1)/45atoppm; \
27 fi
28 if [ -d $(DESTDIR)$(PMPATH2) ]; \
29 then cp 45atoppm $(DESTDIR)$(PMPATH2); \
30- chmod 0711 $(DESTDIR)$(PMPATH2)/45atoppm; \
31+ chmod 0755 $(DESTDIR)$(PMPATH2)/45atoppm; \
32 fi
33 #
34 #
35@@ -139,7 +139,7 @@ genericinstall: atop atopacctd
36 #
37 cp atop $(DESTDIR)$(BINPATH)/atop
38 chown root $(DESTDIR)$(BINPATH)/atop
39- chmod 04711 $(DESTDIR)$(BINPATH)/atop
40+ chmod 0755 $(DESTDIR)$(BINPATH)/atop
41 ln -sf atop $(DESTDIR)$(BINPATH)/atopsar
42 cp atopacctd $(DESTDIR)$(SBINPATH)/atopacctd
43 chown root $(DESTDIR)$(SBINPATH)/atopacctd
44@@ -147,7 +147,7 @@ genericinstall: atop atopacctd
45 cp atop $(DESTDIR)$(BINPATH)/atop-$(VERS)
46 ln -sf atop-$(VERS) $(DESTDIR)$(BINPATH)/atopsar-$(VERS)
47 cp atop.daily $(DESTDIR)$(SCRPATH)
48- chmod 0711 $(DESTDIR)$(SCRPATH)/atop.daily
49+ chmod 0755 $(DESTDIR)$(SCRPATH)/atop.daily
50 cp man/atop.1 $(DESTDIR)$(MAN1PATH)
51 cp man/atopsar.1 $(DESTDIR)$(MAN1PATH)
52 cp man/atoprc.5 $(DESTDIR)$(MAN5PATH)