Skip to content

Commit 3c58815

Browse files
author
Abhishek Shukla
authored
Merge pull request #471 from delphix/dlpx/pr/abhi2196/6159e258-ce19-407b-9e66-78d204788306
DLPX-87205 CIS: default umask
2 parents 132ae49 + 01257e6 commit 3c58815

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
umask 027

files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -679,4 +679,15 @@
679679
block: |
680680
. /etc/bash_completion.d/systemctl
681681
. /etc/bash_completion.d/zfs
682-
PATH=$PATH:/opt/delphix/server/bin
682+
PATH=$PATH:/opt/delphix/server/bin
683+
684+
#
685+
# CIS: Set default umask (DLPX-87205)
686+
# We need to set default umask as 027 in the /etc/bash.bashrc file,
687+
# so that the same can be applied for all the users on the engine.
688+
#
689+
- blockinfile:
690+
path: /etc/bash.bashrc
691+
block: |
692+
# Set default umask value.
693+
umask 027

0 commit comments

Comments
 (0)