Bug 699162 - SELinux is preventing /bin/bash from write access on the file pm-suspend.log
Summary: SELinux is preventing /bin/bash from write access on the file pm-suspend.log
Keywords:
Status: CLOSED DUPLICATE of bug 699160
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-23 19:29 UTC by Piscium
Modified: 2011-04-25 13:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-25 13:54:48 UTC
Type: ---


Attachments (Terms of Use)

Description Piscium 2011-04-23 19:29:29 UTC
Description of problem:

I get the issue below every time I attempt to suspend from a LXDE session. As SELinux prevents suspending I do not actually suspend.

I have been running F13 for a while without a similar issue. Today I installed F14 on a blank new partition, so this appears to be a F14 issue.

========================================================


SELinux is preventing /bin/bash from write access on the file pm-suspend.log.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that bash should be allowed write access on the pm-suspend.log file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep pm-suspend /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:hald_t:s0
Target Context                unconfined_u:object_r:var_log_t:s0
Target Objects                pm-suspend.log [ file ]
Source                        pm-suspend
Source Path                   /bin/bash
Port                          <Unknown>
Host                          d3000
Source RPM Packages           bash-4.1.7-3.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-37.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     d3000
Platform                      Linux d3000 2.6.35.12-88.fc14.i686 #1 SMP Thu Mar
                              31 22:12:38 UTC 2011 i686 i686
Alert Count                   2
First Seen                    Sat 23 Apr 2011 19:46:02 IST
Last Seen                     Sat 23 Apr 2011 19:46:02 IST
Local ID                      ee46d5bf-fe18-46a1-9dc7-d5d568b99b99

Raw Audit Messages
type=AVC msg=audit(1303584362.446:27181): avc:  denied  { write } for  pid=2851 comm="pm-suspend" name="pm-suspend.log" dev=sdb13 ino=14674 scontext=system_u:system_r:hald_t:s0 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file


type=SYSCALL msg=audit(1303584362.446:27181): arch=i386 syscall=open success=no exit=EACCES a0=89f2438 a1=8201 a2=0 a3=0 items=0 ppid=2849 pid=2851 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pm-suspend exe=/bin/bash subj=system_u:system_r:hald_t:s0 key=(null)

Hash: pm-suspend,hald_t,var_log_t,file,write

audit2allow

#============= hald_t ==============
allow hald_t var_log_t:file write;

audit2allow -R

#============= hald_t ==============
allow hald_t var_log_t:file write;

Comment 1 Daniel Walsh 2011-04-25 13:54:48 UTC

*** This bug has been marked as a duplicate of bug 699160 ***


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