Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Even 'semodule -B' fails (which is what I believe was happening in the original report above):
# semodule -B
Invalid policycap (extended_socket_class) at
/etc/selinux/targeted/tmp/modules/100/base/cil:10
Failed to verify cil database
Failed to verify cil database
semodule: Failed!
Sorry for the noise, I forgot I had a COPR repo installed which was causing the problems. The stock RHEL-7.x builds seem to work correctly.
Vit, it looks like your COPR is busted :/
* https://copr.devel.redhat.com/coprs/vmojzis/SELinux
Description of problem: I created a SELinux policy module using audit2allow and was not able to load it into the system. Version-Release number of selected component (if applicable): kernel-3.10.0-887.el7.2.secrhel.x86_64 selinux-policy-3.13.1-195.el7_5.6.noarch policycoreutils-2.5-23.el7_5.x86_64 policycoreutils-python-2.5-23.el7_5.x86_64 Steps to Reproduce: # cat audit.log type=AVC msg=audit(1527109953.314:53): avc: denied { map } for pid=497 comm="login" path="/usr/bin/login" dev="vda3" ino=1838391 scontext=system_u:system_r:getty_t:s0-s0:c0.c1023 tcontext=system_u:object_r:login_exec_t:s0 tclass=file permissive=1 type=AVC msg=audit(1527109953.354:54): avc: denied { map } for pid=898 comm="unix_chkpwd" path="/usr/sbin/unix_chkpwd" dev="vda3" ino=1837746 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:chkpwd_exec_t:s0 tclass=file permissive=1 type=AVC msg=audit(1527109964.106:69): avc: denied { map } for pid=921 comm="unix_chkpwd" path="/usr/sbin/unix_chkpwd" dev="vda3" ino=1837746 scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:chkpwd_exec_t:s0 tclass=file permissive=1 # # cat audit.log | audit2allow -M bz1581858 ******************** IMPORTANT *********************** To make this policy package active, execute: semodule -i bz1581858.pp # # cat bz1581858.te module bz1581858 1.0; require { type getty_t; type local_login_t; type login_exec_t; type sshd_t; type chkpwd_exec_t; class file map; } #============= getty_t ============== allow getty_t login_exec_t:file map; #============= local_login_t ============== allow local_login_t chkpwd_exec_t:file map; #============= sshd_t ============== allow sshd_t chkpwd_exec_t:file map; # # semodule -i bz1581858.pp Invalid policycap (extended_socket_class) at /etc/selinux/targeted/tmp/modules/100/base/cil:10 Failed to verify cil database Failed to verify cil database semodule: Failed!