Bug 1017258

Summary: SELinux is preventing /usr/bin/net from 'block_suspend' accesses on the capability2 .
Product: [Fedora] Fedora Reporter: kuchiman <kuc4iman>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9ceddee629efacd19091a42a41025958dc60eccd62ee57ee45532ca0feb8b27b
Fixed In Version: selinux-policy-3.12.1-90.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-10 06:21:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description kuchiman 2013-10-09 13:53:24 UTC
Description of problem:
realm join --client-software=sssd exempl -U admin
SELinux is preventing /usr/bin/net from 'block_suspend' accesses on the capability2 .

*****  Plugin catchall (100. confidence) suggests   **************************

If вы считаете, что net следует разрешить доступ block_suspend к  capability2 по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# grep net /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:samba_net_t:s0-s0:c0.c1023
Target Context                system_u:system_r:samba_net_t:s0-s0:c0.c1023
Target Objects                 [ capability2 ]
Source                        net
Source Path                   /usr/bin/net
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           samba-common-4.1.0-0.8.rc4.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-75.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.3-301.fc20.x86_64 #1 SMP Thu
                              Oct 3 00:57:21 UTC 2013 x86_64 x86_64
Alert Count                   31
First Seen                    2013-10-09 17:51:29 SAMT
Last Seen                     2013-10-09 17:51:33 SAMT
Local ID                      1e75586f-5dc0-42e2-b46b-c60e83139664

Raw Audit Messages
type=AVC msg=audit(1381326693.457:619): avc:  denied  { block_suspend } for  pid=2378 comm="net" capability=36  scontext=system_u:system_r:samba_net_t:s0-s0:c0.c1023 tcontext=system_u:system_r:samba_net_t:s0-s0:c0.c1023 tclass=capability2


type=SYSCALL msg=audit(1381326693.457:619): arch=x86_64 syscall=epoll_ctl success=yes exit=0 a0=d a1=2 a2=e a3=7fff28cd6560 items=0 ppid=2371 pid=2378 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=net exe=/usr/bin/net subj=system_u:system_r:samba_net_t:s0-s0:c0.c1023 key=(null)

Hash: net,samba_net_t,samba_net_t,capability2,block_suspend

Additional info:
reporter:       libreport-2.1.7
hashmarkername: setroubleshoot
kernel:         3.11.3-301.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-10-09 14:49:58 UTC
Looks like this is fixed in selinux-policy-3.12.1-87

Comment 2 Fedora Update System 2013-10-15 16:31:00 UTC
selinux-policy-3.12.1-90.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-90.fc20

Comment 3 Fedora Update System 2013-10-17 20:22:12 UTC
Package selinux-policy-3.12.1-90.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-90.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-19129/selinux-policy-3.12.1-90.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-11-10 06:21:57 UTC
selinux-policy-3.12.1-90.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.