<div dir="auto">It's not a gstreamer specific or problem but this should provide some hints<div dir="auto"><br></div><div dir="auto"><a href="https://wiki.apache.org/httpd/NonRootPortBinding">https://wiki.apache.org/httpd/NonRootPortBinding</a><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">--Albin</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Apr 8, 2018, 21:07 Tanguy Mezzano <<a href="mailto:Tanguy.Mezzano@macq.eu">Tanguy.Mezzano@macq.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-853313716947538806divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0">Hello,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">How can I bind to a system port like 554?</p>
<p style="margin-top:0;margin-bottom:0">My process needs root rights to create such a socket but should be run with user permissions.</p>
<p style="margin-top:0;margin-bottom:0">I think of using seteuid function.</p>
<p style="margin-top:0;margin-bottom:0">My chain is divided into two chains: appsrc and appsink.</p>
<p style="margin-top:0;margin-bottom:0">First appsrc chain is set in playing state and creates files that shouldn't have root permissions.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I call <span>gst_rtsp_server_set_service(server, port); with root user and just after <span>gst_rtsp_server_get_bound_port(server); but it returns -1?</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>Thanks,</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><br>
</span></span></p>
<div id="m_-853313716947538806Signature">
<div id="m_-853313716947538806divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="text-align:left"></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><b style="font-size:12pt;font-family:'Times New Roman'"><font face="Arial" size="2">Tanguy Mezzano</font></b><br>
</p>
<div id="m_-853313716947538806x_Signature" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
<br>
</div>
<p></p>
</div>
</div>
</div>
</div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>