Created attachment 325167 [details] semanage tests Description of problem: 1. semanage fcontext -a -t samba_share_t /test 2. restorecon -R -v /test Changes /test type to samba_share_t. Note: no slash on the end of "/test". 1. semanage fcontext -a -t samba_share_t /test/ 2. restorecon -R -v /test /test still uses default_t type. Note: trailing slash, "/test/". See attached for full steps. Version-Release number of selected component (if applicable): policycoreutils-2.0.57-11.fc10.i386 selinux-policy-3.5.13-18.fc10.noarch selinux-policy-targeted-3.5.13-18.fc10.noarch libselinux-utils-2.0.73-1.fc10.i386 libselinux-python-2.0.73-1.fc10.i386 libselinux-2.0.73-1.fc10.i386
The problem here is you are adding a path that is a regular expression. So from a regex point of view /test does not match /test/. Since there is lots of examples where this is going to fail, I am going to close this as wontfix.