Ask Your Question

Revision history [back]

Fedora26-cloud image builder: Cannot repair SElinux labels on custom network config files

I am creating a Fedora26 cloud image for private openstack cloud using ansible. I am dropping few custom network config files in the /etc/sysctl.d/ and repairing the SElinux labels on it by using setfiles /etc/selinux/targeted/../contextfiles but it seems that the labels are not getting repaired. If I try the same command manually from shell then it is repairing the labels on those files. If anyone is facing same issue or has any info please let me help me out

click to hide/show revision 2
retagged

updated 2018-11-04 04:27:30 -0600

hhlp gravatar image

Fedora26-cloud image builder: Cannot repair SElinux labels on custom network config files

I am creating a Fedora26 cloud image for private openstack cloud using ansible. I am dropping few custom network config files in the /etc/sysctl.d/ and repairing the SElinux labels on it by using setfiles /etc/selinux/targeted/../contextfiles but it seems that the labels are not getting repaired. If I try the same command manually from shell then it is repairing the labels on those files. If anyone is facing same issue or has any info please let me help me out