Bug 562313 - SELinux is preventing /bin/find "read" access on /var/spool/mqueue
Summary: SELinux is preventing /bin/find "read" access on /var/spool/mqueue
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
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: 2010-02-05 22:08 UTC by Sandro
Modified: 2010-02-20 00:21 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-89.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-20 00:21:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Local policy according to suggestions by audit2allow (220 bytes, text/plain)
2010-02-05 22:22 UTC, Sandro
no flags Details

Description Sandro 2010-02-05 22:08:52 UTC
Summary:

SELinux is preventing /bin/find "read" access on /var/spool/mqueue.

Detailed Description:

SELinux denied access requested by find. It is not expected that this access is
required by find and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:munin_t:s0
Target Context                system_u:object_r:mqueue_spool_t:s0
Target Objects                /var/spool/mqueue [ dir ]
Source                        find
Source Path                   /bin/find
Port                          <Unknown>
Host                          shevek.penguinpee.nl
Source RPM Packages           findutils-4.4.2-6.fc12
Target RPM Packages           sendmail-8.14.3-8.fc12
Policy RPM                    selinux-policy-3.6.32-78.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     shevek.penguinpee.nl
Platform                      Linux shevek.penguinpee.nl
                              2.6.31.12-174.2.3.fc12.x86_64 #1 SMP Mon Jan 18
                              19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   352
First Seen                    Thu Feb  4 13:15:06 2010
Last Seen                     Fri Feb  5 22:30:03 2010
Local ID                      d862f7d6-0441-4cde-8ca8-6ff9a6562410
Line Numbers                  

Raw Audit Messages            

node=shevek.penguinpee.nl type=AVC msg=audit(1265405403.465:40923): avc:  denied  { read } for  pid=10333 comm="find" name="mqueue" dev=dm-0 ino=659 scontext=unconfined_u:system_r:munin_t:s0 tcontext=system_u:object_r:mqueue_spool_t:s0 tclass=dir

node=shevek.penguinpee.nl type=SYSCALL msg=audit(1265405403.465:40923): arch=c000003e syscall=2 success=no exit=-13 a0=1225a30 a1=90800 a2=3 a3=1226d96 items=0 ppid=10332 pid=10333 auid=500 uid=0 gid=469 euid=0 suid=0 fsuid=0 egid=469 sgid=469 fsgid=469 tty=(none) ses=78 comm="find" exe="/bin/find" subj=unconfined_u:system_r:munin_t:s0 key=(null)

Comment 1 Sandro 2010-02-05 22:22:52 UTC
Created attachment 389210 [details]
Local policy according to suggestions by audit2allow

This local policy will allow access to both /var/spool/mqueue and /var/spool/clientmqueue. Access to the last one is also needed by munin scripts, but denied in a different AVC.

Do I need to file a different bug for munin trying to access /var/spool/clientmqueue ? The source and target contexts are all the same.

Comment 2 Daniel Walsh 2010-02-08 18:37:31 UTC
Miroslav add,

	mta_list_queue(munin_t)


#######################################
## <summary>
##	List the mail queue.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`mta_list_queue',`
	gen_require(`
		type mqueue_spool_t;
	')

	allow $1 mqueue_spool_t:dir list_dir_perms;
	files_search_spool($1)
')

Comment 3 Miroslav Grepl 2010-02-09 11:34:59 UTC
Fixed in selinux-policy-3.6.32-86.fc12

Comment 4 Fedora Update System 2010-02-11 22:01:20 UTC
selinux-policy-3.6.32-89.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-89.fc12

Comment 5 Fedora Update System 2010-02-13 00:40:27 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1836

Comment 6 Fedora Update System 2010-02-20 00:19:31 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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