<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font size="-1">nnelson@x570:~$ mktemp -d<br>
        /tmp/tmp.lOPA8997cg<br>
        nnelson@x570:~$ ls -ld /tmp/tmp.lOPA8997cg<br>
        drwx------ 2 nnelson nnelson 40 Jun 21 11:27 /tmp/tmp.lOPA8997cg<br>
      </font></p>
    <p><font size="-1">This shows that mktemp creates a directory under
        /tmp with only the user's access permissions.</font></p>
    <p><font size="-1">/tmp currently defaults to disk when Ubuntu is
        installed. There may be cases where some distributions mount
        /tmp in memory. I have changed fstab here to mount /tmp in
        memory.<br>
      </font></p>
    <p><font size="-1">Neil Nelson</font><br>
    </p>
    <div class="moz-cite-prefix">On 6/21/20 3:54 AM, David Zarzycki via
      cfe-dev wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:2dc7857e-2cc0-4f9d-b666-da3f93c0d0a8@www.fastmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title></title>
      <style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
      <div>Hello,<br>
      </div>
      <div><br>
      </div>
      <div>I'd like to request that we move the default module cache
        that is currently created in /tmp to somewhere that isn't a
        shared writable directory (with all of the associated security
        risks).<br>
      </div>
      <div><br>
      </div>
      <div>The traditional Unix solution for caches (web browser,
        ccache, etc) is to have a directory in $HOME.<br>
      </div>
      <div><br>
      </div>
      <div>I'd like to suggest moving the clang module cache there.<br>
      </div>
      <div><br>
      </div>
      <div>Dave</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
    </blockquote>
  </body>
</html>