|
23 | 23 |
|
24 | 24 | describe 'IP V4 networking' do |
25 | 25 |
|
26 | | - # GIS: Req 3.21-1 |
| 26 | + |
27 | 27 | context linux_kernel_parameter('net.ipv4.ip_forward') do |
28 | 28 | its(:value) { should eq 0 } |
29 | 29 | end |
30 | 30 |
|
31 | | - # GIS: Req 3.21-1 |
| 31 | + |
32 | 32 | context linux_kernel_parameter('net.ipv4.conf.all.forwarding') do |
33 | 33 | its(:value) { should eq 0 } |
34 | 34 | end |
35 | 35 |
|
36 | | - # GIS: Req 3.21-3 |
| 36 | + |
37 | 37 | context linux_kernel_parameter('net.ipv4.conf.all.rp_filter') do |
38 | 38 | its(:value) { should eq 1 } |
39 | 39 | end |
40 | 40 |
|
41 | | - # GIS: Req 3.21-3 ; GIS: Req 3.37-10 |
| 41 | + |
42 | 42 | context linux_kernel_parameter('net.ipv4.conf.default.rp_filter') do |
43 | 43 | its(:value) { should eq 1 } |
44 | 44 | end |
45 | 45 |
|
46 | | - # GIS: Req 3.21-1 |
| 46 | + |
47 | 47 | context linux_kernel_parameter('net.ipv4.icmp_echo_ignore_broadcasts') do |
48 | 48 | its(:value) { should eq 1 } |
49 | 49 | end |
|
52 | 52 | its(:value) { should eq 1 } |
53 | 53 | end |
54 | 54 |
|
55 | | - # GIS: Req 3.01-9 |
| 55 | + |
56 | 56 | context linux_kernel_parameter('net.ipv4.icmp_ratelimit') do |
57 | 57 | its(:value) { should eq 100 } |
58 | 58 | end |
|
65 | 65 | its(:value) { should eq 0 } |
66 | 66 | end |
67 | 67 |
|
68 | | - # GIS: Req 3.21-3 |
| 68 | + |
69 | 69 | context linux_kernel_parameter('net.ipv4.conf.all.arp_ignore') do |
70 | 70 | its(:value) { should eq 1 } |
71 | 71 | end |
72 | 72 |
|
73 | | - # GIS: Req 3.21-3 |
| 73 | + |
74 | 74 | context linux_kernel_parameter('net.ipv4.conf.all.arp_announce') do |
75 | 75 | its(:value) { should eq 2 } |
76 | 76 | end |
|
91 | 91 | its(:value) { should eq 1 } |
92 | 92 | end |
93 | 93 |
|
94 | | - # GIS: Req 3.37-12 |
| 94 | + |
95 | 95 | context linux_kernel_parameter('net.ipv4.conf.all.accept_source_route') do |
96 | 96 | its(:value) { should eq 0 } |
97 | 97 | end |
98 | 98 |
|
99 | | - # GIS: Req 3.37-12 |
| 99 | + |
100 | 100 | context linux_kernel_parameter('net.ipv4.conf.default.accept_source_route') do |
101 | 101 | its(:value) { should eq 0 } |
102 | 102 | end |
|
138 | 138 | its(:value) { should eq 1 } |
139 | 139 | end |
140 | 140 |
|
141 | | - # GIS: Req 3.21-1 |
| 141 | + |
142 | 142 | context linux_kernel_parameter('net.ipv6.conf.all.forwarding') do |
143 | 143 | its(:value) { should eq 0 } |
144 | 144 | end |
|
202 | 202 |
|
203 | 203 | describe 'ExecShield' do |
204 | 204 |
|
205 | | - # GIS: Req 3.21-5 |
| 205 | + |
206 | 206 | # check if we find the nx flag |
207 | 207 | if command('cat /proc/cpuinfo').return_stdout?(/^flags.*?:.*? nx( .*?)?$/) |
208 | 208 | true |
|
217 | 217 | end |
218 | 218 | end |
219 | 219 |
|
220 | | - # GIS: Req 3.21-5 |
| 220 | + |
221 | 221 | context linux_kernel_parameter('kernel.randomize_va_space') do |
222 | 222 | its(:value) { should eq 2 } |
223 | 223 | end |
|
0 commit comments