mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #9063 from cachedout/#6764
Wrap highstate.cache.p in restrictive umask.
This commit is contained in:
commit
01387050f5
@ -2407,12 +2407,14 @@ class BaseHighState(object):
|
||||
return err
|
||||
if not high:
|
||||
return ret
|
||||
cumask = os.umask(191)
|
||||
with salt.utils.fopen(cfn, 'w+') as fp_:
|
||||
try:
|
||||
self.serial.dump(high, fp_)
|
||||
except TypeError:
|
||||
# Can't serialize pydsl
|
||||
pass
|
||||
os.umask(cumask)
|
||||
return self.state.call_high(high)
|
||||
|
||||
def compile_highstate(self):
|
||||
|
Loading…
Reference in New Issue
Block a user