aboutsummaryrefslogtreecommitdiff
path: root/lib/tran_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tran_sock.c')
-rw-r--r--lib/tran_sock.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/tran_sock.c b/lib/tran_sock.c
index 99504c8..ce3430a 100644
--- a/lib/tran_sock.c
+++ b/lib/tran_sock.c
@@ -390,14 +390,10 @@ tran_sock_init(vfu_ctx_t *vfu_ctx)
{
struct sockaddr_un addr = { .sun_family = AF_UNIX };
tran_sock_t *ts = NULL;
- mode_t mode;
int ret;
assert(vfu_ctx != NULL);
- /* FIXME SPDK can't easily run as non-root */
- mode = umask(0000);
-
ts = calloc(1, sizeof(tran_sock_t));
if (ts == NULL) {
@@ -443,8 +439,6 @@ tran_sock_init(vfu_ctx_t *vfu_ctx)
}
out:
- umask(mode);
-
if (ret != 0) {
if (ts->listen_fd != -1) {
close(ts->listen_fd);