blob: 2e11bab8e6d4a6a1b81b203e4b02378756d2b1a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff --git a/src/connection_manager.c b/src/connection_manager.c
index b4fe587..714daeb 100755
--- a/src/connection_manager.c
+++ b/src/connection_manager.c
@@ -1318,16 +1318,6 @@ cm_server_watcher_cb(struct ev_loop *loop, ev_io *w, int revents)
close(clnt_fd);
continue;
}
- /* check uid in case of local (library) mode */
- if (CM_MODE_LOCAL == cm_ctx->mode) {
- if (connection->uid != geteuid()) {
- SR_LOG_ERR("Peer's uid=%d does not match with local uid=%d "
- "(required by local mode).", connection->uid, geteuid());
- sm_connection_stop(cm_ctx->sm_ctx, connection);
- close(clnt_fd);
- continue;
- }
- }
/* start watching this fd */
rc = cm_conn_watcher_init(cm_ctx, connection);
if (SR_ERR_OK != rc) {
|