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.
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.
https://rhn.redhat.com/errata/RHBA-2016-0763.html
Description of problem: # sesearch -s virt_qemu_ga_t -t var_run_t -T Found 2 semantic te rules: type_transition virt_qemu_ga_t var_run_t : file virt_qemu_ga_var_run_t; type_transition virt_qemu_ga_t var_run_t : dir virt_qemu_ga_var_run_t; # The qga.state file gets a correct label during its creation, but ... # matchpathcon /var/run/qga.state /var/run/qga.state system_u:object_r:var_run_t:s0 # Version-Release number of selected component (if applicable): qemu-guest-agent-0.12.1.2-2.479.el6.x86_64 selinux-policy-3.7.19-281.el6.noarch selinux-policy-doc-3.7.19-281.el6.noarch selinux-policy-minimum-3.7.19-281.el6.noarch selinux-policy-mls-3.7.19-281.el6.noarch selinux-policy-targeted-3.7.19-281.el6.noarch How reproducible: always Steps to Reproduce: # service qemu-ga start Starting qemu-ga: [ OK ] # service qemu-ga status qemu-ga (pid 5686) is running... # service qemu-ga stop Stopping qemu-ga: [ OK ] # service qemu-ga status qemu-ga is stopped # ls -Z /var/run/qga.state -rw-------. root root unconfined_u:object_r:virt_qemu_ga_var_run_t:s0 /var/run/qga.state # restorecon -v /var/run/qga.state restorecon reset /var/run/qga.state context unconfined_u:object_r:virt_qemu_ga_var_run_t:s0->unconfined_u:object_r:var_run_t:s0 # service qemu-ga start Starting qemu-ga: [ OK ] # service qemu-ga status qemu-ga dead but subsys locked # Actual results: ---- type=PATH msg=audit(11/06/2015 11:44:26.525:898) : item=0 name=/var/run/qga.state inode=5387 dev=fc:03 mode=file,600 ouid=root ogid=root rdev=00:00 obj=unconfined_u:object_r:var_run_t:s0 nametype=NORMAL type=CWD msg=audit(11/06/2015 11:44:26.525:898) : cwd=/ type=SYSCALL msg=audit(11/06/2015 11:44:26.525:898) : arch=x86_64 syscall=stat success=no exit=-13(Permission denied) a0=0x7f63439ef650 a1=0x7ffd26012af0 a2=0x7ffd26012af0 a3=0x22 items=1 ppid=1 pid=6184 auid=root uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=1 comm=qemu-ga exe=/usr/bin/qemu-ga subj=unconfined_u:system_r:virt_qemu_ga_t:s0 key=(null) type=AVC msg=audit(11/06/2015 11:44:26.525:898) : avc: denied { getattr } for pid=6184 comm=qemu-ga path=/var/run/qga.state dev=vda3 ino=5387 scontext=unconfined_u:system_r:virt_qemu_ga_t:s0 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file ---- Expected results: * no SELinux denials