Resolves: rhbz#1499354 - CVE-2017-12173
sssd: unsanitized input when searching in local cache database access on
the sock_file system_bus_socket
(cherry picked from commit 7069858231391ef11ae411028f8d77efb1befd68)
(cherry picked from commit 4a8ad4c17440622010ce0dc138ca2042eb3eadb1)
(cherry picked from commit 8fca7e629aa1e5785111e8296eb9de1aa4e563f0)