Bug 149270
Summary: | logrotate is messing up with noexec mounted /tmp | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michal Jaegermann <michal> | ||||
Component: | logrotate | Assignee: | Peter Vrabec <pvrabec> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3 | CC: | kclair | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-02-22 13:20:35 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Michal Jaegermann
2005-02-21 20:06:14 UTC
Created attachment 111293 [details]
Check this.
I hope it will work fine. Logrotate does not use tmpfile in /tmp to run script.
What I see in a code indeed it looks that it will work. There is one more nit, though. Both the current and the previous code (it was writing "#!/bin/sh\n\n" at the top of a temporary file) presume that all logrorate scripts would have to comprise from a valid sh code (well, bash in practical terms). I do not see that explicitely documented anywhere. A trivial "one liner" shell wrapper really allows to use there anything which will execute but one should not dig through sorces to reach that conclusion. "Luckily TMPDIR seems to work but AFAICS this is not mentioned in a documentation either." How exactly would I use TMPDIR to get around this problem? I tried defining it in the shell script that runs logrotate, but that didn't help. export TMPDIR=/var/tmp as the second line in /etc/cron.daily/logrotate should do assuming that a version of /usr/sbin/logrotate pays attention to that variable. Worksforme. 3.7.1-5.RHEL4, with last changelog entries from 2005-07-13, is broken in the same way as 3.7.1-2 |