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.

Bug 1158032

Summary: SELinux denials alert when launching subscription-manager-gui
Product: Red Hat Enterprise Linux 7 Reporter: Rehana <redakkan>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: dgoodwin, lvrabec, mgrepl, mmalik, plautrba, pvrabec
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-05 09:18:27 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:
Bug Depends On:    
Bug Blocks: 1005618    
Attachments:
Description Flags
avc denial alert none

Description Rehana 2014-10-28 11:20:50 UTC
Description of problem:


Version-Release number of selected component (if applicable):
subscription-manager version
subscription management server: 0.9.26-1
subscription management rules: 5.11
subscription-manager: 1.13.5-1.el7
python-rhsm: 1.13.5-1.el7


How reproducible:
3/3

Steps to Reproduce:
1.Installed RHEL-7.1-20141024.1 client machine
2.Launched subscription-manager-gui
3.

Actual results:
Observed avc denial messages , details
SELinux is preventing /usr/lib64/dbus-1/dbus-daemon-launch-helper from execute access on the file .
     
    *****  Plugin catchall (100. confidence) suggests   **************************
     
    If you believe that dbus-daemon-launch-helper should be allowed execute access on the  file by default.
    Then you should report this as a bug.
    You can generate a local policy module to allow this access.
    Do
    allow this access for now by executing:
    # grep dbus-daemon-lau /var/log/audit/audit.log | audit2allow -M mypol
    # semodule -i mypol.pp
     
    Additional Information:
    Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
    Target Context                system_u:object_r:rhsmcertd_exec_t:s0
    Target Objects                 [ file ]
    Source                        dbus-daemon-lau
    Source Path                   /usr/lib64/dbus-1/dbus-daemon-launch-helper
    Port                          <Unknown>
    Host                          dhcp71-69.rhts.eng.bos.redhat.com
    Source RPM Packages           dbus-1.6.12-8.el7.x86_64
    Target RPM Packages          
    Policy RPM                    selinux-policy-3.13.1-4.el7.noarch
    Selinux Enabled               True
    Policy Type                   targeted
    Enforcing Mode                Enforcing
    Host Name                     dhcp71-69.rhts.eng.bos.redhat.com
    Platform                      Linux dhcp71-69.rhts.eng.bos.redhat.com
                                  3.10.0-193.el7.x86_64 #1 SMP Thu Oct 23 12:15:22
                                  EDT 2014 x86_64 x86_64
    Alert Count                   12
    First Seen                    2014-10-28 06:29:42 EDT
    Last Seen                     2014-10-28 06:58:50 EDT
    Local ID                      292ba88e-74bc-4f24-b177-ca56380ad222
     
    Raw Audit Messages
    type=AVC msg=audit(1414493930.387:390): avc:  denied  { execute } for  pid=3660 comm="dbus-daemon-lau" name="rhsmd" dev="dm-0" ino=35653921 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:rhsmcertd_exec_t:s0 tclass=file
     
     
    type=SYSCALL msg=audit(1414493930.387:390): arch=x86_64 syscall=execve success=no exit=EACCES a0=7f5e6cb2d420 a1=7f5e6cb2c750 a2=7f5e6cb2b010 a3=0 items=0 ppid=3659 pid=3660 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=dbus-daemon-lau exe=/usr/lib64/dbus-1/dbus-daemon-launch-helper subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 key=(null)
     
    Hash: dbus-daemon-lau,system_dbusd_t,rhsmcertd_exec_t,file,execute


Expected results:
there shouldnt be any denials

Additional info:

Comment 1 Rehana 2014-10-28 11:22:47 UTC
Created attachment 951365 [details]
avc denial alert

Comment 2 Devan Goodwin 2014-11-04 18:15:01 UTC
Reassigning to selinux-policy, I don't believe we maintain any policy of our own.

Comment 3 Milos Malik 2014-11-05 08:04:41 UTC
The AVC mentioned in comment#0 is already addressed in https://bugzilla.redhat.com/show_bug.cgi?id=1061797#c3.

Comment 4 Miroslav Grepl 2014-11-05 09:18:27 UTC

*** This bug has been marked as a duplicate of bug 1061797 ***