diff options
author | John Levon <john.levon@nutanix.com> | 2021-04-08 17:53:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 17:53:21 +0100 |
commit | ba6abc4ce1d01d7253d044f2ec59c4b484d098b9 (patch) | |
tree | c1ad058c758c1de0402857b64b7b00ac09eab861 /lib/tran_sock.c | |
parent | a1e0437c6921dd8b5c5436c97fd2b69b7e06f34a (diff) | |
download | libvfio-user-ba6abc4ce1d01d7253d044f2ec59c4b484d098b9.zip libvfio-user-ba6abc4ce1d01d7253d044f2ec59c4b484d098b9.tar.gz libvfio-user-ba6abc4ce1d01d7253d044f2ec59c4b484d098b9.tar.bz2 |
tran_sock: remove umask() (#435)
It's not our business to be setting umasks, and it's not necessary.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'lib/tran_sock.c')
-rw-r--r-- | lib/tran_sock.c | 6 |
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); |