Bug 507732 - Problems with mail command from within unconfined process.
Summary: Problems with mail command from within unconfined process.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-23 22:17 UTC by Orion Poplawski
Modified: 2012-02-07 17:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-07 17:02:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2009-06-23 22:17:10 UTC
Description of problem:

Running jobs with gridengine, which are spawned on a host by the sge_execd daemon:

system_u:system_r:initrc_t:s0    1910 ?        00:00:11 sge_execd

From within that environment, the mail command fails to send mail because it cannot write to the temporary directory created by sge_execd set to TMPDIR:

type=AVC msg=audit(1245793931.260:23392): avc:  denied  { write } for  pid=4113 comm="mail" name="11812.1.amanda" dev=tmpfs ino=20398 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=dir                           
type=AVC msg=audit(1245793931.260:23392): avc:  denied  { add_name } for  pid=4113 comm="mail" name="RsXY9cKi" scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=dir      
type=AVC msg=audit(1245793931.260:23392): avc:  denied  { create } for  pid=4113 comm="mail" name="RsXY9cKi" scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=file     
type=AVC msg=audit(1245793931.263:23393): avc:  denied  { setattr } for  pid=4113 comm="mail" name="RsXY9cKi" dev=tmpfs ino=20556 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=file
type=AVC msg=audit(1245793931.267:23394): avc:  denied  { remove_name } for  pid=4113 comm="mail" name="RsXY9cKi" dev=tmpfs ino=20556 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=dir
type=AVC msg=audit(1245793931.267:23394): avc:  denied  { unlink } for  pid=4113 comm="mail" name="RsXY9cKi" dev=tmpfs ino=20556 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=file

Version-Release number of selected component (if applicable):
selinux-policy-3.6.12-50.fc11.noarch

Comment 2 Daniel Walsh 2009-06-24 21:17:52 UTC
Miroslav can you look at this? I think we need policy for sge_execd

Orion  can you build a custom policy for now.

Comment 3 Orion Poplawski 2009-06-24 21:21:03 UTC
(In reply to comment #2)
> Miroslav can you look at this? I think we need policy for sge_execd
> 
> Orion  can you build a custom policy for now.  

I can build a custom policy for now.  I am also the maintainer for gridengine, so may be able to help with policy.

Comment 4 Daniel Walsh 2009-06-24 21:41:32 UTC
That would be great.

Comment 6 Bug Zapper 2010-04-27 15:13:03 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Miroslav Grepl 2010-11-03 13:08:58 UTC
I totally missed this bug. I am moving the bug to F14.

Comment 8 Bug Zapper 2010-11-04 11:00:20 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 9 Fedora Admin XMLRPC Client 2010-11-08 21:53:12 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Fedora Admin XMLRPC Client 2010-11-08 21:54:47 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 11 Fedora Admin XMLRPC Client 2010-11-08 21:55:26 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 12 Daniel Walsh 2011-05-26 19:59:56 UTC
orion are you still interested in working on this?

Comment 13 Orion Poplawski 2011-05-26 20:18:13 UTC
Sure.  I just updated the machine to Fedora 15.

Comment 14 Miroslav Grepl 2011-05-27 08:43:53 UTC
Ok, I will send you an initial policy.

Comment 15 Miroslav Grepl 2012-02-07 17:02:04 UTC
Added to f17 policy.


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