Re: [PATCH v4] selinux: policydb - fix byte order and alignment issues

2018-10-19 Thread Stephen Smalley
On 10/18/2018 03:47 AM, Ondrej Mosnacek wrote: Do the LE conversions before doing the Infiniband-related range checks. The incorrect checks are otherwise causing a failure to load any policy with an ibendportcon rule on BE systems. This can be reproduced by running (on e.g. ppc64): cat >my_modul

Re: [PATCH v4] selinux: policydb - fix byte order and alignment issues

2018-10-19 Thread William Roberts
On Fri, Oct 19, 2018 at 7:28 AM Stephen Smalley wrote: > > On 10/18/2018 03:47 AM, Ondrej Mosnacek wrote: > > Do the LE conversions before doing the Infiniband-related range checks. > > The incorrect checks are otherwise causing a failure to load any policy > > with an ibendportcon rule on BE syst