* rewrite user home dir hardening * delete duplicate var that was missed in a merge conflict Signed-off-by: Sebastian Gumprich <[email protected]> * linting Signed-off-by: Sebastian Gumprich <[email protected]> * add tests for home rewrites Signed-off-by: Sebastian Gumprich <[email protected]> * Apply suggestions from code review Co-authored-by: schurzi <[email protected]> --------- Signed-off-by: Sebastian Gumprich <[email protected]> Co-authored-by: donestefan <[email protected]> Co-authored-by: Sebastian Gumprich <[email protected]> Co-authored-by: Sebastian Gumprich <[email protected]> Co-authored-by: schurzi <[email protected]>
11 lines
264 B
YAML
11 lines
264 B
YAML
---
|
|
- name: Get properties of user user_with_777_home's home-folder
|
|
ansible.builtin.stat:
|
|
path: /home/user_with_777_home
|
|
register: stats
|
|
|
|
- name: Check that the home-folder has mode 777
|
|
ansible.builtin.assert:
|
|
that:
|
|
- stats.stat.mode == "0777"
|