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.