All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Also label polkit-agent-helper-1 when installed directly in /usr/libexec
@ 2020-07-22  8:59 Laurent Bigonville
  2020-07-22  9:15 ` bauen1
  0 siblings, 1 reply; 3+ messages in thread
From: Laurent Bigonville @ 2020-07-22  8:59 UTC (permalink / raw)
  To: selinux-refpolicy

From: Laurent Bigonville <bigon@bigon.be>

Debian now installs that executable directly in /usr/libexec for the
version 0.105

Signed-off-by: Laurent Bigonville <bigon@bigon.be>
---
 policy/modules/services/policykit.fc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/policy/modules/services/policykit.fc b/policy/modules/services/policykit.fc
index e2782838..85814b95 100644
--- a/policy/modules/services/policykit.fc
+++ b/policy/modules/services/policykit.fc
@@ -11,6 +11,7 @@
 # Systemd unit file
 /usr/lib/systemd/system/[^/]*polkit.*	--	gen_context(system_u:object_r:policykit_unit_t,s0)
 
+/usr/libexec/polkit-agent-helper-1	--	gen_context(system_u:object_r:policykit_auth_exec_t,s0)
 /usr/libexec/polkit-read-auth-helper	--	gen_context(system_u:object_r:policykit_auth_exec_t,s0)
 /usr/libexec/polkit-grant-helper.*	--	gen_context(system_u:object_r:policykit_grant_exec_t,s0)
 /usr/libexec/polkit-resolve-exe-helper.*	--	gen_context(system_u:object_r:policykit_resolve_exec_t,s0)
-- 
2.28.0.rc1


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

* Re: [PATCH] Also label polkit-agent-helper-1 when installed directly in /usr/libexec
  2020-07-22  8:59 [PATCH] Also label polkit-agent-helper-1 when installed directly in /usr/libexec Laurent Bigonville
@ 2020-07-22  9:15 ` bauen1
  2020-07-22  9:25   ` Laurent Bigonville
  0 siblings, 1 reply; 3+ messages in thread
From: bauen1 @ 2020-07-22  9:15 UTC (permalink / raw)
  To: Laurent Bigonville, selinux-refpolicy

Thanks,

See https://salsa.debian.org/utopia-team/polkit/-/commit/f6f99d85b2eb91bd03ca56d30837d7291711a0f8 for the change in the debian package.

On 7/22/20 10:59 AM, Laurent Bigonville wrote:
> From: Laurent Bigonville <bigon@bigon.be>
> 
> Debian now installs that executable directly in /usr/libexec for the
> version 0.105
> 
> Signed-off-by: Laurent Bigonville <bigon@bigon.be>
> ---
>  policy/modules/services/policykit.fc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/policy/modules/services/policykit.fc b/policy/modules/services/policykit.fc
> index e2782838..85814b95 100644
> --- a/policy/modules/services/policykit.fc
> +++ b/policy/modules/services/policykit.fc
> @@ -11,6 +11,7 @@
>  # Systemd unit file
>  /usr/lib/systemd/system/[^/]*polkit.*	--	gen_context(system_u:object_r:policykit_unit_t,s0)
>  
> +/usr/libexec/polkit-agent-helper-1	--	gen_context(system_u:object_r:policykit_auth_exec_t,s0)

Since it is a debian only change, this should probably be wrapped in an ifdef distro_debian.

>  /usr/libexec/polkit-read-auth-helper	--	gen_context(system_u:object_r:policykit_auth_exec_t,s0)
>  /usr/libexec/polkit-grant-helper.*	--	gen_context(system_u:object_r:policykit_grant_exec_t,s0)
>  /usr/libexec/polkit-resolve-exe-helper.*	--	gen_context(system_u:object_r:policykit_resolve_exec_t,s0)
>
-- 
bauen1
https://dn42.bauen1.xyz/

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

* Re: [PATCH] Also label polkit-agent-helper-1 when installed directly in /usr/libexec
  2020-07-22  9:15 ` bauen1
@ 2020-07-22  9:25   ` Laurent Bigonville
  0 siblings, 0 replies; 3+ messages in thread
From: Laurent Bigonville @ 2020-07-22  9:25 UTC (permalink / raw)
  To: bauen1, selinux-refpolicy

Le 22/07/20 à 11:15, bauen1 a écrit :
> Thanks,
>
> See https://salsa.debian.org/utopia-team/polkit/-/commit/f6f99d85b2eb91bd03ca56d30837d7291711a0f8 for the change in the debian package.
>
> On 7/22/20 10:59 AM, Laurent Bigonville wrote:
>> From: Laurent Bigonville <bigon@bigon.be>
>>
>> Debian now installs that executable directly in /usr/libexec for the
>> version 0.105
>>
>> Signed-off-by: Laurent Bigonville <bigon@bigon.be>
>> ---
>>   policy/modules/services/policykit.fc | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/policy/modules/services/policykit.fc b/policy/modules/services/policykit.fc
>> index e2782838..85814b95 100644
>> --- a/policy/modules/services/policykit.fc
>> +++ b/policy/modules/services/policykit.fc
>> @@ -11,6 +11,7 @@
>>   # Systemd unit file
>>   /usr/lib/systemd/system/[^/]*polkit.*	--	gen_context(system_u:object_r:policykit_unit_t,s0)
>>   
>> +/usr/libexec/polkit-agent-helper-1	--	gen_context(system_u:object_r:policykit_auth_exec_t,s0)
> Since it is a debian only change, this should probably be wrapped in an ifdef distro_debian.

In the past this was done like that, but at some point I've been told to 
not use distro conditionals anymore. I can add it if you really want, 
but in the last year(s) it was not done for the other file contexts that 
were added.

>
>>   /usr/libexec/polkit-read-auth-helper	--	gen_context(system_u:object_r:policykit_auth_exec_t,s0)
>>   /usr/libexec/polkit-grant-helper.*	--	gen_context(system_u:object_r:policykit_grant_exec_t,s0)
>>   /usr/libexec/polkit-resolve-exe-helper.*	--	gen_context(system_u:object_r:policykit_resolve_exec_t,s0)
>>


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

end of thread, other threads:[~2020-07-22  9:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-22  8:59 [PATCH] Also label polkit-agent-helper-1 when installed directly in /usr/libexec Laurent Bigonville
2020-07-22  9:15 ` bauen1
2020-07-22  9:25   ` Laurent Bigonville

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.