-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frr.conf won't retain permissions on write #14817
Comments
Yes, it's expected and normal. This is regulated by |
Looking deeper, I see we set 0640 for Debian-based, but not setting for RHEL-based. |
Yes it looks like this confirms
|
Raised a fix here #14821. |
I don't think changing it either direction is a real fix here, the only "reasonable" improvement I can see is to retain permissions (and owner group, but probably not owner user) from the previous file. (This doesn't happen automatically because the old config is renamed away to create the backup, and the new config is a "fresh" file. We could also create a new file for the backup — where the permissions don't matter as much — and then overwrite the existing file for "current" config, this would have the advantage of fully keeping all properties of the file, e.g. possible extra things like ACL.) |
Retaining permissions and ownership would be the most reasonable as that the usual behaviour of other software i am working with. It's basically replacing contents in place. |
This issue is stale because it has been open 180 days with no activity. Comment or remove the |
This issue will be automatically closed in the specified period unless there is further activity. |
Description
Whenever doing
write integrated
(or justwrite
whenservice integrated-vtysh-config
is there), frr changes permissions to 600 for /etc/frr/frr.conf. No matter what they were before.Versions
FRR version - 7.5.4
OS - CentOS 8.5.2111
Kernel - 4.18.0-348.7.1.el8_5.x86_64
How to reproduce
Expected result would be to have still 640 on /etc/frr/frr.conf or at least have a configurable permissions (and group). We use this file for oxidized copy so even if oxidized is member of group frr it will still fail.
The text was updated successfully, but these errors were encountered: