diff --git a/options.go b/options.go index 65ce8a54..ae185cd1 100644 --- a/options.go +++ b/options.go @@ -188,6 +188,15 @@ func AllowSUID() MountOption { } } +// NoExec disable the execution of binaries on the file system + +func NoExec() MountOption { + return func(conf *mountConfig) error { + conf.options["noexec"] = "" + return nil + } +} + // DefaultPermissions makes the kernel enforce access control based on // the file mode (as in chmod). //