4

I would like to view the [textual] contents of an selinux module, say for instance, /etc/selinux/targeted/modules/active/modules/udev.pp.

I tried sedismod, but I get the following error on Fedora 21:

% sudo sedismod /etc/selinux/targeted/modules/active/modules/udev.pp
Reading policy...
libsepol.policydb_read: policydb magic number 0x39685a42 does not match expected magic number 0xf97cff8c or 0xf97cff8d
sedismod:  error(s) encountered while loading policy

I'd like to understand that error - searching for an explanation has not born fruit yet.

p.s. I see How do I view the contents of a SELinux policy package, but it is somewhat stale.

Juan
  • 173
  • 1
  • 6

1 Answers1

1

I think I can answer the question: sedismod needs the bunzipped version of the file, apperently. I ran into the same problem, but after using bunzip2 on the file, sedis

Elmar
  • 21