Add correct SELinux context for /tftpboot and fix map-file ACL
Change-Id: If89f1506ddd345df217739bf5dbb15d18b44c096
This commit is contained in:
parent
1f37c41413
commit
3aacfd3226
@ -412,6 +412,15 @@
|
||||
setype: http_port_t
|
||||
state: present
|
||||
|
||||
- name: "Add proper context on created data for tftpboot"
|
||||
sefcontext:
|
||||
target: "{{ item }}"
|
||||
setype: tftpdir_t
|
||||
state: present
|
||||
loop:
|
||||
- /tftpboot
|
||||
- /tftpboot/pxelinux.cfg
|
||||
|
||||
- name: "Add proper context on created data for http_boot"
|
||||
sefcontext:
|
||||
target: "{{ http_boot_folder }}(/.*)?"
|
||||
|
@ -24,7 +24,12 @@
|
||||
- "{{ http_boot_folder }}/pxelinux.cfg"
|
||||
|
||||
- name: "Place tftpd map-file"
|
||||
copy: src=tftpboot-map-file dest=/tftpboot/map-file owner=ironic group=ironic
|
||||
copy:
|
||||
src: tftpboot-map-file
|
||||
dest: /tftpboot/map-file
|
||||
owner: ironic
|
||||
group: ironic
|
||||
mode: 0644
|
||||
|
||||
- name: "Disable service {{ tftp_service_name }}"
|
||||
service: name="{{ tftp_service_name }}" state=stopped enabled=no
|
||||
|
4
releasenotes/notes/tftp-context-6f918743ba9052b0.yaml
Normal file
4
releasenotes/notes/tftp-context-6f918743ba9052b0.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Adds correct SELinux context for ``/tftpboot``.
|
Loading…
Reference in New Issue
Block a user