Bug 678103
Summary: | SELinux is preventing /usr/sbin/dnsmasq from 'search' accesses on the dossier /var/lib/tftpboot. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael S. <misc> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 14 | CC: | dwalsh, mgrepl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | setroubleshoot_trace_hash:3ca1a441a7882caa6682adbc6f5e52846ea6fae6d2929a682d32f39f94cf0f57 | ||
Fixed In Version: | selinux-policy-3.9.7-31.fc14 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-02-24 20:54:03 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michael S.
2011-02-16 18:10:33 UTC
Dnsmasq can be used as a tftp server, and I use it with virt-manager to do pxe installation $ ls -lZd /var/lib/tftpboot drwxr-xr-x. root root system_u:object_r:tftpdir_rw_t:s0 /var/lib/tftpboot Dnsmasq is runing with : 1636 ? S 0:07 /usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --listen-address 192.168.122.1 --except-interface lo --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253 --enable-tftp --tftp-root /var/lib/tftpboot --dhcp-boot pxelinux.0 And I have added <tftp root='/var/lib/tftpboot' /> to/etc/libvirt/qemu/networks/default.xml : <network> <name>default</name> <uuid>xxx</uuid> <forward mode='nat'/> <bridge name='virbr0' stp='on' delay='0' /> <ip address='192.168.122.1' netmask='255.255.255.0'> <tftp root='/var/lib/tftpboot' /> <dhcp> <range start='192.168.122.2' end='192.168.122.254' /> <bootp file='pxelinux.0' /> </dhcp> </ip> </network> Miroslav can you change interface(`tftp_read_content',` gen_require(` type tftpdir_t; type tftpdir_rw_t; ') read_files_pattern($1, tftpdir_t, tftpdir_t) read_lnk_files_pattern($1, tftpdir_t, tftpdir_t) read_files_pattern($1, tftpdir_rw_t, tftpdir_rw_t) read_lnk_files_pattern($1, tftpdir_rw_t, tftpdir_rw_t) ') Fixed in selinux-policy-3.9.7-31.fc14 selinux-policy-3.9.7-31.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-31.fc14 selinux-policy-3.9.7-31.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-31.fc14 selinux-policy-3.9.7-31.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |