From 8c99d7e4c1d8410bb605ef7ce5208312050fac81 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Mon, 5 Feb 2018 16:09:23 +0900 Subject: [PATCH] Fix permission mode of agent socket Remove permission for others. Change-Id: Ie28a323524f0988a79ba67d099d165fca8d1aa92 Signed-off-by: Sangyoon Jang (cherry picked from commit bc5398608d16e2c2059ab4748fec72a7527ec781) --- installer/pkgmgr_installer_signal_agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/pkgmgr_installer_signal_agent.c b/installer/pkgmgr_installer_signal_agent.c index 66e2f6f..f674379 100644 --- a/installer/pkgmgr_installer_signal_agent.c +++ b/installer/pkgmgr_installer_signal_agent.c @@ -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); -- 2.7.4