OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • [SOLVED] /tmp and /var/tmp
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] /tmp and /var/tmp  (Read 22724 times)

aa

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
[SOLVED] /tmp and /var/tmp
« on: June 21, 2015, 05:58:09 pm »
Just for consideration, FreeBSD uses /var/tmp for temporary objects
that expected to be living/survive between reboot.

I'm not sure about OPNsense, but pfSense symlinked /tmp to /var/tmp,
even on full install, which I think defeated the original purpose.
« Last Edit: July 02, 2015, 10:36:13 am by franco »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17704
  • Karma: 1616
    • View Profile
Re: /tmp and /var/tmp
« Reply #1 on: June 21, 2015, 06:46:27 pm »
There is no symlink, but the rc system still clears /var/tmp at startup. I've removed the only usage of /var/tmp (unbound code), but I won't remove the /var/tmp wipe at startup right away.

Please also note that using MFS on /var will make /var/tmp not survive a reboot as well.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17704
  • Karma: 1616
    • View Profile
Re: /tmp and /var/tmp
« Reply #2 on: June 22, 2015, 08:01:27 am »
Tested this, and it looks good.

/var/tmp (as well as /var/run and /var/etc) are not being cleaned on boot anymore in time for 15.7: https://github.com/opnsense/core/commit/8e77138ab864a4fb9540804f7ac0dff45982864d
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • [SOLVED] /tmp and /var/tmp
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2