|
Other BSD and UNIX/UNIX-like Any other flavour of BSD or UNIX that does not have a section of its own. |
|
Thread Tools | Display Modes |
|
||||
My Slackware 14.0 has a /var/empty, with nothing in it. Perhaps none of the installed programs are configured to use it? You could create one if you need it. For chroot-ing I've also created /var/jails with subdirectories for dnscrypt-proxy, mail (sendmail) and named.
|
|
|||
Hmm, /dev/null?
|
|
||||
This link suggests that /var/empty is a part of most Linux systems too, albeit not defined in the FHS.
The Arch Linux filesystem package also includes /var/empty so it seems to be "supported". heir(7) in my Arch box notes: Code:
/var/tmp Like /tmp, this directory holds temporary files stored for an unspecified duration. EDIT: ha! Necrobump! Sorry... Last edited by Head_on_a_Stick; 5th June 2017 at 03:08 AM. Reason: excusing my reply to a semi-necrobump. |
|
||||
The thing with chroot-ing it to /var/tmp/ (or /tmp/) is that you don't know which files may be there, and that the chrooting program may accidentally expose information present in those directories, or even worse allow modification of those files!
With /var/empty/, I don't need to worry about any of that. At any rate, my eventual solution was to create an empty /var/program_name/ directory. I later added some support for file caching, so I had to do that in the long run anyway :-)
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
a strange package problem .. bash @name exists but plist empty | daemonfowl | OpenBSD Packages and Ports | 25 | 11th April 2012 02:06 AM |
Why does pkg_add sometimes report "packages is empty" ? | sw2wolf | OpenBSD Packages and Ports | 2 | 22nd March 2012 12:51 AM |
How do we verify if directory is empty? | sharris | FreeBSD General | 8 | 4th January 2012 03:37 PM |
Snapshot Packages Empty - part of commit? | IronForge | OpenBSD Packages and Ports | 3 | 16th September 2011 10:32 PM |
Other Another Linux Security Breach (this time at Linux Foundation) | vermaden | News | 0 | 12th September 2011 07:00 AM |