I personally think this is a safer way to change the permissions of that fpm.sock file.