Fix: lttng-relayd allow binding of privileged ports for non-root users
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index 1ac975660b5ada3a9fe30a2bd5330b22ca1b94aa..1ea2d2c08e5d96b0a894b43bbf33c7a48c3e4b41 100644 (file)
@@ -2715,15 +2715,6 @@ int main(int argc, char **argv)
                goto exit_init_data;
        }
 
-       /* Check if daemon is UID = 0 */
-       if (!getuid()) {
-               if (control_uri->port < 1024 || data_uri->port < 1024 || live_uri->port < 1024) {
-                       ERR("Need to be root to use ports < 1024");
-                       retval = -1;
-                       goto exit_init_data;
-               }
-       }
-
        /* Setup the thread apps communication pipe. */
        if (create_relay_conn_pipe()) {
                retval = -1;
This page took 0.022512 seconds and 4 git commands to generate.