Bug 566266 - SELinux is preventing /sbin/consoletype "sys_admin" access .
Summary: SELinux is preventing /sbin/consoletype "sys_admin" access .
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: setroubleshoot_trace_hash:ebfb1513108...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-17 18:24 UTC by Juhani Saastamoinen
Modified: 2010-03-04 00:16 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-92.fc12
Clone Of:
Environment:
Last Closed: 2010-03-04 00:16:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Juhani Saastamoinen 2010-02-17 18:24:42 UTC
Yhteenveto:

SELinux is preventing /sbin/consoletype "sys_admin" access .

Yksityiskohtainen kuvaus:

[Lähteellä consoletype on salliva tyyppi (dhcpc_t). Tätä käyttöä ei
estetty.]

SELinux denied access requested by consoletype. It is not expected that this
access is required by consoletype 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.

Pääsyn salliminen:

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.

Lisätiedot:

Lähdekonteksti               system_u:system_r:dhcpc_t:s0
Kohdekonteksti                system_u:system_r:dhcpc_t:s0
Kohdeobjektit                 None [ capability ]
Lähde                        consoletype
Lähteen polku                /sbin/consoletype
Portti                        <Tuntematon>
Kone                          (removed)
Lähteen RPM-paketit          initscripts-9.02.1-1
Kohteen RPM-paketit           
Käytännön RPM              selinux-policy-3.6.32-84.fc12
SELinux käytössä           True
Käytännön tyyppi           targeted
Toimeenpanotila               Enforcing
Liitännäisen nimi           catchall
Konenimi                      (removed)
Alusta                        Linux (removed) 2.6.31.12-174.2.19.fc12.x86_64 #1
                              SMP Thu Feb 11 07:07:16 UTC 2010 x86_64 x86_64
Varoitusten määrä          2
Ensimmäinen                  ke 17. helmikuuta 2010 20.21.22
Viimeisin                     ke 17. helmikuuta 2010 20.21.26
Paikallinen tunniste          4a80989a-b877-4481-b3c1-3bdc35efe12d
Rivinumerot                   

Muokkaamattomat tarkastusvies 

node=(removed) type=AVC msg=audit(1266430886.129:7): avc:  denied  { sys_admin } for  pid=2012 comm="consoletype" capability=21 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:system_r:dhcpc_t:s0 tclass=capability

node=(removed) type=SYSCALL msg=audit(1266430886.129:7): arch=c000003e syscall=16 success=yes exit=128 a0=0 a1=541c a2=7fff2889e1ef a3=7fff2889e000 items=0 ppid=2011 pid=2012 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="consoletype" exe="/sbin/consoletype" subj=system_u:system_r:dhcpc_t:s0 key=(null)



Hash String generated from  catchall,consoletype,dhcpc_t,dhcpc_t,capability,sys_admin
audit2allow suggests:

#============= dhcpc_t ==============
allow dhcpc_t self:capability sys_admin;

Comment 1 Daniel Walsh 2010-02-17 19:34:49 UTC
Miroslav, 

Change consoletype_exec(dhcpc_t) back to 

consoletype_domtrans(dhcpc_t)


Add 
	ifdef(`hide_broken_symptoms', `
	        dontaudit consoletype_t $1:socket_class_set { read write };
	')

to consoletype_domtrans interface

Comment 2 Miroslav Grepl 2010-02-22 11:00:06 UTC
Fixed in selinux-policy-3.6.32-92.fc12

Comment 3 Fedora Update System 2010-02-23 20:57:32 UTC
selinux-policy-3.6.32-92.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-92.fc12

Comment 4 Fedora Update System 2010-02-26 03:44:18 UTC
selinux-policy-3.6.32-92.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-2953

Comment 5 Fedora Update System 2010-03-04 00:13:00 UTC
selinux-policy-3.6.32-92.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.