Bug 1017258 - SELinux is preventing /usr/bin/net from 'block_suspend' accesses on the capability2 .
Summary: SELinux is preventing /usr/bin/net from 'block_suspend' accesses on the capab...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9ceddee629efacd19091a42a410...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-09 13:53 UTC by kuchiman
Modified: 2013-11-10 06:21 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-90.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-10 06:21:57 UTC
Type: ---


Attachments (Terms of Use)

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.


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