Bug 1401368

Summary: SELinux is preventing teamviewerd from using the 'execmem' accesses on a process.
Product: [Fedora] Fedora Reporter: Justin W. Flory (he/him) <foss>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, richmichmeadows, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:40553c3c8832ca6c55b5ed38e4c5dba9c37cfd4c2d431b900553d5cb37041158;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-05 13:48: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 Justin W. Flory (he/him) 2016-12-05 03:38:09 UTC
Description of problem:
SELinux is preventing teamviewerd from using the 'execmem' accesses on a process.

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

If you believe that teamviewerd should be allowed execmem access on processes labeled init_t 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:
# ausearch -c 'teamviewerd' --raw | audit2allow -M my-teamviewerd
# semodule -X 300 -i my-teamviewerd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:system_r:init_t:s0
Target Objects                Unknown [ process ]
Source                        teamviewerd
Source Path                   teamviewerd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.7.4-200.fc24.x86_64 #1 SMP Thu
                              Sep 15 18:42:09 UTC 2016 x86_64 x86_64
Alert Count                   110
First Seen                    2016-08-22 20:51:12 EDT
Last Seen                     2016-12-02 11:44:35 EST
Local ID                      e90959c8-8a48-4ce1-89f4-dd264f46635f

Raw Audit Messages
type=AVC msg=audit(1480697075.153:236): avc:  denied  { execmem } for  pid=1559 comm="teamviewerd" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=process permissive=0


Hash: teamviewerd,init_t,init_t,process,execmem


Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.10-300.fc25.x86_64
type:           libreport

Potential duplicate: bug 1334085

Comment 1 Lukas Vrabec 2016-12-05 13:48:57 UTC
How did you start teamviewed? We don't have policy for it in our repo, so it should run as unconfined_service_t. 

Could you start it using:
# systemctl start unconfined_service_t

I'm looking in fedora repo and I cannot find this package there.

Comment 2 Rich 2016-12-06 15:38:37 UTC
Description of problem:
I believe teamviewer should be permitted by default.

Version-Release number of selected component:
selinux-policy-3.13.1-191.18.fc24.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.10-300.fc25.x86_64
type:           libreport