From 50b9237f3bc3fba3351af61182d5c96f35eaf041 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Mon, 3 Oct 2016 20:12:32 +0200 Subject: [PATCH 2/2] Do not transtype bus_sid in avc_has_perm call bus_sid is already of type security_id_t --- bus/selinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus/selinux.c b/bus/selinux.c index 271048a1..cc111467 100644 --- a/bus/selinux.c +++ b/bus/selinux.c @@ -419,7 +419,7 @@ bus_selinux_check (BusSELinuxID *sender_sid, if (avc_has_perm (SELINUX_SID_FROM_BUS (sender_sid), override_sid ? SELINUX_SID_FROM_BUS (override_sid) : - SELINUX_SID_FROM_BUS (bus_sid), + bus_sid, target_class, requested, &aeref, auxdata) < 0) { switch (errno) -- 2.11.0