Bug 155795
| Summary: | Logwatch cron script wants to write to root_t | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ivan Gyurdiev <ivg231> |
| Component: | logwatch | Assignee: | Jiri Ryska <jryska> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | bl_fedora |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-06-02 01:16:59 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 136451 | ||
Why is logwatch writing files to /? This looks like a configuration problem. No idea...changing component to logwatch. What's the status of this bug?
Why does logwatch write to / ?
audit(1115366523.541:0): avc: denied { write } for name=/ dev=dm-0 ino=2
scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t
tclass=dir
audit(1115366523.541:0): avc: denied { add_name } for name=logwatch.WyrkQhyt
scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t
tclass=dir
audit(1115366523.541:0): avc: denied { create } for name=logwatch.WyrkQhyt
scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t
tclass=dir
audit(1115366523.743:0): avc: denied { create } for name=messages
scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t
tclass=file
audit(1115366523.746:0): avc: denied { ioctl } for
path=/logwatch.WyrkQhyt/messages dev=dm-0 ino=713869
scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t
tclass=file
audit(1115366523.946:0): avc: denied { write } for
path=/logwatch.WyrkQhyt/messages dev=dm-0 ino=713869
scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t
tclass=file
audit(1115366524.171:0): avc: denied { append } for
path=/logwatch.WyrkQhyt/http-archive dev=dm-0 ino=713913
scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t
tclass=file
audit(1115366524.428:0): avc: denied { read } for name=http-archive dev=dm-0
ino=713913 scontext=system_u:system_r:system_crond_t
tcontext=system_u:object_r:root_t tclass=file
audit(1115366528.183:0): avc: denied { remove_name } for name=samba dev=dm-0
ino=713916 scontext=system_u:system_r:system_crond_t
tcontext=system_u:object_r:root_t tclass=dir
audit(1115366528.183:0): avc: denied { unlink } for name=samba dev=dm-0
ino=713916 scontext=system_u:system_r:system_crond_t
tcontext=system_u:object_r:root_t tclass=file
audit(1115366528.185:0): avc: denied { rmdir } for name=logwatch.WyrkQhyt
dev=dm-0 ino=713868 scontext=system_u:system_r:system_crond_t
tcontext=system_u:object_r:root_t tclass=dir
I have two questions: 1) what says "rpm -q logwatch"? 2) what says "grep TmpDir /etc/log.d/conf/logwatch.conf"? logwatch-6.0.1-1 TmpDir = /tmp I think it should be fixed in logwatch-6.0.1-2. If you want to try my fixes they are temporarily available at http://people.redhat.com/jryska/logwatch-6.0.1-2.testing.noarch.rpm http://people.redhat.com/jryska/logwatch-6.0.1-2.testing.src.rpm This (and many other bugs) are fixed in the current upstream 6.1 release. Is it possible to roll that in? Haven't seen this in a while...could it be fixed? This is logwatch-6.0.1-2. Sorry that I didn't test it when you asked me to - lots of stuff to take care of, and I forget. Closing for now, may reopen if I see it again. |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Fedora/1.0.3-2 Firefox/1.0.3 Description of problem: audit(1114243323.340:0): avc: denied { add_name } for pid=2451 exe=/usr/bin/perl name=logwatch.SfBRaj06 scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t tclass=dir audit(1114243323.340:0): avc: denied { create } for pid=2451 exe=/usr/bin/perl name=logwatch.SfBRaj06 scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t tclass=dir audit(1114243323.632:0): avc: denied { ioctl } for pid=2464 exe=/usr/bin/perl path=/logwatch.SfBRaj06/messages dev=dm-0 ino=713902 scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t tclass=file audit(1114243323.761:0): avc: denied { write } for pid=2464 exe=/usr/bin/perl path=/logwatch.SfBRaj06/messages dev=dm-0 ino=713902 scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t tclass=file audit(1114243325.951:0): avc: denied { rmdir } for pid=2451 exe=/usr/bin/perl name=logwatch.SfBRaj06 dev=dm-0 ino=713872 scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:root_t tclass=dir Version-Release number of selected component (if applicable): selinux-policy-strict-1.23.12-1 How reproducible: Didn't try Steps to Reproduce: Additional info: