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:
parent
bdad1bcea4
commit
9dad1250d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310090
@ -251,7 +251,7 @@ main(int argc, char *argv[])
|
|||||||
free(mntpath);
|
free(mntpath);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (mount(fstype, mntpt, MNT_RDONLY,
|
if (mount(fstype, mntpt, MNT_RDONLY|MNT_NOEXEC,
|
||||||
&mdev) != 0) {
|
&mdev) != 0) {
|
||||||
xo_warn("%s", *argv);
|
xo_warn("%s", *argv);
|
||||||
rv = 1;
|
rv = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user