diff options
author | John Crispin <blogic@openwrt.org> | 2015-04-13 18:31:28 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-06-18 19:01:17 +0200 |
commit | b2e629a4e915e68acba129a5e00480e255ebc164 (patch) | |
tree | c741429ec79596536d9070c33c10adf1dadbced0 /ubusd.c | |
parent | 3df5b18af2c6b962ebd9ddea9208edadc3ea42e4 (diff) | |
download | ubus-b2e629a4e915e68acba129a5e00480e255ebc164.tar.gz |
change socket permission to allow !root users to connect
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'ubusd.c')
-rw-r--r-- | ubusd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -384,7 +384,7 @@ int main(int argc, char **argv) } unlink(ubus_socket); - umask(0177); + umask(0111); server_fd.fd = usock(USOCK_UNIX | USOCK_SERVER | USOCK_NONBLOCK, ubus_socket, NULL); if (server_fd.fd < 0) { perror("usock"); |