]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a new "untrusted" option to the mount command. Its purpose
authormckusick <mckusick@FreeBSD.org>
Mon, 1 Jul 2019 23:22:26 +0000 (23:22 +0000)
committermckusick <mckusick@FreeBSD.org>
Mon, 1 Jul 2019 23:22:26 +0000 (23:22 +0000)
commit0a1965101849028563c70a178db24504c33ddedf
tree787368cb031c50143d076b9228170ce8010f2a3d
parent0ee80ab0e2ff5b640bd9c05976f5db1853e5eb5e
Add a new "untrusted" option to the mount command. Its purpose
is to notify the kernel that the file system is untrusted and it
should use more extensive checks on the file-system's metadata
before using it. This option is intended to be used when mounting
file systems from untrusted media such as USB memory sticks or other
externally-provided media.

It will initially be used by the UFS/FFS file system, but should
likely be expanded to be used by other file systems that may appear
on external media like msdosfs, exfat, and ext2fs.

Reviewed by:  kib
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D20786
sbin/mount/mntopts.h
sbin/mount/mount.8
sbin/mount/mount.c
sys/sys/mount.h
sys/ufs/ffs/ffs_vfsops.c