Bug 194473

Summary: prelink cannot append to prelink.log file
Product: [Fedora] Fedora Reporter: Mike <spambox>
Component: prelinkAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: dwalsh, jturner
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 0.3.8-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-06-21 10:59:52 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:

Description Mike 2006-06-08 12:59:19 UTC
Description of problem:

Jun  8 04:02:15 xxx kernel: audit(1149732135.028:4): avc:  denied  { append }
for  pid=2639 comm="prelink" name="prelink.log" dev=hda1 ino=458825
scontext=user_u:system_r:prelink_t:s0 tcontext=user_u:object_r:var_log_t:s0
tclass=file
Jun  8 04:02:15 xxx kernel: audit(1149732135.028:5): avc:  denied  { append }
for  pid=2639 comm="prelink" name="prelink.log" dev=hda1 ino=458825
scontext=user_u:system_r:prelink_t:s0 tcontext=user_u:object_r:var_log_t:s0
tclass=file

Version-Release number of selected component (if applicable):

clean/fresh/minimal/yesterday install with all updates

How reproducible:

leave system for night ;)

Actual results:

# getfattr -d -h -m. /var/log/prelink.log
getfattr: Removing leading '/' from absolute path names
# file: var/log/prelink.log
security.selinux="user_u:object_r:var_log_t:s0\000"

Expected results:

# getfattr -d -h -m. /var/log/prelink.log
getfattr: Removing leading '/' from absolute path names
# file: var/log/prelink.log
security.selinux="system_u:object_r:prelink_log_t:s0\000"

Additional info:

I don't know why this file have wrong context.
`restorecon /var/log/prelink.log` helps but real problem is cause of this.

Comment 1 Daniel Walsh 2006-06-16 01:50:37 UTC
We need to move prelink to its own directory /var/log/prelink/prelink.log

Comment 2 Jakub Jelinek 2006-06-21 10:59:52 UTC
Should be fixed by prelink-0.3.8-1 in dist-fc6.

Comment 3 Jakub Jelinek 2006-07-12 09:31:41 UTC
*** Bug 198523 has been marked as a duplicate of this bug. ***

Comment 4 Jakub Jelinek 2006-08-08 10:24:52 UTC
*** Bug 181783 has been marked as a duplicate of this bug. ***