Mount filesystems without executable permissions since they should never

be used.

Reviewed by:	cem
MFC after:	1 week
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D8513
This commit is contained in:
Brooks Davis 2016-12-14 21:13:10 +00:00
parent bdad1bcea4
commit 9dad1250d7

View File

@ -251,7 +251,7 @@ main(int argc, char *argv[])
free(mntpath);
continue;
}
if (mount(fstype, mntpt, MNT_RDONLY,
if (mount(fstype, mntpt, MNT_RDONLY|MNT_NOEXEC,
&mdev) != 0) {
xo_warn("%s", *argv);
rv = 1;