Skip to contentSkip to conversation

restorecond: Install DBUS service file with 644 permissions

PATCH In review Petr Lautrbach 2 participants 3 messages Jan 22, 2019 – Jan 25, 2019 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 restorecond: Install DBUS service file with 644 permissions

The original 600 permissions make the service file unreadable for dbus daemon.

---
 restorecond/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
restorecond/Makefile +1 -1
index 8a0ada1f..6155ca4a 100644
@@ -50,7 +50,7 @@ install: all
 	-mkdir -p $(DESTDIR)$(AUTOSTARTDIR)
 	install -m 644 restorecond.desktop $(DESTDIR)$(AUTOSTARTDIR)/restorecond.desktop
 	-mkdir -p $(DESTDIR)$(DBUSSERVICEDIR)
-	install -m 600 org.selinux.Restorecond.service  $(DESTDIR)$(DBUSSERVICEDIR)/org.selinux.Restorecond.service
+	install -m 644 org.selinux.Restorecond.service  $(DESTDIR)$(DBUSSERVICEDIR)/org.selinux.Restorecond.service
 	-mkdir -p $(DESTDIR)$(SYSTEMDDIR)/system
 	install -m 644 restorecond.service $(DESTDIR)$(SYSTEMDDIR)/system/
 relabel: install
Signature · 1 line
2.20.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Petr Lautrbach

The original 600 permissions make the service file unreadable for dbus daemon.

Quoted 18 lines
---
  restorecond/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
restorecond/Makefile +1 -1
index 8a0ada1f..6155ca4a 100644
@@ -50,7 +50,7 @@ install: all
  	-mkdir -p $(DESTDIR)$(AUTOSTARTDIR)
  	install -m 644 restorecond.desktop $(DESTDIR)$(AUTOSTARTDIR)/restorecond.desktop
  	-mkdir -p $(DESTDIR)$(DBUSSERVICEDIR)
-	install -m 600 org.selinux.Restorecond.service  $(DESTDIR)$(DBUSSERVICEDIR)/org.selinux.Restorecond.service
+	install -m 644 org.selinux.Restorecond.service  $(DESTDIR)$(DBUSSERVICEDIR)/org.selinux.Restorecond.service
  	-mkdir -p $(DESTDIR)$(SYSTEMDDIR)/system
  	install -m 644 restorecond.service $(DESTDIR)$(SYSTEMDDIR)/system/
  relabel: install
#2 lore raw
Quoted 8 lines · Stephen Smalley
Quoted 5 lines · Petr Lautrbach

The original 600 permissions make the service file unreadable for dbus daemon.

Merged.

Quoted 18 lines
Quoted 18 lines
---
  restorecond/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
restorecond/Makefile +1 -1
index 8a0ada1f..6155ca4a 100644
@@ -50,7 +50,7 @@ install: all
  	-mkdir -p $(DESTDIR)$(AUTOSTARTDIR)
  	install -m 644 restorecond.desktop $(DESTDIR)$(AUTOSTARTDIR)/restorecond.desktop
  	-mkdir -p $(DESTDIR)$(DBUSSERVICEDIR)
-	install -m 600 org.selinux.Restorecond.service  $(DESTDIR)$(DBUSSERVICEDIR)/org.selinux.Restorecond.service
+	install -m 644 org.selinux.Restorecond.service  $(DESTDIR)$(DBUSSERVICEDIR)/org.selinux.Restorecond.service
  	-mkdir -p $(DESTDIR)$(SYSTEMDDIR)/system
  	install -m 644 restorecond.service $(DESTDIR)$(SYSTEMDDIR)/system/
  relabel: install