Bug 863847

Summary: SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/sbin/consoletype.
Product: [Fedora] Fedora Reporter: Nicolas Chauvet (kwizart) <kwizart>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:e539c8b7bfbefc542ff4bd83e4e89ec439198237b7ffd1d5353a72aac34204cf
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-08 08:16:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Nicolas Chauvet (kwizart) 2012-10-07 20:31:27 UTC
Additional info:
libreport version: 2.0.15
kernel:         3.6.0-3.fc18.i686.PAE

description:
:SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/sbin/consoletype.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If vous pensez que bash devrait être autorisé à accéder execute sur consoletype file par défaut.
:Then vous devriez rapporter ceci en tant qu'anomalie.
:Vous pouvez générer un module de stratégie local pour autoriser cet accès.
:Do
:autoriser cet accès pour le moment en exécutant :
:# grep dhclient-script /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:consoletype_exec_t:s0
:Target Objects                /usr/sbin/consoletype [ file ]
:Source                        dhclient-script
:Source Path                   /usr/bin/bash
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           bash-4.2.37-6.fc18.i686
:Target RPM Packages           initscripts-9.40-1.fc18.i686
:Policy RPM                    selinux-policy-3.11.1-32.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.0-0.rc6.git0.2.fc18.i686.PAE
:                              #1 SMP Mon Sep 17 17:28:04 UTC 2012 i686 i686
:Alert Count                   18
:First Seen                    2012-10-07 13:57:15 CEST
:Last Seen                     2012-10-07 13:58:01 CEST
:Local ID                      28c87153-9f2d-4086-9207-d961aebdc652
:
:Raw Audit Messages
:type=AVC msg=audit(1349611081.287:130): avc:  denied  { execute } for  pid=2794 comm="dhclient-script" name="consoletype" dev="sda3" ino=675360 scontext=unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023 tcontext=system_u:object_r:consoletype_exec_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1349611081.287:130): arch=i386 syscall=execve success=no exit=EACCES a0=9df38d0 a1=9dc1520 a2=9dc1820 a3=9dc1520 items=0 ppid=2793 pid=2794 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm=dhclient-script exe=/usr/bin/bash subj=unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023 key=(null)
:
:Hash: dhclient-script,dhcpc_t,consoletype_exec_t,file,execute
:
:audit2allow
:
:#============= dhcpc_t ==============
:allow dhcpc_t consoletype_exec_t:file execute;
:
:audit2allow -R
:
:#============= dhcpc_t ==============
:allow dhcpc_t consoletype_exec_t:file execute;
:

Comment 1 Nicolas Chauvet (kwizart) 2012-10-07 20:31:30 UTC
Created attachment 623106 [details]
File: type

Comment 2 Nicolas Chauvet (kwizart) 2012-10-07 20:31:31 UTC
Created attachment 623107 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-08 08:16:35 UTC

*** This bug has been marked as a duplicate of bug 863846 ***