File tree Expand file tree Collapse file tree 4 files changed +7
-27
lines changed Expand file tree Collapse file tree 4 files changed +7
-27
lines changed Original file line number Diff line number Diff line change @@ -25,24 +25,3 @@ namespace :test do
2525 pp profile . check
2626 end
2727end
28-
29- task :changelog do
30- # Automatically generate a changelog for this project. Only loaded if
31- # the necessary gem is installed. By default its picking up the version from
32- # inspec.yml. You can override that behavior with `rake changelog to=1.2.0`
33-
34- require 'yaml'
35- metadata = YAML . load_file ( 'inspec.yml' )
36- v = ENV [ 'to' ] || metadata [ 'version' ]
37- puts " * Generating changelog for version #{ v } "
38- require 'github_changelog_generator/task'
39- GitHubChangelogGenerator ::RakeTask . new :changelog do |config |
40- config . future_release = v
41- config . user = 'dev-sec'
42- config . project = 'linux-baseline'
43- end
44- Rake ::Task [ :changelog ] . execute
45- rescue LoadError
46- puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
47-
48- end
Original file line number Diff line number Diff line change 1919# author: Dominik Richter
2020# author: Patrick Muench
2121
22- login_defs_umask = attribute ( 'login_defs_umask' , value : os . redhat? ? '077' : '027' , description : 'Default umask to set in login.defs' )
22+ login_defs_umask = input ( 'login_defs_umask' , value : os . redhat? ? '077' : '027' , description : 'Default umask to set in login.defs' )
2323
24- login_defs_passmaxdays = attribute ( 'login_defs_passmaxdays' , value : '60' , description : 'Default password maxdays to set in login.defs' )
25- login_defs_passmindays = attribute ( 'login_defs_passmindays' , value : '7' , description : 'Default password mindays to set in login.defs' )
26- login_defs_passwarnage = attribute ( 'login_defs_passwarnage' , value : '7' , description : 'Default password warnage (days) to set in login.defs' )
24+ login_defs_passmaxdays = input ( 'login_defs_passmaxdays' , value : '60' , description : 'Default password maxdays to set in login.defs' )
25+ login_defs_passmindays = input ( 'login_defs_passmindays' , value : '7' , description : 'Default password mindays to set in login.defs' )
26+ login_defs_passwarnage = input ( 'login_defs_passwarnage' , value : '7' , description : 'Default password warnage (days) to set in login.defs' )
2727
2828shadow_group = 'root'
2929shadow_group = 'shadow' if os . debian? || os . suse? || os . name == 'alpine'
Original file line number Diff line number Diff line change 1919# author: Dominik Richter
2020# author: Patrick Muench
2121
22- sysctl_forwarding = attribute ( 'sysctl_forwarding' , value : false , description : 'Is network forwarding needed?' )
23- kernel_modules_disabled = attribute ( 'kernel_modules_disabled' , value : 0 , description : 'Should loading of kernel modules be disabled?' )
22+ sysctl_forwarding = input ( 'sysctl_forwarding' , value : false , description : 'Is network forwarding needed?' )
23+ kernel_modules_disabled = input ( 'kernel_modules_disabled' , value : 0 , description : 'Should loading of kernel modules be disabled?' )
2424container_execution = begin
2525 virtualization . role == 'guest' && virtualization . system =~ /^(lxc|docker)$/
2626rescue NoMethodError
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ copyright: DevSec Hardening Framework Team
66copyright_email :
[email protected] 77license : Apache-2.0
88summary : Test suite for best practice Linux OS hardening
9+ inspec_version : ' >= 4.6.3'
910version : 2.8.1
1011supports :
1112 - os-family : linux
You can’t perform that action at this time.
0 commit comments