Bug 485612 - SELinux is preventing consoletype (consoletype_t) "read write" unconfined_t.
SELinux is preventing consoletype (consoletype_t) "read write" unconfined_t.
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-02-15 05:10 EST by sangu
Modified: 2009-04-13 10:36 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-04-13 10:36:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description sangu 2009-02-15 05:10:09 EST
Description of problem:

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.

Source Context           unconfined_u:system_r:consoletype_t:s0
Target Context            unconfined_u:unconfined_r:unconfined_t:s0
Target Objects            socket [ unix_stream_socket ]
Source                        consoletype
Source Path                   /sbin/consoletype
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           initscripts-8.89-1
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.5-3.fc11
Selinux Enabled             True
Policy Type                 targeted
MLS Enabled                 True
Enforcing Mode              Enforcing
Plugin Name               catchall
Host Name                  localhost.localdomain
Platform                     Linux localhost.localdomain
                              2.6.29-0.118.rc5.fc11.x86_64 #1 SMP Fri Feb 13
                              19:14:27 EST 2009 x86_64 x86_64
Alert Count              2
First Seen                    2009년 02월 15일 (일) 오전 09시 36분 31초
Last Seen                     2009년 02월 15일 (일) 오후 06시 59분 18초
Local ID                      58ebaa2c-dda6-4939-8864-ec385e6ea17c
Line Numbers                    

Raw Audit Messages          

node=localhost.localdomain type=AVC msg=audit(1234691958.358:124): avc:  denied  { read write } for  pid=15337 comm="consoletype" path="socket:[114893]" dev=sockfs ino=114893 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=unix_stream_socket

node=localhost.localdomain type=SYSCALL msg=audit(1234691958.358:124): arch=c000003e syscall=59 success=yes exit=0 a0=943fe0 a1=944040 a2=943bb0 a3=38c536da70 items=0 ppid=15336 pid=15337 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="consoletype" exe="/sbin/consoletype" subj=unconfined_u:system_r:consoletype_t:s0 key=(null)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. launch system-config-date
2. Clock Setting
Actual results:

Expected results:

Additional info:
$ ls -Z /sbin/consoletype 
-rwxr-xr-x  root root system_u:object_r:consoletype_exec_t:s0 /sbin/consoletype
Comment 1 Daniel Walsh 2009-02-16 09:10:57 EST
Are you using a Konsole terminal?
Comment 2 sangu 2009-02-16 11:28:22 EST
(In reply to comment #1)
> Are you using a Konsole terminal?

No, I use gnome-terminal.
Comment 3 Daniel Walsh 2009-02-16 12:44:01 EST
Do you know how you caused this to happen?

Were you updating packages?
Comment 4 Daniel Walsh 2009-04-13 10:36:35 EDT
# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.6.12-3.fc11.noarch

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