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-2283.html
Description of problem: Version-Release number of selected component (if applicable): cups-1.6.3-22.el7.x86_64 cups-client-1.6.3-22.el7.x86_64 cups-filesystem-1.6.3-22.el7.noarch cups-filters-1.0.35-21.el7.x86_64 cups-filters-libs-1.0.35-21.el7.x86_64 cups-libs-1.6.3-22.el7.x86_64 cups-lpd-1.6.3-22.el7.x86_64 cups-pk-helper-0.2.4-5.el7.x86_64 selinux-policy-3.13.1-52.el7.noarch selinux-policy-devel-3.13.1-52.el7.noarch selinux-policy-doc-3.13.1-52.el7.noarch selinux-policy-minimum-3.13.1-52.el7.noarch selinux-policy-mls-3.13.1-52.el7.noarch selinux-policy-sandbox-3.13.1-52.el7.noarch selinux-policy-targeted-3.13.1-52.el7.noarch How reproducible: always Steps to Reproduce: # cat /etc/printcap | tr -d '#' /etc/printcap Please don't edit this file directly unless you know what you are doing! This file will be automatically generated by cupsd(8) from the /etc/cups/printers.conf file. All changes to this file will be lost. # rm -f /etc/printcap # service cups status Redirecting to /bin/systemctl status cups.service ● cups.service - CUPS Printing Service Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; vendor preset: enabled) Active: inactive (dead) # service cups start Redirecting to /bin/systemctl start cups.service # ls -Z /etc/printcap ls: cannot access /etc/printcap: No such file or directory # ausearch -m avc -m user_avc -m selinux_err -i -ts recent Actual results (enforcing mode): ---- type=PATH msg=audit(09/22/2015 08:43:49.751:128) : item=1 name=/etc/printcap objtype=CREATE type=PATH msg=audit(09/22/2015 08:43:49.751:128) : item=0 name=/etc/ inode=16777345 dev=fd:03 mode=dir,755 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:etc_t:s0 objtype=PARENT type=CWD msg=audit(09/22/2015 08:43:49.751:128) : cwd=/ type=SYSCALL msg=audit(09/22/2015 08:43:49.751:128) : arch=x86_64 syscall=open success=no exit=-13(Permission denied) a0=0x7f05a96acb34 a1=O_WRONLY|O_CREAT|O_EXCL a2=0666 a3=0x7ffe772909f0 items=2 ppid=1 pid=2662 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=cupsd exe=/usr/sbin/cupsd subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(09/22/2015 08:43:49.751:128) : avc: denied { create } for pid=2662 comm=cupsd name=printcap scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file ---- Expected results: * no AVCs, the file gets created