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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310090

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;