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.
This is a problem with the latest cobbler. We should need
/etc/xinetd\.d/tftp -- gen_context(system_u:object_r:tftpd_etc_t,s0
in the policy. But we can say to create this file with this label only on Fedora16+.
We have another transition for /etc in the cobbler policy on RHEL6.3. So we would get duplicate transitions.
I think we could add labeling and cobbler sync could run restorecon when /etc/xinetd\.d/tftp is created. I hope the cobbler sync runs as unconfined in this phase.
Comment 4RHEL Program Management
2012-07-10 08:19:14 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
Comment 5RHEL Program Management
2012-07-11 01:56:29 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.
Description of problem: SELinux denies cobbler writting tftp Version-Release number of selected component (if applicable): [root@Merak ~]# rpm -q cobbler cobbler-2.2.2-1.el6.noarch [root@Merak ~]# rpm -q selinux-policy selinux-policy-3.7.19-145.el6.noarch [root@Merak ~]# rpm -qa|grep -i target selinux-policy-targeted-3.7.19-145.el6.noarch How reproducible: Execute cobbler sync Steps to Reproduce: 1. cobbler sync 2. 3. Actual results: AUDIT.LOG: type=AVC msg=audit(1338380856.563:62132): avc: denied { write } for pid=3098 comm="cobblerd" name="tftp" dev=dm-0 ino=10881600 scontext=system_u:system_r:cobblerd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file type=SYSCALL msg=audit(1338380856.563:62132): arch=c000003e syscall=2 success=no exit=-13 a0=7fd2280f2d30 a1=242 a2=1b6 a3=0 items=0 ppid=1 pid=3098 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="cobblerd" exe="/usr/bin/python" subj=system_u:system_r:cobblerd_t:s0 key=(null) COBBLER ON CONSOLE: rendering DHCP files generating /etc/dhcp/dhcpd.conf rendering TFTPD files generating /etc/xinetd.d/tftp Exception occured: <type 'exceptions.IOError'> Exception value: [Errno 13] Permission denied: '/etc/xinetd.d/tftp' Exception Info: File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 89, in run rc = self._run(self) File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 184, in runner return self.remote.api.sync(self.options.get("verbose",False),logger=self.logger) File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 701, in sync return sync.run() File "/usr/lib/python2.6/site-packages/cobbler/action_sync.py", line 142, in run self.tftpd.write_tftpd_files() File "/usr/lib/python2.6/site-packages/cobbler/modules/manage_in_tftpd.py", line 131, in write_tftpd_files self.templar.render(template_data, metadata, self.settings_file, None) File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line 167, in render fd = open(out_path, "w+") !!! TASK FAILED !!! Expected results: cobbler should be able to generate that configuration file and output something similar to: Iniciando dhcpd: [ OK ] received on stderr: running shell triggers from /var/lib/cobbler/triggers/sync/post/* running python triggers from /var/lib/cobbler/triggers/change/* running python trigger cobbler.modules.scm_track running shell triggers from /var/lib/cobbler/triggers/change/* *** TASK COMPLETE *** Additional info: