RFC (fwd) Re: 5.3 tmpfs mount permissions

Giorgos Keramidas keramida at ceid.upatras.gr
Mon Nov 8 03:48:42 PST 2004


On 2004-11-08 12:01, "Simon L. Nielsen" <simon at freebsd.org> wrote:
> On 2004.11.08 12:51:20 +0200, Giorgos Keramidas wrote:
> > On 2004-11-08 02:50, Giorgos Keramidas <keramida at freebsd.org> wrote:
> > > Hi,
> > >
> > > Does the change outlined below seem like something I should commit?
> >
> > The patch posted previously had a few obvious bugs.  Here's an updated
> > version, which I have tested too :-)
>
> For consistency shouldn't the same be done for a /var MFS?

You're probably right.  I saw varmfs near tmpfs in the rc.conf.5 manpage
and thought about adding varoptions="" to rc.conf too.  It's not very
difficult, now that I found out how to do it for tmpfs.

> Other than that it looks really good to me (though I haven't tested it
> and cannot provide a src/ rubber approval stamp :-) ).

I tested it on my personal workstation at work.  It seemed to work as
expected with a 20m mfs /tmp.

    orion# mount
    /dev/ad0s1a on / (ufs, local)
    devfs on /dev (devfs, local)
    /dev/ad0s4g on /home (ufs, NFS exported, local, soft-updates)
    /dev/ad0s4f on /usr (ufs, local, soft-updates)
    /dev/ad0s4e on /var (ufs, local, soft-updates)
    /dev/md1 on /tmp (ufs, local, nodev, noexec, nosuid, soft-updates)
    orion#



More information about the freebsd-rc mailing list