tuned icon indicating copy to clipboard operation
tuned copied to clipboard

Create log file directory not world readable

Open watologo1 opened this issue 5 years ago • 3 comments

If tuned creates /var/log/tuned permissions are now 750 instead of 755

CC: Matthias Gerstner [email protected]

watologo1 avatar May 29 '19 14:05 watologo1

I'm still missing a justification why the directory should not be world-readable. This will hurt user experience, so it needs to be well justified.

olysonek avatar May 29 '19 14:05 olysonek

I tried to find a hint on FHS (Filesystem Hierarchy Standard), but I couldn't find a hint about permissions for this directory. IMO it makes a lot of sense to remove the world readable/access bits on systemd service logfiles. Matthias Gerstner who suggested this, arguemented (I'll add him):

We try to harden our distributions with regards to log file permissions. In short, we want to avoid world readable log files, because they might at some point contain sensitive data that could facilitate other types of attacks.

watologo1 avatar May 29 '19 14:05 watologo1

Basically this is a hardening measure we're currently following up in SUSE distributions. Trigger for this was an older security finding, where passwords got exposed in log files.

I don't know whether Fedora/Red Hat products by know implement the suggested "secure by default config and log file permissions" policy refered to in above post. Maybe it's something not for upstream but only for distro adjustment. In the latter case it would help if the used permissions could be a compiler or config file setting that can easily be adjusted in packaging.

mgerstner avatar May 31 '19 07:05 mgerstner