Bug 1622266

Summary: SELinux is preventing tcsd from using the 'dac_override' capabilities.
Product: [Fedora] Fedora Reporter: Nicolas Sapa <redhat>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:736a3652a8e57a418d98b53d9e45ae9d212c36cb673404d505cd8a9fe9ee222b;
Fixed In Version: selinux-policy-3.14.1-42.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-11 16:55:54 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:

Description Nicolas Sapa 2018-08-25 00:49:00 UTC
Description of problem:
Tryed to start tcsd with $ sudo systemctl start tcsd.service
SELinux is preventing tcsd from using the 'dac_override' capabilities.

*****  Plugin dac_override (91.4 confidence) suggests   **********************

Si vous souhaitez identifier si le domaine nécessite cet accès ou si vous possédez un fichier avec les mauvaises permissions sur votre système
Then activez le contrôle complet pour obtenir les informations de chemin du fichier fautif et générer l'erreur à nouveau.
Do

Activer le contrôle complet
# auditctl -w /etc/shadow -p w
Tentez de recréer AVC. Puis exécutez
# ausearch -m avc -ts recent
Si vous voyez un enregistrement PATH, vérifiez les propriétés/permissions du fichier, et corrigez-les, 
sinon veuillez effectuer un rapport bugzilla.

*****  Plugin catchall (9.59 confidence) suggests   **************************

Si vous pensez que tcsd devrait avoir des capacités dac_override 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 :
# ausearch -c "tcsd" --raw | audit2allow -M my-tcsd
# semodule -X 300 -i my-tcsd.pp

Additional Information:
Source Context                system_u:system_r:tcsd_t:s0
Target Context                system_u:system_r:tcsd_t:s0
Target Objects                Unknown [ capability ]
Source                        tcsd
Source Path                   tcsd
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-40.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.17.17-200.fc28.x86_64 #1 SMP Mon
                              Aug 20 15:56:07 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-08-25 02:47:07 CEST
Last Seen                     2018-08-25 02:47:07 CEST
Local ID                      ea752383-288f-43b8-be5f-f361f7d14895

Raw Audit Messages
type=AVC msg=audit(1535158027.759:276): avc:  denied  { dac_override } for  pid=5627 comm="tcsd" capability=1  scontext=system_u:system_r:tcsd_t:s0 tcontext=system_u:system_r:tcsd_t:s0 tclass=capability permissive=0


Hash: tcsd,tcsd_t,tcsd_t,capability,dac_override

Version-Release number of selected component:
selinux-policy-3.14.1-40.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.17.17-200.fc28.x86_64
type:           libreport

Comment 1 Fedora Update System 2018-09-06 21:57:08 UTC
selinux-policy-3.14.1-42.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-2d1b09d217

Comment 2 Fedora Update System 2018-09-07 17:12:35 UTC
selinux-policy-3.14.1-42.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-2d1b09d217

Comment 3 Fedora Update System 2018-09-11 16:55:54 UTC
selinux-policy-3.14.1-42.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.