- 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>
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) {