Bug 1608545

Summary: avc failure reported while testing oracleasm
Product: Red Hat Enterprise Linux 7 Reporter: Daniel Yeisley <dyeisley>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.6CC: lvrabec, mgrepl, mmalik, plautrba, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:07:44 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:

Description Daniel Yeisley 2018-07-25 18:56:35 UTC
Description of problem:
AVC errors reported while testing Oracle Grid with oracleasm on two node cluster.

Info: Searching AVC errors produced since 1532538435.36 (Wed Jul 25 13:07:15 2018)
Searching logs...
Running '/usr/bin/env LC_ALL=en_US.UTF-8 /sbin/ausearch -m AVC -m USER_AVC -m SELINUX_ERR -ts 07/25/2018 13:07:15 < /dev/null >/mnt/testarea/tmp.rhts-db-submit-result.s7rXMz 2>&1'
time->Wed Jul 25 13:08:31 2018
type=PROCTITLE msg=audit(1532538511.864:975): proctitle="oracleasm-reload-partitions"
type=SYSCALL msg=audit(1532538511.864:975): arch=c000003e syscall=16 success=yes exit=0 a0=4 a1=125f a2=0 a3=193 items=0 ppid=33679 pid=33684 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="oracleasm-reloa" exe="/usr/lib/oracleasm/oracleasm-reload-partitions" subj=system_u:system_r:oracleasm_t:s0 key=(null)
type=AVC msg=audit(1532538511.864:975): avc:  denied  { sys_admin } for  pid=33684 comm="oracleasm-reloa" capability=21  scontext=system_u:system_r:oracleasm_t:s0 tcontext=system_u:system_r:oracleasm_t:s0 tclass=capability permissive=1
Fail: AVC messages found.
Checking for errors...
Using stronger AVC checks.
	Define empty RHTS_OPTION_STRONGER_AVC parameter if this causes any problems.
Running 'cat /mnt/testarea/tmp.rhts-db-submit-result.s7rXMz | /sbin/ausearch -m AVC -m SELINUX_ERR'
Fail: AVC messages found.
Running 'cat %s | /sbin/ausearch -m USER_AVC >/mnt/testarea/tmp.rhts-db-submit-result.4JNqV7 2>&1'
Info: No AVC messages found.
/bin/grep 'avc: ' /mnt/testarea/dmesg.log | /bin/grep --invert-match TESTOUT.log
No AVC messages found in dmesg
Running '/usr/sbin/sestatus'
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      31
Running 'rpm -q selinux-policy || true'

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:
Didn't have this issue with RHEL-7.5. Didn't expect to see it on RHEL-7.6.

Additional info:

Comment 7 errata-xmlrpc 2018-10-30 10:07:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.