All of lore.kernel.org
 help / color / mirror / Atom feed
* ebitmap: map size does not match my size on s390x
@ 2015-01-14 11:03 Johannes Segitz
  2015-01-14 14:26 ` Stephen Smalley
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Segitz @ 2015-01-14 11:03 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]

Hello,

running sepolgen-ifgen fails on s390x. It fails because calling 
# sepolgen-ifgen-attr-helper /sys/fs/selinux/policy /tmp/tmpsSrJj3
gives:
libsepol.policydb_index_others: security:  7 users, 47 roles, 3156 types, 201 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security:  83 classes, 59401 rules, 9799 cond rules
security: ebitmap: map size 1400 does not match my size 64 (high bit was 1545)
error(s) encountered while parsing configuration

I use version 2.3 of the userspace tools on SLE 12 with kernel 3.12.28. The
policy is based on Fedoras policy with some extension for SUSE
(f85b52d1c6805e9b0a8bd2a4a4332e66e4b52c00 for the base policy and 
627644e1bb9c6f851c2466ab6e0eec7607f472cd for contrib). This combination
works fine on other architectures, only s390x shows this behavior. I did
not work on s390x before so I don't know if this ever worked.

The message comes from libsepol/src/ebitmap.c:361. Could this be a
endianness issue?

Best regards
Johannes
--
Johannes Segitz                                        SUSE Security Team
GPG Key E7C81FA0       EE16 6BCE AD56 E034 BFB3  3ADD 7BF7 29D5 E7C8 1FA0
SUSE LINUX GmbH        Maxfeldstraße 5            90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: ebitmap: map size does not match my size on s390x
  2015-01-14 11:03 ebitmap: map size does not match my size on s390x Johannes Segitz
@ 2015-01-14 14:26 ` Stephen Smalley
  2015-01-15 13:02   ` Johannes Segitz
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Smalley @ 2015-01-14 14:26 UTC (permalink / raw)
  To: Johannes Segitz; +Cc: selinux

There have been a couple of endianness fixes for
/sys/fs/selinux/policy, e.g. see:
9085a6422 and b138004

On Wed, Jan 14, 2015 at 6:03 AM, Johannes Segitz <jsegitz@suse.com> wrote:
> Hello,
>
> running sepolgen-ifgen fails on s390x. It fails because calling
> # sepolgen-ifgen-attr-helper /sys/fs/selinux/policy /tmp/tmpsSrJj3
> gives:
> libsepol.policydb_index_others: security:  7 users, 47 roles, 3156 types, 201 bools
> libsepol.policydb_index_others: security: 1 sens, 1024 cats
> libsepol.policydb_index_others: security:  83 classes, 59401 rules, 9799 cond rules
> security: ebitmap: map size 1400 does not match my size 64 (high bit was 1545)
> error(s) encountered while parsing configuration
>
> I use version 2.3 of the userspace tools on SLE 12 with kernel 3.12.28. The
> policy is based on Fedoras policy with some extension for SUSE
> (f85b52d1c6805e9b0a8bd2a4a4332e66e4b52c00 for the base policy and
> 627644e1bb9c6f851c2466ab6e0eec7607f472cd for contrib). This combination
> works fine on other architectures, only s390x shows this behavior. I did
> not work on s390x before so I don't know if this ever worked.
>
> The message comes from libsepol/src/ebitmap.c:361. Could this be a
> endianness issue?
>
> Best regards
> Johannes
> --
> Johannes Segitz                                        SUSE Security Team
> GPG Key E7C81FA0       EE16 6BCE AD56 E034 BFB3  3ADD 7BF7 29D5 E7C8 1FA0
> SUSE LINUX GmbH        Maxfeldstraße 5            90409 Nürnberg, Germany
> GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg)
>
> _______________________________________________
> Selinux mailing list
> Selinux@tycho.nsa.gov
> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
> To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.

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

* Re: ebitmap: map size does not match my size on s390x
  2015-01-14 14:26 ` Stephen Smalley
@ 2015-01-15 13:02   ` Johannes Segitz
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Segitz @ 2015-01-15 13:02 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: selinux

[-- Attachment #1: Type: text/plain, Size: 578 bytes --]

On Wed, Jan 14, 2015 at 09:26:17AM -0500, Stephen Smalley wrote:
> There have been a couple of endianness fixes for
> /sys/fs/selinux/policy, e.g. see:
> 9085a6422 and b138004

Those commits solved the problem. Thank you.

Johannes
--
Johannes Segitz                                        SUSE Security Team
GPG Key E7C81FA0       EE16 6BCE AD56 E034 BFB3  3ADD 7BF7 29D5 E7C8 1FA0
SUSE LINUX GmbH        Maxfeldstraße 5            90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2015-01-15 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14 11:03 ebitmap: map size does not match my size on s390x Johannes Segitz
2015-01-14 14:26 ` Stephen Smalley
2015-01-15 13:02   ` Johannes Segitz

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.