Fix permission mode of agent socket 46/169246/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Mon, 5 Feb 2018 07:09:23 +0000 (16:09 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 5 Feb 2018 07:09:23 +0000 (16:09 +0900)
Remove permission for others.

Change-Id: Ie28a323524f0988a79ba67d099d165fca8d1aa92
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
installer/pkgmgr_installer_signal_agent.c

index 66e2f6f..f674379 100644 (file)
@@ -82,7 +82,7 @@ static int __create_server_socket(const char *path)
                return -1;
        }
 
-       r = chmod(sa.sun_path, 0666);
+       r = chmod(sa.sun_path, 0660);
        if (r == -1)
                LOGW("chmod(%s) failed: %d", sa.sun_path, errno);