Redstack do not default GUEST_LOGDIR to '/tmp'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
Medium
|
Petr Malik |
Bug Description
Redstack do not default GUEST_LOGDIR to '/tmp'
The Problem:
Redstack sets 'GUEST_LOGDIR' to the 'log_dir' value from
'etc/trove/
Temporary directory in Linux is a subject to the, so called,
'restricted deletion' policy which dictates that only file owners
(and the directory owner) can delete the files, irrespective of
other access modifiers on the directory.
Redstack changes the owner of 'GUEST_LOGDIR' (default='/tmp')
to the 'trove' user. This may easily mask any potential issues with
the 'restricted deletion' that would only show up later on
production systems where '/tmp' is commonly owned by the root.
The Solution:
Change the default value for 'GUEST_LOGDIR' to a directory
which is not subject to the 'restricted deletion'.
Changed in trove: | |
milestone: | none → kilo-3 |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | kilo-3 → 2015.1.0 |
Related fix proposed to branch: master /review. openstack. org/157972
Review: https:/