On 06/16/2014 01:35 PM, Richard Shaw
wrote:
Not a concern with regex. it just will not work. The examples you have seen on line, were not using equivalence. They were using generic labelling. Equivalence tells SELinux to swap the second part of the path with the first. You code would only match file paths that began with /var/lib/unifi/logs(/.*?) Not /var/lib/unifi/logs/foobar.log Yes That should work. You could speed it up by combining both semange fcontext lines into a single transaction. Something like. semanage -S targeted -i - << _EOF fcontext -a -t mongod_var_lib_t "%{_sharedstatedir}/unifi/logs(/.*)?" fcontext -a -t mongod_var_lib_t
"%{_sharedstatedir}/unifi/data(/.*)?"
_EOF 2>/dev/null || : |
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org