SELinux Archive on lore.kernel.org
 help / Atom feed
* [PATCH] restorecond: Install DBUS service file with 644 permissions
@ 2019-01-22 11:47 Petr Lautrbach
  2019-01-23 14:19 ` Stephen Smalley
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Lautrbach @ 2019-01-22 11:47 UTC (permalink / raw)
  To: selinux; +Cc: Petr Lautrbach

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

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1626462

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
---
 restorecond/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/restorecond/Makefile b/restorecond/Makefile
index 8a0ada1f..6155ca4a 100644
--- a/restorecond/Makefile
+++ b/restorecond/Makefile
@@ -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.20.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] restorecond: Install DBUS service file with 644 permissions
  2019-01-22 11:47 [PATCH] restorecond: Install DBUS service file with 644 permissions Petr Lautrbach
@ 2019-01-23 14:19 ` Stephen Smalley
  2019-01-25 14:05   ` Petr Lautrbach
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Smalley @ 2019-01-23 14:19 UTC (permalink / raw)
  To: Petr Lautrbach, selinux

On 1/22/19 6:47 AM, Petr Lautrbach wrote:
> The original 600 permissions make the service file unreadable for dbus daemon.
> 
> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1626462
> 
> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>

Acked-by: Stephen Smalley <sds@tycho.nsa.gov>

> ---
>   restorecond/Makefile | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/restorecond/Makefile b/restorecond/Makefile
> index 8a0ada1f..6155ca4a 100644
> --- a/restorecond/Makefile
> +++ b/restorecond/Makefile
> @@ -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
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] restorecond: Install DBUS service file with 644 permissions
  2019-01-23 14:19 ` Stephen Smalley
@ 2019-01-25 14:05   ` Petr Lautrbach
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Lautrbach @ 2019-01-25 14:05 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: selinux

Stephen Smalley <sds@tycho.nsa.gov> writes:

> On 1/22/19 6:47 AM, Petr Lautrbach wrote:
>> The original 600 permissions make the service file unreadable for dbus daemon.
>>
>> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1626462
>>
>> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
>
> Acked-by: Stephen Smalley <sds@tycho.nsa.gov>

Merged.

>> ---
>>   restorecond/Makefile | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/restorecond/Makefile b/restorecond/Makefile
>> index 8a0ada1f..6155ca4a 100644
>> --- a/restorecond/Makefile
>> +++ b/restorecond/Makefile
>> @@ -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
>>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-22 11:47 [PATCH] restorecond: Install DBUS service file with 644 permissions Petr Lautrbach
2019-01-23 14:19 ` Stephen Smalley
2019-01-25 14:05   ` Petr Lautrbach

SELinux Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/selinux/0 selinux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux selinux/ https://lore.kernel.org/selinux \
		selinux@vger.kernel.org selinux@archiver.kernel.org
	public-inbox-index selinux


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.selinux


AGPL code for this site: git clone https://public-inbox.org/ public-inbox