Description of problem: The samba_selinux(8) page states: chcon -t samba_share_t /var/eng If you want to make this permanent, i.e. survive a relabel, you must add an entry to the file_contexts.local file. /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local /var/eng(/.*)? system_u:object_r:samba_share_t Version-Release number of selected component (if applicable): selinux-policy-3.5.13-17.fc10.noarch Expected results: For targeted policy, "/etc/selinux/targeted/contexts/files/file_contexts.local" has: # This file is auto-generated by libsemanage # Do not edit directly. Maybe the example could be changed to something like: To make this change permanent (survive a relabel), use the semanage command to add the change to file context configuration: semanage fcontext -a -t samba_share_t "/var/eng(/*)?" This command adds the following entry to /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local: /var/eng(/.*)? system_u:object_r:samba_share_t Run the restorecon command to apply the changes: restorecon -R -v /var/eng/ Additional info: Sorry for being lazy - let me know if I should mail a patch to the SELinux list... ;)
I typoed "semanage fcontext -a -t samba_share_t "/var/eng(/*)?" " Should be: semanage fcontext -a -t samba_share_t "/var/eng(/.*)?
Fixed in selinux-policy-3.5.13-20.fc10
Verified in selinux-policy-3.5.13-40.fc10.noarch