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

2018-10-22 Thread Ondrej Mosnacek
On Sat, Oct 20, 2018 at 3:05 AM William Roberts wrote: > 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

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

2018-10-22 Thread Ondrej Mosnacek
On Fri, Oct 19, 2018 at 4:26 PM 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

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

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

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

2018-10-18 Thread William Roberts
On Thu, Oct 18, 2018 at 5:57 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.