|
Bugzilla – Full Text Bug Listing |
| Summary: | systemd: /var/log/journal/ setgid directory uses systemd-tmpfiles but is also listed in permissions profiles | ||
|---|---|---|---|
| Product: | [Novell Products] SUSE Security Incidents | Reporter: | Matthias Gerstner <matthias.gerstner> |
| Component: | Incidents | Assignee: | Matthias Gerstner <matthias.gerstner> |
| Status: | RESOLVED FIXED | QA Contact: | Security Team bot <security-team> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | fbui, security-team, wolfgang.frisch |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| URL: | https://smash.suse.de/issue/260833/ | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Bug Depends on: | |||
| Bug Blocks: | 1172227 | ||
|
Description
Matthias Gerstner
2020-06-05 08:18:36 UTC
I don't know how Base:System/permissions package is used or what it is supposed to protect from but it looks like tmpfiles is a nice way to bypass it, no ? (In reply to fbui@suse.com from comment #1) > I don't know how Base:System/permissions package is used or what it is > supposed to protect from but it looks like tmpfiles is a nice way to bypass > it, no ? The permissions package is a SUSE specific framework that handles different file permission profiles. So the user can select from an "easy to use" down to "paranoid security" profile. See the config files /etc/permissions.* in regular SUSE installations. Also coupled to this package is - a bit unfortunate - a whitelisting mechanism to restrict packages from shipping privileged binaries or directories that are sensitive to security issues. And yes, systemd-tmpfiles are a nice and easy way to bypass it. The permissions package is age old and wasn't kept in a clean state for years. That is exactly why the security team is currently in the process of tracking down inconsistencies. Once we're done with the cleanup we also plan to monitor and further restrict packages to avoid such situations in the first place. In case of /var/log/journal directory the permissions are fixed and well defined, regardless of the security profile. If set differently, that would be a bug. (In reply to fbui@suse.com from comment #3) > If set differently, that would be a bug. Which is why we are in this bug, talking about it ;-) Somebody in the past obviously thought it might be a good idea to manage this directory via the permissions package. So in the Factory package of systemd this is already addressed. The permission profiles are also cleaned up. There should be no need to fix this in older codestreams, since the danger of breaking things is small (only in the paranoid permissions profile, which breaks a lot more than just systemd). I keep the bug open until I can verify that our permissions linter no longer complains about this. Okay our linter is no longer complaining. I'm closing this bug as fixed. |