Split off from bug #6076.
> One such application is tl-setup. restorecon (part of the SELinux step) will
> take forever to complete if there are a bunch of disconnected drives.
We have observed this taking 15 minutes or more, depending on the number of sessions.
* Tested that restorecon has the same API on RHEL5, CentOS 7, and Fedora 25.
* Verified that the fix works on an affected system where this step previously took ~15 minutes
Broken on fresh install. Does not fix the context of /var/opt/thinlinc/sessions itself.
Verified that tl-setup restores context on /var/opt/thinlinc/sessions
Works as expected.