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

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.