Skip to content

Commit fd44bf5

Browse files
committed
Tighten permissions on classfile, resourcefile, lastrunfile, and lastrunreport.
1 parent 34b9c0b commit fd44bf5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/puppet/defaults.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -599,14 +599,14 @@ module Puppet
599599
:client_datadir => {:default => "$vardir/client_data", :mode => "750", :desc => "The directory in which serialized data is stored on the client."},
600600
:classfile => { :default => "$statedir/classes.txt",
601601
:owner => "root",
602-
:mode => 0644,
602+
:mode => 0640,
603603
:desc => "The file in which puppet agent stores a list of the classes
604604
associated with the retrieved configuration. Can be loaded in
605605
the separate `puppet` executable using the `--loadclasses`
606606
option."},
607607
:resourcefile => { :default => "$statedir/resources.txt",
608608
:owner => "root",
609-
:mode => 0644,
609+
:mode => 0640,
610610
:desc => "The file in which puppet agent stores a list of the resources
611611
associated with the retrieved configuration." },
612612
:puppetdlog => { :default => "$logdir/puppetd.log",
@@ -713,11 +713,11 @@ module Puppet
713713
"Whether to send reports after every transaction."
714714
],
715715
:lastrunfile => { :default => "$statedir/last_run_summary.yaml",
716-
:mode => 0644,
716+
:mode => 0640,
717717
:desc => "Where puppet agent stores the last run report summary in yaml format."
718718
},
719719
:lastrunreport => { :default => "$statedir/last_run_report.yaml",
720-
:mode => 0644,
720+
:mode => 0640,
721721
:desc => "Where puppet agent stores the last run report in yaml format."
722722
},
723723
:graph => [false, "Whether to create dot graph files for the different

0 commit comments

Comments
 (0)