Bug 517025 - setroubleshoot: SELinux is preventing udevd (udev_t) "signal" unconfined_t.
Summary: setroubleshoot: SELinux is preventing udevd (udev_t) "signal" unconfined_t.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:9c33021928d...
: 516463 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-12 12:23 UTC by Antonio A. Olivares
Modified: 2009-10-06 14:28 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-08-13 16:05:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Antonio A. Olivares 2009-08-12 12:23:27 UTC
The following was filed automatically by setroubleshoot:

Summary:

SELinux is preventing udevd (udev_t) "signal" unconfined_t.

Detailed Description:

[SELinux is in permissive mode, the operation would have been denied but was
permitted due to permissive mode.]

SELinux denied access requested by udevd. It is not expected that this access is
required by udevd 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Additional Information:

Source Context                system_u:system_r:udev_t:s0-s0:c0.c1023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                None [ process ]
Source                        udevd
Source Path                   /sbin/udevd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           udev-145-4.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.26-8.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31-0.125.rc5.git2.fc12.i686 #1 SMP Tue Aug 4
                              03:18:57 EDT 2009 i686 i686
Alert Count                   1
First Seen                    Wed 12 Aug 2009 07:23:20 AM EDT
Last Seen                     Wed 12 Aug 2009 07:23:20 AM EDT
Local ID                      d6365004-67ab-45eb-acad-ca3e701abc6f
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1250076200.943:27940): avc:  denied  { signal } for  pid=393 comm="udevd" scontext=system_u:system_r:udev_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process

node=(removed) type=SYSCALL msg=audit(1250076200.943:27940): arch=40000003 syscall=37 success=yes exit=0 a0=858 a1=a a2=8d27018 a3=8d386c8 items=0 ppid=1 pid=393 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="udevd" exe="/sbin/udevd" subj=system_u:system_r:udev_t:s0-s0:c0.c1023 key=(null)


audit2allow suggests:

#============= udev_t ==============
allow udev_t unconfined_t:process signal;

Comment 1 Daniel Walsh 2009-08-12 18:57:59 UTC
Is udev sending a signal to all logged in users?

Comment 2 Harald Hoyer 2009-08-13 09:27:01 UTC
huh? no. not that I know of... it should only communicate with its helper childs.

    kill(worker->pid, SIGKILL);

But a check is missing against <= 0 for worker->pid which could be a problem.

Comment 3 Harald Hoyer 2009-08-13 13:22:34 UTC
questions: was the signal sent by udev or received?
what was the signum? what was the target?

Comment 4 Daniel Walsh 2009-08-13 13:58:46 UTC
*** Bug 516463 has been marked as a duplicate of this bug. ***

Comment 5 Daniel Walsh 2009-08-13 14:52:02 UTC
Signal went from udev_t to unconfined_t.

  Antonio

I marked another bug closed as dup of this one, were you running liveinst when
this happened?

The signal being send is a1="a"

a=10==SIGUSR1

Comment 6 Harald Hoyer 2009-08-13 15:41:18 UTC
ah, this is the communication from "udevd" to "udevadm settle"

very important!

Comment 7 Daniel Walsh 2009-08-13 16:05:58 UTC
Just Rawhide or do we need this in F11?

Fixed in selinux-policy-3.6.26-11.fc12.noarch

Comment 8 Kay Sievers 2009-08-13 16:09:47 UTC
This signal was added in udev version 140.

Comment 9 Daniel Walsh 2009-08-13 16:16:25 UTC
Miroslav add 

optional_policy(`
	unconfined_signal(udev_t)
')

Just in case.

Comment 10 Miroslav Grepl 2009-08-13 16:23:33 UTC
ok, I am adding

Comment 11 Antonio A. Olivares 2009-08-13 16:31:53 UTC
--- Comment #5 from Daniel Walsh <dwalsh>  2009-08-13 10:52:02 EDT ---
Signal went from udev_t to unconfined_t.

  Antonio

I marked another bug closed as dup of this one, were you running liveinst when
this happened?

The signal being send is a1="a"

a=10==SIGUSR1

============================================
Yes, I was running Liveinstall from xfce-20080810 live spin by Adam Miller.  

I am encountering one big time denial for wine too, but I can't copy paste the denied avc's :(

Comment 12 Daniel Walsh 2009-08-13 18:44:38 UTC
Can you send me the /var/log/audit/audit.log?

If you turn on the mmap_low_allowed boolean it will probably go away.

setsebool -P mmap_low_allowed=1


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