Bind on port 554

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bind on port 554

tanguy

Hello,


How can I bind to a system port like 554?

My process needs root rights to create such a socket but should be run with user permissions.

I think of using seteuid function.

My chain is divided into two chains: appsrc and appsink.

First appsrc chain is set in playing state and creates files that shouldn't have root permissions.


I call gst_rtsp_server_set_service(server, port); with root user and just after gst_rtsp_server_get_bound_port(server); but it returns -1?


Thanks,


Tanguy Mezzano



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Bind on port 554

Albin Stigö
It's not a gstreamer specific or problem but this should provide some hints



--Albin

On Sun, Apr 8, 2018, 21:07 Tanguy Mezzano <[hidden email]> wrote:

Hello,


How can I bind to a system port like 554?

My process needs root rights to create such a socket but should be run with user permissions.

I think of using seteuid function.

My chain is divided into two chains: appsrc and appsink.

First appsrc chain is set in playing state and creates files that shouldn't have root permissions.


I call gst_rtsp_server_set_service(server, port); with root user and just after gst_rtsp_server_get_bound_port(server); but it returns -1?


Thanks,


Tanguy Mezzano


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel