Add strip to protected_* methods
parent
bf8c62f27c
commit
d91ef7c9dc
|
@ -277,7 +277,7 @@ module System
|
|||
# @return [Boolean]
|
||||
#
|
||||
def protected_hardlinks?
|
||||
read_file('/proc/sys/fs/protected_hardlinks').to_s.eql? '1'
|
||||
read_file('/proc/sys/fs/protected_hardlinks').to_s.strip.eql? '1'
|
||||
rescue
|
||||
raise 'Could not determine protected_hardlinks status'
|
||||
end
|
||||
|
@ -287,7 +287,7 @@ module System
|
|||
# @return [Boolean]
|
||||
#
|
||||
def protected_symlinks?
|
||||
read_file('/proc/sys/fs/protected_symlinks').to_s.eql? '1'
|
||||
read_file('/proc/sys/fs/protected_symlinks').to_s.strip.eql? '1'
|
||||
rescue
|
||||
raise 'Could not determine protected_symlinks status'
|
||||
end
|
||||
|
@ -318,4 +318,4 @@ module System
|
|||
end # System
|
||||
end # Linux
|
||||
end # Post
|
||||
end # Msf
|
||||
end # Msf
|
||||
|
|
Loading…
Reference in New Issue