From: Junghoon Park Date: Fri, 3 Jun 2016 04:37:31 +0000 (+0900) Subject: Remove calling chmod() X-Git-Tag: accepted/tizen/common/20160607.194649~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F72914%2F1;p=platform%2Fcore%2Fappfw%2Flaunchpad.git Remove calling chmod() - The socket file is at /run/user/5001/.launchpad-process-pool-sock - Even if it is allowed to other and groups, x permission for /run/user/5001/ is only allowed by 5001 user. therefore, we don't need to change it. - In case of socket activation, it is srw-r--r-- Change-Id: I4af7398ca3f7e3f82eb7980f1b3e18e5e2c4bbc7 Signed-off-by: Junghoon Park --- diff --git a/src/launchpad_common.c b/src/launchpad_common.c index 2fc5392..0aca7c1 100644 --- a/src/launchpad_common.c +++ b/src/launchpad_common.c @@ -211,13 +211,6 @@ int _create_server_sock(const char *name) return -1; } - if (chmod(saddr.sun_path, (S_IRWXU | S_IRWXG | S_IRWXO)) < 0) { - /* Flawfinder: ignore*/ - _E("failed to change the socket permission"); - close(fd); - return -1; - } - _set_sock_option(fd, 0); if (listen(fd, 128) == -1) {