Remove calling chmod() 14/72914/1
authorJunghoon Park <jh9216.park@samsung.com>
Fri, 3 Jun 2016 04:37:31 +0000 (13:37 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Fri, 3 Jun 2016 04:37:31 +0000 (13:37 +0900)
- 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 <jh9216.park@samsung.com>
src/launchpad_common.c

index 2fc5392..0aca7c1 100644 (file)
@@ -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) {