diff options
author | Junghoon Park <jh9216.park@samsung.com> | 2016-06-03 13:37:31 +0900 |
---|---|---|
committer | Junghoon Park <jh9216.park@samsung.com> | 2016-06-03 13:37:31 +0900 |
commit | 960da352c387208c05491858e265e18d312485c2 (patch) | |
tree | be1802dde0e116a3f38a7c5fd0c767ddee4e4caa | |
parent | f3ac7b09f556b2a45975e827c1ec4181120bd001 (diff) | |
download | launchpad-960da352c387208c05491858e265e18d312485c2.tar.gz launchpad-960da352c387208c05491858e265e18d312485c2.tar.bz2 launchpad-960da352c387208c05491858e265e18d312485c2.zip |
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 <jh9216.park@samsung.com>
-rw-r--r-- | src/launchpad_common.c | 7 |
1 files changed, 0 insertions, 7 deletions
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) { |