Explicitly set permission on the socket file created by DiagnosticServer (#24988)
authorSung Yoon Whang <suwhang@microsoft.com>
Fri, 7 Jun 2019 21:17:17 +0000 (14:17 -0700)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2019 21:17:17 +0000 (14:17 -0700)
commit77c1832cf25f43f9e8e6d272f955819d7c35c11b
treec22bb8b36d32973bb1322539796683f740cdb75a
parent3fcaf0373369ed4b17bd1ed068592c2e0cec3997
Explicitly set permission on the socket file created by DiagnosticServer (#24988)

* Explicitly set permission on the socket file created by DiagnosticServer

* Add an asserte and remove execute permission

* Use umask to set permission instead of fchmod

* use fchmod for linux, ifdef out osx specific permission sets

* Set correct permission bit in call to umask

* Forgot to recover umask on one of the error paths
src/debug/debug-pal/unix/diagnosticsipc.cpp