From: John Crispin Date: Mon, 13 Apr 2015 16:31:28 +0000 (+0200) Subject: change socket permission to allow !root users to connect X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=b2e629a4e915e68acba129a5e00480e255ebc164 change socket permission to allow !root users to connect Signed-off-by: John Crispin --- diff --git a/ubusd.c b/ubusd.c index c3edc70..65b82ca 100644 --- a/ubusd.c +++ b/ubusd.c @@ -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");