Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2005 14:38:58 +0200
From:      Andriy Gapon <avg@icyb.net.ua>
To:        freebsd-security@freebsd.org, freebsd-fs@freebsd.org
Subject:   mount -u -r drops nosuid ?
Message-ID:  <4381BFE2.80106@icyb.net.ua>

next in thread | raw e-mail | index | archive | help

Not sure if this is a bug or a feature, but it seems like potential
security risk: I have a ufs fs mounted rw+nosuid, then I needed to
downgrade it to ro, so I executed mount -u -r on it - imagine my surpise
when I found that nosuid flag was removed as well. I know I could have
used mount -u -r -o nosuid, but the present behavior seems to be
non-obvious (update one flag, orthogonal flags dropped as well) and
dangerously so.

System is 5.4-RELEASE-p3 i386

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4381BFE2.80106>