mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
bugfix: set default path for limits.conf
This commit is contained in:
parent
158e4ac1ab
commit
0d7d01efbd
1 changed files with 8 additions and 2 deletions
|
@ -4,11 +4,17 @@
|
|||
|
||||
require 'utils/simpleconfig'
|
||||
|
||||
# Usage:
|
||||
#
|
||||
# describe limits_conf do
|
||||
# its('*') { should include ['hard','core','0'] }
|
||||
# end
|
||||
|
||||
class LimitsConf < Vulcano.resource(1)
|
||||
name 'limits_conf'
|
||||
|
||||
def initialize(path)
|
||||
@conf_path = path
|
||||
def initialize(path = nil)
|
||||
@conf_path = path || '/etc/security/limits.conf'
|
||||
@files_contents = {}
|
||||
@content = nil
|
||||
@params = nil
|
||||
|
|
Loading…
Reference in a new issue