Skip to content

Commit a10440e

Browse files
authored
Merge pull request cfengine#5131 from nickanderson/ENT-8447/master
ENT-8447: Changed the default mode for directories from 755 to 700
2 parents 5289354 + d3289be commit a10440e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

libpromises/cf3.defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ struct GidList_
339339
#define CF_NOINT -678L
340340
#define CF_UNDEFINED_ITEM (void *)0x1234
341341

342-
#define DEFAULTMODE ((mode_t)0755)
342+
#define DEFAULTMODE ((mode_t)0700)
343343

344344
#define CF_DONEPASSES 4
345345

tests/acceptance/29_simulate_mode/diff_mode.cf.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ foobar
3434
===========================================================================
3535
'WORKDIR/tmp/SUBDIR' is a directory
3636
Size: SIZE
37-
Access: (0755/rwxr-xr-x) Uid: (0/root) Gid: (0/root)
37+
Access: (0700/rwx------) Uid: (0/root) Gid: (0/root)
3838
Access: TIMESTAMP
3939
Modify: TIMESTAMP
4040
Change: TIMESTAMP

tests/acceptance/29_simulate_mode/manifest_full_mode.cf.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ foobar
3434
===========================================================================
3535
'WORKDIR/tmp/SUBDIR' is a directory
3636
Size: SIZE
37-
Access: (0755/rwxr-xr-x) Uid: (0/root) Gid: (0/root)
37+
Access: (0700/rwx------) Uid: (0/root) Gid: (0/root)
3838
Access: TIMESTAMP
3939
Modify: TIMESTAMP
4040
Change: TIMESTAMP
@@ -58,7 +58,7 @@ These are my source file contents.
5858
===========================================================================
5959
'WORKDIR/tmp/sub-dir/.' is a directory
6060
Size: SIZE
61-
Access: (0755/rwxr-xr-x) Uid: (0/root) Gid: (0/root)
61+
Access: (0700/rwx------) Uid: (0/root) Gid: (0/root)
6262
Access: TIMESTAMP
6363
Modify: TIMESTAMP
6464
Change: TIMESTAMP

tests/acceptance/29_simulate_mode/manifest_mode.cf.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ foobar
3434
===========================================================================
3535
'WORKDIR/tmp/SUBDIR' is a directory
3636
Size: SIZE
37-
Access: (0755/rwxr-xr-x) Uid: (0/root) Gid: (0/root)
37+
Access: (0700/rwx------) Uid: (0/root) Gid: (0/root)
3838
Access: TIMESTAMP
3939
Modify: TIMESTAMP
4040
Change: TIMESTAMP
@@ -58,7 +58,7 @@ These are my source file contents.
5858
===========================================================================
5959
'WORKDIR/tmp/sub-dir/.' is a directory
6060
Size: SIZE
61-
Access: (0755/rwxr-xr-x) Uid: (0/root) Gid: (0/root)
61+
Access: (0700/rwx------) Uid: (0/root) Gid: (0/root)
6262
Access: TIMESTAMP
6363
Modify: TIMESTAMP
6464
Change: TIMESTAMP

0 commit comments

Comments
 (0)