-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroot_path_no_dot.oval
49 lines (41 loc) · 947 Bytes
/
root_path_no_dot.oval
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
documentation_complete: true
title: Ensure that No Dangerous Directories Exist in Root's Path
primary_id: root_path_no_dot
check_type: compliance
family: unix
version: 1
platforms:
- Red Hat Enterprise Linux 7
- multi_platform_fedora
description: |
The environment variable PATH should be set correctly for the root user.
operation:
- and: begins_colon_period, begins_doublecolon
test:
- id: begins_colon_period
- type: environmentvariable
- comment:
- check: none satisfy
state:
- comment:
- regex: ^[:\.]
- operation: match
object:
- type: environmentvariable
- id: root_path_no_dot
- map_to: begins_colon_period, begins_doublecolon
- comment:
- pid: nil
type: int
- name: PATH
test:
- id: begins_doublecolon
- type: environmentvariable
- comment:
- check: none satisfy
state:
- type: environmentvariable
- comment:
- regex: ::
- operation: match