freebsd-ports/net/rtpproxy/files/patch-freebsd_rtpproxy.in
Maxim Sobolev fd17cc1963 Add unprivileged user to run under, so it's more secure.
Reminded by:    Olle E. Johansson
2012-12-12 02:08:33 +00:00

17 lines
448 B
Text

$FreeBSD$
--- freebsd/rtpproxy.in.orig
+++ freebsd/rtpproxy.in
@@ -25,7 +25,10 @@
rtpproxy_enable=${rtpproxy_enable:-"NO"}
rtpproxy_laddr=${rtpproxy_laddr:-"0.0.0.0"}
+rtpproxy_usr=${rtpproxy_usr:-"rtpproxy"}
+rtpproxy_grp=${rtpproxy_grp:-"rtpproxy"}
-command_args="-l ${rtpproxy_laddr} -p /var/run/rtpproxy.pid"
+command_args="-l ${rtpproxy_laddr} -p /var/run/rtpproxy.pid \
+ -u ${rtpproxy_usr}:${rtpproxy_grp}"
run_rc_command "${1}"