Bug 786866 - SELinux is preventing /lib/systemd/systemd-logind (deleted) from 'setattr' accesses on the None 002.
Summary: SELinux is preventing /lib/systemd/systemd-logind (deleted) from 'setattr' ac...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:fee55b1929f7283b8fa17537faf...
: 795101 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-02 15:44 UTC by Grosswiler Roger
Modified: 2012-03-15 15:49 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 15:49:00 UTC
Type: ---


Attachments (Terms of Use)

Description Grosswiler Roger 2012-02-02 15:44:49 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing /lib/systemd/systemd-logind (deleted) from 'setattr' accesses on the None 002.
time:           Do 02 Feb 2012 16:43:52 CET

description:
:SELinux is preventing /lib/systemd/systemd-logind (deleted) from 'setattr' accesses on the None 002.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that systemd-logind (deleted) should be allowed setattr access on the 002 <Unbekannt> 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 systemd-logind /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:systemd_logind_t:s0
:Target Context                system_u:object_r:svirt_image_t:s0:c363,c417
:Target Objects                002 [ None ]
:Source                        systemd-logind
:Source Path                   /lib/systemd/systemd-logind (deleted)
:Port                          <Unbekannt>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    <Unbekannt>
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.2-1.fc16.x86_64 #1 SMP Thu Jan
:                              26 03:21:58 UTC 2012 x86_64 x86_64
:Alert Count                   5
:First Seen                    Do 02 Feb 2012 05:22:25 CET
:Last Seen                     Do 02 Feb 2012 16:42:09 CET
:Local ID                      c4beaa9e-8a05-461b-8f6a-380d2d0ef2bb
:
:Raw Audit Messages
:type=AVC msg=audit(1328197329.853:1056): avc:  denied  { setattr } for  pid=1022 comm="systemd-logind" name="002" dev=devtmpfs ino=12999 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:svirt_image_t:s0:c363,c417 tclass=chr_filenode=(removed) type=SYSCALL msg=audit(1328197329.853:1056): arch=c000003e syscall=188 success=yes exit=0 a0=23bfd40 a1=3913e05d2b a2=23c0580 a3=2c items=0 ppid=1 pid=1022 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe=2F6C69622F73797374656D642F73797374656D642D6C6F67696E64202864656C6574656429 subj=system_u:system_r:systemd_logind_t:s0 key=(null)
:
:
:Hash: systemd-logind,systemd_logind_t,svirt_image_t,None,setattr
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Daniel Walsh 2012-02-02 20:34:56 UTC
This looks correct since we probably do not want systemd-logind changing the attributes of a usb device being used by a virtual machine.

Comment 2 Miroslav Grepl 2012-02-20 16:14:43 UTC
*** Bug 795101 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2012-02-20 16:15:28 UTC
Should we dontaudit this then?

Comment 4 Daniel Walsh 2012-02-20 19:30:50 UTC
Probably but I don't beleive that systemd-logind should be attempting to set attributes on a device that is currently being used.

Comment 5 Miroslav Grepl 2012-03-15 15:49:00 UTC
Lets see if we get others. You can dontudit them using 

# grep systemd-logind /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp


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