<br><div class="gmail_quote">On Tue, Aug 16, 2011 at 9:43 PM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5"><br>
On 16 August 2011 22:02, laurent laffont &lt;<a href="mailto:laurent.laffont@gmail.com">laurent.laffont@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Tue, Aug 16, 2011 at 6:46 PM, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On 16 August 2011 16:42, laurent laffont &lt;<a href="mailto:laurent.laffont@gmail.com">laurent.laffont@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; for SmallHarbour I&#39;ve cloned cogvm/blessed and then add security patches from SeasideHosting. See<br>
&gt;&gt; &gt;&gt; &gt; - <a href="https://gitorious.org/~laurentlaffont/cogvm/smallharbour" target="_blank">https://gitorious.org/~laurentlaffont/cogvm/smallharbour</a><br>
&gt;&gt; &gt;&gt; &gt; - <a href="https://gitorious.org/~laurentlaffont/cogvm/smallharbour/commit/7f45e401f8c805021e3ef06e110e3f079fe6ecc3" target="_blank">https://gitorious.org/~laurentlaffont/cogvm/smallharbour/commit/7f45e401f8c805021e3ef06e110e3f079fe6ecc3</a><br>


&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; What&#39;s the best way to stay synchronized with cogvm/blessed commits ?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Fist you need to add blessed as remote repository:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; git remote add blessed git://<a href="http://gitorious.org/cogvm/blessed.git" target="_blank">gitorious.org/cogvm/blessed.git</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Then you can simply pull changes to your branch:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; git pull blessed<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; and it will merge changes automatically. (of course if there&#39;s no conflicts).<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; And then<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; git push<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; to push updates to your own repository.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Is it interesting to adapt this patch for integration in cogvm/blessed ?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Absolutely. All contributions is welcome :)<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Is this patch good ?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I am a bit out of context. Where i can read a description of what you did?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; First the changes are quite small, originally made by Nestyle (I suppose) for SesideHosting.<br>
&gt;&gt; &gt; This introduce the use of environment variables to restrict filesystem and port access. For example we don&#39;t want the hosted image to be able to access /etc/passwd or another account files. We don&#39;t want that 2 images use the same port.<br>


&gt;&gt; &gt; So this patch read these environment variables:<br>
&gt;&gt; &gt; export SQUEAK_PORT_LO=16400<br>
&gt;&gt; &gt; export SQUEAK_PORT_HI=16407<br>
&gt;&gt; &gt; export SQUEAK_ROOT_DIR=&quot;/service/myaccount/files&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; so only port between 16400 and 16407 can be opened, only /service/myaccount/files can be read/written.<br>
&gt;&gt; &gt; Note that in the patch port 25 (SMTP) is always accessible.<br>
&gt;&gt; &gt; This is very specific to SeasideHosting/SmallHarbour, so I don&#39;t think the patch should be apply as it is now in cogvm/blessed, but having such functionalities in the VM would be nice IMO.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The commit is here - quite easy to read: <a href="https://gitorious.org/~laurentlaffont/cogvm/smallharbour/commit/7f45e401f8c805021e3ef06e110e3f079fe6ecc3" target="_blank">https://gitorious.org/~laurentlaffont/cogvm/smallharbour/commit/7f45e401f8c805021e3ef06e110e3f079fe6ecc3</a><br>


&gt;&gt; &gt; Laurent.<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; Wait. First you asking if those can be integrated, and then you saying<br>
&gt;&gt; that its too specific..<br>
&gt;&gt; Do you mean that we should discuss/think about integrating a more<br>
&gt;&gt; general form of this functionality?<br>
&gt;<br>
&gt;<br>
&gt; Yes. Sorry for confusion :)<br>
&gt; Laurent.<br>
&gt;<br>
</div></div>As to me an environment these settings is good enough. For unix-like<br>
systems it is pretty fine.<br>
But for windows, a more common is to use .ini file(s) and store settings there.<br></blockquote><div><br></div><div><br></div><div>What do you think about program arguments ?  Like this:</div><div><br></div><div>./cog -port-filter 25,16400:16407 -fs-root /var/images/public/</div>

<div><br></div><div>on Windows</div><div><br></div><div>cog -port-filter 25,16400:16407 -fs-root &quot;C:\Images\Public\&quot;</div><div><br></div><div>with  </div><div>-port-filter 25,8080,8081 means &quot;allow only 25, 8080 and 8081&quot;</div>

<div>-port-filter 8080:8090 means &quot;allow ports from 8080 to 8090&quot;</div><div><br></div><div><br></div><div>Laurent</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<div class="im"><br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Laurent Laffont - @lolgzs<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Pharo Smalltalk Screencasts: <a href="http://www.pharocasts.com/" target="_blank">http://www.pharocasts.com/</a><br>
&gt;&gt; &gt;&gt; &gt; Blog: <a href="http://magaloma.blogspot.com/" target="_blank">http://magaloma.blogspot.com/</a><br>
&gt;&gt; &gt;&gt; &gt; Developer group: <a href="http://cara74.seasidehosting.st" target="_blank">http://cara74.seasidehosting.st</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Best regards,<br>
&gt;&gt; &gt;&gt; Igor Stasenko AKA sig.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Best regards,<br>
&gt;&gt; Igor Stasenko AKA sig.<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div>--<br>
<div><div></div><div class="h5">Best regards,<br>
Igor Stasenko AKA sig.<br>
</div></div></blockquote></div><br>