Bug 870900 - SELinux is preventing /usr/bin/bash from using the 'sys_admin' capabilities.
Summary: SELinux is preventing /usr/bin/bash from using the 'sys_admin' capabilities.
Keywords:
Status: CLOSED DUPLICATE of bug 887882
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ef47d18082f0e4d5a516790f682...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-29 06:55 UTC by Slawomir Czarko
Modified: 2012-12-17 15:05 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-17 15:05:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-29 06:55 UTC, Slawomir Czarko
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-29 06:55 UTC, Slawomir Czarko
no flags Details

Description Slawomir Czarko 2012-10-29 06:55:00 UTC
Additional info:
libreport version: 2.0.16
kernel:         3.6.3-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/bash from using the 'sys_admin' capabilities.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that bash should have the sys_admin capability 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 prelink /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:prelink_cron_system_t:s0-s0:c0.c
:                              1023
:Target Context                system_u:system_r:prelink_cron_system_t:s0-s0:c0.c
:                              1023
:Target Objects                 [ capability ]
:Source                        prelink
:Source Path                   /usr/bin/bash
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           bash-4.2.37-2.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.3-1.fc17.x86_64 #1 SMP Mon Oct
:                              22 15:32:35 UTC 2012 x86_64 x86_64
:Alert Count                   19
:First Seen                    2012-10-28 19:47:50 CET
:Last Seen                     2012-10-29 03:07:04 CET
:Local ID                      311538a8-b0fb-4d3c-8b7d-d10ed47afa2a
:
:Raw Audit Messages
:type=AVC msg=audit(1351476424.287:180): avc:  denied  { sys_admin } for  pid=13274 comm="prelink" capability=21  scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tclass=capability
:
:
:type=AVC msg=audit(1351476424.287:180): avc:  denied  { sys_resource } for  pid=13274 comm="prelink" capability=24  scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tclass=capability
:
:
:type=SYSCALL msg=audit(1351476424.287:180): arch=x86_64 syscall=clone success=yes exit=13275 a0=1200011 a1=0 a2=0 a3=7f6e3a8d5a10 items=0 ppid=13268 pid=13274 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=11 comm=prelink exe=/usr/bin/bash subj=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 key=(null)
:
:Hash: prelink,prelink_cron_system_t,prelink_cron_system_t,capability,sys_admin
:
:audit2allow
:
:#============= prelink_cron_system_t ==============
:allow prelink_cron_system_t self:capability { sys_admin sys_resource };
:
:audit2allow -R
:
:#============= prelink_cron_system_t ==============
:allow prelink_cron_system_t self:capability { sys_admin sys_resource };
:

Comment 1 Slawomir Czarko 2012-10-29 06:55:04 UTC
Created attachment 634885 [details]
File: type

Comment 2 Slawomir Czarko 2012-10-29 06:55:06 UTC
Created attachment 634886 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-29 11:38:17 UTC
Another problem with these caps and

success=yes

in enforcing mode.

Comment 4 Miroslav Grepl 2012-12-17 15:05:45 UTC

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


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