On 10/9/18 2:03 PM, Stuart Henderson wrote: > On 2018-10-09, <r...@tutanota.com> <r...@tutanota.com> wrote: >> Solene Rapenne wrote: >>> hello, >> >>> if you don't put any /tmp in fstab, /tmp comes from the / partition, which >>> doesn't have nodev and nosuid mount options, and which is very tiny. >> >>> tmpfs has been disabled: see >>> https://marc.info/?l=openbsd-tech&m=148173068424515&w=2 >>> <https://marc.info/?l=openbsd-tech&m=148173068424515&w=2> >> >>> main difference between mfs and tmpfs. mfs is a ffs mounted from memory and >>> will use the memory reserved for it, while tmpfs will use memory only when >>> it's >>> really used. If you give 500 MB to mfs, it will be instantly used in your >>> memory, even if you have 0 file in it. >> >>> I don't know for chromium. >> >> Thank you for your reply, this resolves my first two problems. >> I have two follow-up questions: >> >> 1) Regarding mfs, using an fstab entry as in the example in fstab(5), i.e., >> swap /tmp mfs rw,nodev,nosuid,-s=153600 0 0, gives me a /tmp with write >> permissions for root only (as opposed to mounting UID.d, where every >> user can write on /tmp). Looking up newfs(8), I don't see a way to set >> permissions, hence I have done this using a chmod command in rc.local. >> Is there a better way to set the right permissions for a mfs /tmp? > > This one is easy, simply set the appropriate permissions on the > directory where you mount the mfs. > > > > >> 2) "tmpfs has been disabled": Would it make sense to write to the developer >> mailing list and suggest to either drop it (as I understand it, OpenBSD >> has a policy of dropping unsupported/unmaintained features) or at least > > It's not included in the GENERIC kernel configuration but isn't > otherwise disabled. Actually removing code from the tree would make > it harder if anyone wants to fix it .. > >> to mention that tmpfs has been disabled in mount_tmpfs(8)? > > Perhaps. Though I think in general with the mount_* manuals it's > assumed that the relevant support is compiled into the kernel for them > to work .. > > So what about unlinking the tool from the build? Probably not until after release though.
This probably should probably be done in the rd as well, but I'm not familiar enough with that part of the tree to include it in this quick diff. martijn@ Index: Makefile =================================================================== RCS file: /cvs/src/sbin/Makefile,v retrieving revision 1.106 diff -u -p -r1.106 Makefile --- Makefile 3 Jun 2017 10:00:29 -0000 1.106 +++ Makefile 9 Oct 2018 12:13:30 -0000 @@ -4,7 +4,7 @@ SUBDIR= atactl badsect bioctl clri dhcli disklabel dmesg dump dumpfs fdisk fsck fsck_ext2fs fsck_ffs \ fsck_msdos fsdb fsirand growfs ifconfig iked init ipsecctl \ isakmpd kbd ldattach mknod mount \ - mount_cd9660 mount_ext2fs mount_ffs mount_msdos \ + mount_cd9660 mount_ffs mount_msdos \ mount_nfs mount_ntfs mount_tmpfs mount_udf \ mount_vnd mountd ncheck_ffs newfs newfs_ext2fs newfs_msdos \ nfsd nologin pdisk pfctl pflogd ping quotacheck \