Also label polkit-agent-helper-1 when installed directly in /usr/libexec
PATCH 1/1 Also label polkit-agent-helper-1 when installed directly in /usr/libexec
From: Laurent Bigonville <[email protected]>
Debian now installs that executable directly in /usr/libexec for the version 0.105
--- policy/modules/services/policykit.fc | 1 + 1 file changed, 1 insertion(+)
policy/modules/services/policykit.fc +1 -0
@@ -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)
Signature · 1 line
2.28.0.rc1
Thanks,
See https://salsa.debian.org/utopia-team/polkit/-/commit/f6f99d85b2eb91bd03ca56d30837d7291711a0f8 for the change in the debian package.
Quoted 15 lines · Laurent Bigonville
From: Laurent Bigonville <[email protected]>
Debian now installs that executable directly in
/usr/libexecfor the version 0.105Signed-off-by Laurent Bigonville <[email protected]>--- policy/modules/services/policykit.fc | 1 + 1 file changed, 1 insertion(+)policy/modules/services/policykit.fc +0
-0
policy/modules/services/policykit.fc line 14
Quoted 4 lines
policy/modules/services/policykit.fc +1
-0@@ -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.
Quoted 4 lines
policy/modules/services/policykit.fc +0
-0/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)
Signature · 2 lines
bauen1 https://dn42.bauen1.xyz/
Le 22/07/20 à 11:15, bauen1 a écrit :
Quoted 23 lines
Thanks,
See https://salsa.debian.org/utopia-team/polkit/-/commit/f6f99d85b2eb91bd03ca56d30837d7291711a0f8 for the change in the debian package.
Quoted 18 lines · Laurent Bigonville
From: Laurent Bigonville <[email protected]>
Debian now installs that executable directly in
/usr/libexecfor the version 0.105Signed-off-by Laurent Bigonville <[email protected]>--- policy/modules/services/policykit.fc | 1 + 1 file changed, 1 insertion(+)policy/modules/services/policykit.fc +0
-0@@ -11,6 +11,7 @@ # Systemd unit file /usr/lib/systemd/system/[^/]*polkit.* -- gen_context(system_u:object_r:policykit_unit_t,s0)
Quoted 2 lines
policy/modules/services/policykit.fc line 14
Quoted 1 line
policy/modules/services/policykit.fc +1
-0+/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.
Quoted 5 lines
Quoted 5 lines
policy/modules/services/policykit.fc +0
-0/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)