Skip to content

Commit

Permalink
Merge pull request #69 from arronax/bugfix/626_script_fix
Browse files Browse the repository at this point in the history
Fix missing environment in 6.2.6
  • Loading branch information
chandanchowdhury authored Sep 4, 2019
2 parents 507b43b + c7263d5 commit 3c33a4c
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 5 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 Mikael Sandström ([email protected], http://oravirt.wordpress.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ The following tests have been flagged but are not yet implemented:
License
-------

BSD.
MIT.

Author Information
------------------
Expand Down
6 changes: 3 additions & 3 deletions tasks/level-1/6.1.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
creates: /tmp/test.out
tags:
- level-1
- section-5
- "5.3.2"
- scored
- section-6
- "6.1.1"
- not-scored
25 changes: 24 additions & 1 deletion tasks/level-1/6.2.6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@

# 6.2.6 Ensure root PATH Integrity

- name: 6.2.6 - Audit root PATH Integrity - Copy script
copy:
src: "{{ role_path }}/files/audit_6.2.6.sh"
dest: /tmp/audit_6.2.6.sh
mode: 0700
changed_when: False
tags:
- level-1
- section-6
- "6.2.6"
- scored

- name: 6.2.6 - Audit root PATH Integrity
script: "{{ role_path }}/files/audit_6.2.6.sh"
command: bash -l /tmp/audit_6.2.6.sh
check_mode: no
changed_when: False
register: audit_6_2_6
Expand Down Expand Up @@ -37,3 +49,14 @@
- section-6
- "6.2.6"
- scored

- name: 6.2.6 - Audit root PATH Integrity - Remove script
file:
path: /tmp/audit_6.2.6.sh
state: absent
changed_when: False
tags:
- level-1
- section-6
- "6.2.6"
- scored

0 comments on commit 3c33a4c

Please sign in to comment.