Re: cvs commit: src/sbin/umount umount.c

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Wed, 19 Nov 2003 08:20:34 +0100
In message <200311182253.aa25788_at_salmon.maths.tcd.ie>, Ian Dowse writes:

>I was planning to return a filesystem ID of {st_dev, 0} to non-root
>users,

Please notice that st_dev is not constant across reboots.

Suggest you hash the real fsid and use the hash instead.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Tue Nov 18 2003 - 22:20:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:29 UTC