rsyslog $WorkDirectory should be explicitly set
Bug #918947 reported by
Jamie Strandboge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rsyslog (Debian) |
Fix Released
|
Unknown
|
|||
rsyslog (Ubuntu) |
Fix Released
|
Medium
|
Jamie Strandboge | ||
Precise |
Fix Released
|
Medium
|
Jamie Strandboge |
Bug Description
In testing the imfile functionality, I learned that when $WorkDirectory is not explicitly set, it defaults to '/'. This means that state files (and presumably other files) are written directly in /. This violates the FHS and is generally weird.
Granted, it appears that at least with imfile, the file is created then unlinked while keeping the fd open, I am not sure of the other uses of WorkDirectory. At a minimum, setting WorkDirectory allows us to adjust the AppArmor profile to have a reliable location.
Upstream documentation uses /var/spool/rsyslog, which seems like a sane default. Patch to achieve this is forthcoming.
Changed in rsyslog (Ubuntu): | |
assignee: | nobody → Jamie Strandboge (jdstrand) |
importance: | Undecided → Medium |
milestone: | none → ubuntu-12.04-beta-1 |
status: | New → Triaged |
description: | updated |
tags: | added: patch |
no longer affects: | rsyslog |
Changed in rsyslog (Debian): | |
status: | Unknown → New |
Changed in rsyslog (Ubuntu): | |
milestone: | ubuntu-12.04-beta-1 → ubuntu-12.04-beta-2 |
Changed in rsyslog (Ubuntu Precise): | |
status: | Triaged → In Progress |
Changed in rsyslog (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
Attached is a patch that achieves this. I want to get input from Debian before uploading however, so please do not upload yet.