Add docs to nosuid?
parent
6e6bc9bc6b
commit
0a79c5a15b
|
@ -252,6 +252,10 @@ module System
|
||||||
raise 'Unable to check for noexec volume'
|
raise 'Unable to check for noexec volume'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# Checks if `mount_path` is mounted with nosuid
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
def nosuid?(mount_path)
|
def nosuid?(mount_path)
|
||||||
cmd_exec("mount | grep --color=never ' #{mount_path} '").to_s.include? 'nosuid'
|
cmd_exec("mount | grep --color=never ' #{mount_path} '").to_s.include? 'nosuid'
|
||||||
rescue
|
rescue
|
||||||
|
|
Loading…
Reference in New Issue