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
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user