Bug 1427296
| Summary: | selinux: modprobe command fails after copying kernel | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | David Arcari <darcari> | |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> | |
| Status: | CLOSED DUPLICATE | QA Contact: | Milos Malik <mmalik> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 7.4 | CC: | darcari, lvrabec, mgrepl, mmalik, plautrba, prarit, pvrabec, ssekidde | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1437012 (view as bug list) | Environment: | ||
| Last Closed: | 2017-03-30 10:58:55 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
|
Description
David Arcari
2017-02-27 20:07:28 UTC
Could you collect SELinux denials on your machine and attach them here? # dmesg | grep type=1400 # ausearch -m avc -m user_avc -m selinux_err -m user_selinux_err -i -ts today Thank you. It's very likely that this bug is a duplicate of BZ#1421598. Unfortunately I don't have the setup available at this time. I guess you can go ahead and close this as a duplicate. I will reopen it if I experience an issue going forward. Which kernel version did you use? I don't see the "Class ... not defined in policy" messages. Milos, I can reproduce this on any recent RHEL7 install by doing the following: 1. Install a beaker system with RHEL7 latest. I am using baseurl=http://download.eng.bos.redhat.com/nightly/Pegas-7.4-20170313.n.0/compose/Server/x86_64/os 2. Checkout the upstream git tree git://git.app.eng.bos.redhat.com/linux.git To get the appropriate config, grab the latest RHEL7 upstream build from http://hp-dl360pgen8-07.khw.lab.eng.bos.redhat.com/~jwilson/kernels/el7 and install the kernel-upstream RPM. A config will be in /boot/config-XXX 3. Build the linux git tree. (make oldconfig; make -jX; make modules -jX) 4. Install the linux build (make -jX modules_install; make -jX install) 5. Boot that new kernel 6. During the reboot you will see SELinux: Permission validate_trans in class security not defined in policy. SELinux: Permission module_load in class system not defined in policy. SELinux: Class binder not defined in policy. SELinux: Class cap_userns not defined in policy. SELinux: Class cap2_userns not defined in policy. SELinux: Class sctp_socket not defined in policy. SELinux: Class icmp_socket not defined in policy. SELinux: Class ax25_socket not defined in policy. SELinux: Class ipx_socket not defined in policy. SELinux: Class netrom_socket not defined in policy. SELinux: Class atmpvc_socket not defined in policy. SELinux: Class x25_socket not defined in policy. SELinux: Class rose_socket not defined in policy. SELinux: Class decnet_socket not defined in policy. SELinux: Class atmsvc_socket not defined in policy. SELinux: Class rds_socket not defined in policy. SELinux: Class irda_socket not defined in policy. SELinux: Class pppox_socket not defined in policy. SELinux: Class llc_socket not defined in policy. SELinux: Class can_socket not defined in policy. SELinux: Class tipc_socket not defined in policy. SELinux: Class bluetooth_socket not defined in policy. SELinux: Class iucv_socket not defined in policy. SELinux: Class rxrpc_socket not defined in policy. SELinux: Class isdn_socket not defined in policy. SELinux: Class phonet_socket not defined in policy. SELinux: Class ieee802154_socket not defined in policy. SELinux: Class caif_socket not defined in policy. SELinux: Class alg_socket not defined in policy. SELinux: Class nfc_socket not defined in policy. SELinux: Class vsock_socket not defined in policy. SELinux: Class kcm_socket not defined in policy. SELinux: Class qipcrtr_socket not defined in policy. SELinux: Class smc_socket not defined in policy. SELinux: the above unknown classes and permissions will be allowed audit: type=1403 audit(1489399697.991:3): policy loaded auid=4294967295 ses=4294967295 Successfully loaded SELinux policy in 455.140ms. I will test with the RHEL7 git tree and update this BZ. P. This does not occur with the RHEL7 git tree AFAICT. darcari, can you confirm? Thanks, P. (In reply to Milos Malik from comment #4) > Which kernel version did you use? I don't see the "Class ... not defined in > policy" messages. AFAICT the build that I used is no longer available. I was using the 2.20.17 nightly build. Prarit - I never saw this issue when I have built my own kernel; however, it appears that it was only present during a brief window. *** This bug has been marked as a duplicate of bug 1414130 *** |