diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-04-19 13:53:55 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-04-19 15:54:10 +0200 |
commit | 9bf7cb0b7415857a4ee73676f986012a419a17b8 (patch) | |
tree | 0fcf8a1cfe9fdc222116c746c76216c0d2f085f1 /tools | |
parent | Merge pull request #11012 from anlancs/bgpd-mh-simplify-condition (diff) | |
download | frr-9bf7cb0b7415857a4ee73676f986012a419a17b8.tar.xz frr-9bf7cb0b7415857a4ee73676f986012a419a17b8.zip |
packaging: Set default permissions for /var/log/frr to 0755
At the moment we set /var/log/frr permissions to 0750 (frr:frr), but the log
file is 0640 (root:adm) (unless logrotated) and that doesn't allow adm group
to even open the directory.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/frr-reload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py index 2b76c43f7..4f30f7fbd 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -1752,7 +1752,7 @@ if __name__ == "__main__": elif args.reload: if not os.path.isdir("/var/log/frr/"): - os.makedirs("/var/log/frr/") + os.makedirs("/var/log/frr/", mode=0o0755) logging.basicConfig( filename="/var/log/frr/frr-reload.log", |