[RFC] mountd(8) patch to prevent flag removal
Rink Springer
rink at FreeBSD.org
Mon Oct 2 00:46:42 PDT 2006
Hi,
At work, we recently moved our local webserver storage (which was plain UFS
along with the SUIDDIR mount option) to a separate NFS server. However, upon
NFS-exporting the filesystem from the NFS server (where it was mounted using -o
suiddir as well), this flag would vanish.
It turns out that this is due to a refactoring in mountd(8). I initially mailed
Craig Rodrigues about this, who did the refactoring, but I haven't received any
reply.
The problem is introduced in usr.sbin/mountd/mountd.c revision 1.81.2.2;
it uses nmount(2) with a flags argument of 0 to remount the filesystem.
Unfortunately, this means any specific mount-flags are removed from the
filesystem.
The patch to fix this is at http://rink.nu/tmp/mountd.c.diff; which I'd like
to commit to -HEAD and MFC later on. Would anyone be so kind to review this?
Thanks,
--
Rink P.W. Springer - http://rink.nu
"When will the internet move from 64Kb max .com domains to .exe
domains which can use much more memory?" - Edwin Groothuis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20061002/044ffbb2/attachment.pgp
More information about the freebsd-arch
mailing list