cvs commit: src/sbin/umount umount.c

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Nov 18 23:20:41 PST 2003


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.


More information about the freebsd-current mailing list