[checks] Add a check for too restrictive umask
If umask is set to something too high (>0022), a warning will be printed. It does not abort the compose though. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
69316d827a
commit
490514e263
3 changed files with 42 additions and 0 deletions
|
|
@ -172,6 +172,7 @@ def main():
|
|||
import pungi.checks
|
||||
if not pungi.checks.check(conf):
|
||||
sys.exit(1)
|
||||
pungi.checks.check_umask(logger)
|
||||
|
||||
if opts.target_dir:
|
||||
compose_dir = Compose.get_compose_dir(opts.target_dir, conf, compose_type=compose_type, compose_label=opts.label)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue