<div>Hi,<br></div><div><br></div><div>The chmod should be<br></div><div><br></div><div>chmod 1777 /dev/shm</div><div><br></div><div id="editorUserSignature" style="display:none;"><br></div><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space"> </span>ls -alh /dev/shm</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures">total 4.0K</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures">drwxrwxrwt<span class="Apple-converted-space">  </span>2 root root <span class="Apple-converted-space">  </span>60 Dez 21 12:06 .</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures">drwxr-xr-x 17 root root 5.6K Dez 21 12:06 ..</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures">-rw----rw-<span class="Apple-converted-space">  </span>1 root root 4.0K Dez 21 12:06 PHS-5723</span></span></span></span><br></p><div><br></div><div><br></div><div>That 1 before the 777 sets the sticky bit.<br></div><div><br></div><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures"><b>RESTRICTED</b> <b>DELETION</b> <b>FLAG</b> <b>OR</b> <b>STICKY</b> <b>BIT</b></span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">       </span>The<span class="Apple-converted-space">  </span>restricted<span class="Apple-converted-space">  </span>deletion<span class="Apple-converted-space">  </span>flag<span class="Apple-converted-space">  </span>or<span class="Apple-converted-space">  </span>sticky<span class="Apple-converted-space">  </span>bit is a single bit, whose</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">       </span>interpretation depends on the file type.<span class="Apple-converted-space">  </span>For directories, it<span class="Apple-converted-space">  </span>prevents</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">       </span>unprivileged<span class="Apple-converted-space">  </span>users<span class="Apple-converted-space">  </span>from<span class="Apple-converted-space">  </span>removing or renaming a file in the directory</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">       </span>unless they<span class="Apple-converted-space">  </span>own<span class="Apple-converted-space">  </span>the<span class="Apple-converted-space">  </span>file<span class="Apple-converted-space">  </span>or<span class="Apple-converted-space">  </span>the<span class="Apple-converted-space">  </span>directory;<span class="Apple-converted-space">  </span>this<span class="Apple-converted-space">  </span>is<span class="Apple-converted-space">  </span>called<span class="Apple-converted-space">  </span>the</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">       </span></span><u>restricted</u><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">  </span></span><u>deletion</u><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">  </span></span><u>flag</u><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">  </span>for the directory, and is commonly found on</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">       </span>world-writable directories like <b>/tmp</b>.<span class="Apple-converted-space">  </span>For regular files on some<span class="Apple-converted-space">  </span>older</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">       </span>systems,<span class="Apple-converted-space">  </span>the<span class="Apple-converted-space">  </span>bit saves the program's text image on the swap device so</span></span></span></span><br></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size:11px"><span style="font-variant-ligatures: no-common-ligatures"><span class="Apple-converted-space">       </span>it will load more quickly when run; this is called the </span><u>sticky</u><span style="font-variant-ligatures: no-common-ligatures"> </span><u>bit</u><span style="font-variant-ligatures: no-common-ligatures">.</span></span></span></span><br></p><div><br></div><div>The sticky bit  plus 777 lets /tmp and /dev/shm work correctly by letting everyone create and delete files, but unless they are root only they can delete only their own files.<br></div><div><br></div><div>It won't fail on a single user system if you just use 777, but, it is a security leak on a multi user system since it lets me manipulate your shared memory segments etc.</div><div><br></div><div>cheers<br></div><div><br></div><div>bruce</div><div><br></div><div><i>31 December 2020 22:18 Eliot Miranda <eliot.miranda@gmail.com> wrote:</i><br></div><blockquote class="infmailquote"><div><br></div><div>Hi Ken,<br></div><div> <br></div><div> thanks for this!! I’ll try and add an error message to the failure to point users to the fix. This is another one like not being able to set the heartbeat thread priority that the vm needs to report as helpfully as possible.<br></div><div> <br></div><div> _,,,^..^,,,_ (phone)<br></div><div> <br></div><div> > On Dec 31, 2020, at 6:15 AM, Ken.Dickey@whidbey.com wrote:<br></div><div> ><br></div><div> > Apologies to all, I though I had trimmed the header on this..<br></div><div> > -KenD<br></div><div> > =============<br></div><div> > Message: 6<br></div><div> > Date: Thu, 31 Dec 2020 04:18:58 -0800<br></div><div> > From: Christoph Thiede<br></div><div> > To: OpenSmalltalk/opensmalltalk-vm<br></div><div> ><br></div><div> > Cc: Comment , OpenSmalltalk-Bot<br></div><div> ><br></div><div> > Subject: Re: [Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Trouble running<br></div><div> > OSVM in an Ubuntu 20/aarch64 docker (raspi) (#544)<br></div><div> > Message-ID:<br></div><div> ><br></div><div> > Content-Type: text/plain; charset="utf-8"<br></div><div> ><br></div><div> > I have tried that and built the VM again, but I keep getting the same<br></div><div> > mprotect error message :( Any other ideas?<br></div><div> ><br></div><div> > From: oscogvm/build.linux64ARMv8/HowToBuild:<br></div><div> ><br></div><div> > vvv======vvv<br></div><div> ><br></div><div> > If running the resultant squeak vm gives an error something like<br></div><div> > mprotect(x,y,PROT_READ|PROT_EXEC)<br></div><div> > or<br></div><div> > memory_alias_map: shm_open: Permission denied<br></div><div> > you need to enable shared memory for the COG JIT.<br></div><div> ><br></div><div> > As root:<br></div><div> > chmod 777 /dev/shm<br></div><div> > echo 'none /dev/shm tmpfs rw,nosuid,nodev 0 0' >> /etc/fstab<br></div><div> > mount /dev/shm<br></div><div> ><br></div><div> > The squeak vm should now work.<br></div><div> > ^^^======^^^<br></div></blockquote><div><br></div>