selinux - change default type
Posted on Thu 12 April 2018 in Linux • Tagged with selinux, linux • 1 min read
$ matchpathcon /tftpboot
/tftpboot system_u:object_r:tftpdir_t:s0
$ semanage fcontext -a -t tftpdir_rw_t "/srv/tftp(/.*)?"
$ restorecon -Rv /srv/tftp