Bug 238068 - /var/log/pm-suspend.log keeps getting the wrong selinux context
Summary: /var/log/pm-suspend.log keeps getting the wrong selinux context
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pm-utils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact:
URL:
Whiteboard:
: 240911 (view as bug list)
Depends On:
Blocks: 253722
TreeView+ depends on / blocked
 
Reported: 2007-04-26 21:25 UTC by Zack Cerza
Modified: 2015-03-05 01:18 UTC (History)
4 users (show)

Fixed In Version: 0.99.4-3.fc8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-19 23:32:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix labeling on pm-suspend.log file (383 bytes, text/x-patch)
2007-04-27 14:39 UTC, Daniel Walsh
no flags Details

Description Zack Cerza 2007-04-26 21:25:44 UTC
Description of problem:
pm-suspend.log is supposed to have the hald_log_t context, but it keeps getting
reset to var_log_t, causing avc denials such the following on resume:

avc: denied { write } for comm="ntpd" dev=sda3 egid=0 euid=0
exe="/usr/sbin/ntpd" exit=0 fsgid=0 fsuid=0 gid=0 items=0 name="pm-suspend.log"
path="/var/log/pm-suspend.log" pid=3051 scontext=user_u:system_r:ntpd_t:s0
sgid=0 subj=user_u:system_r:ntpd_t:s0 suid=0 tclass=file
tcontext=user_u:object_r:var_log_t:s0 tty=(none) uid=0 
avc: denied { write } for comm="pm-suspend" dev=sda3 egid=0 euid=0
exe="/bin/bash" exit=-13 fsgid=0 fsuid=0 gid=0 items=0 name="pm-suspend.log"
pid=3028 scontext=system_u:system_r:hald_t:s0 sgid=0
subj=system_u:system_r:hald_t:s0 suid=0 tclass=file
tcontext=user_u:object_r:var_log_t:s0 tty=(none) uid=0 
avc: denied { getattr } for comm="pm-suspend" dev=sda3 egid=0 euid=0
exe="/bin/bash" exit=-13 fsgid=0 fsuid=0 gid=0 items=0 name="pm-suspend.log"
path="/var/log/pm-suspend.log" pid=3028 scontext=system_u:system_r:hald_t:s0
sgid=0 subj=system_u:system_r:hald_t:s0 suid=0 tclass=file
tcontext=user_u:object_r:var_log_t:s0 tty=(none) uid=0 

Version-Release number of selected component (if applicable):
pm-utils-0.99.3-1.fc7.i386

How reproducible:
Always

Comment 1 Daniel Walsh 2007-04-27 14:39:28 UTC
Created attachment 153625 [details]
Fix labeling on pm-suspend.log file

This patch will restore the context on the pm-suspend.log file so hal can deal
with it.

Comment 2 Till Maas 2007-09-20 00:18:16 UTC
*** Bug 240911 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.