<p style="white-space: pre-wrap; word-wrap: break-word;">good except for the root fs / sudo things</p><p>Patch set 6:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +1</span></p><p><a href="https://gerrit.osmocom.org/11144">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11144/6/net/tmpl_std/run.sh">File net/tmpl_std/run.sh:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11144/6/net/tmpl_std/run.sh@79">Patch Set #6, Line 79:</a> <code style="font-family:monospace,monospace">  kamailio="$(sudo which kamailio)"</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">oof, ok ... maybe instead we should include /sbin or something in the $PATH?</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  $(PATH="$PATH:/usr/sbin;/sbin" which kamailio)</pre></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11144/6/net/tmpl_std/run.sh@88">Patch Set #6, Line 88:</a> <code style="font-family:monospace,monospace">  sudo mkdir -p /var/run/kamailio</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">can we instead keep the kamailio run dir as a local subdir? Is it not configurable in kamailio.cfg?</p><p style="white-space: pre-wrap; word-wrap: break-word;">Above sudo is intended only for configuring the network, all the remaining stuff should be userland and shouldn't modify the current root system.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Hmm, I think we should even remove sudo from the tcpdumps, possibly skip tcpdump if the user has no setuid on dumpcap; and maybe even separate all network config sudo stuff to a separate script... (what was I thinking!)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11144">change 11144</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11144"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-dev </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ia5c4e9992eab390bc6d26ada7564223ff41a01b2 </div>
<div style="display:none"> Gerrit-Change-Number: 11144 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Assignee: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 12 Oct 2018 11:06:49 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>