Date: Mon, 21 Jul 2003 10:33:30 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Ian Dowse <iedowse@maths.tcd.ie> Cc: arch@freebsd.org Subject: Re: *statfs exposure of file system IDs to non-root users Message-ID: <3F1C23EA.7E06CDA9@mindspring.com> References: <200307201601.aa07561@salmon.maths.tcd.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
Ian Dowse wrote: > See previous posts here on the subject of unmounting by filesystem > ID. The filesystem ID is a way of unambiguously specifying which > file system is to be unmounted, whereas the mountpoint or device > node may not be unique. Yes, I'm aware of this facility for breaking sub-mounts. 8-). The implementation of mounts needs to change so that the mounts occur in the higher layers, rather than the lower, for the covered vnode. > The umount utility now passes a filesystem > ID to unmount(2), which works fine when run by root and when umount > is extracting an entry from the list obtained from getfsstat(2), > but it doesn't work as a normal user when the ID comes from statfs(2). Normal users should not be permitted to unmount /. 8-). -- Terry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F1C23EA.7E06CDA9>