Bug 467944

Summary: ping : permission denied
Product: [Fedora] Fedora Reporter: Edwin Schepers <yez>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, jkubin, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-23 18:49:08 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 Edwin Schepers 2008-10-21 19:42:16 UTC
Description of problem:
When I 'ping www.google.com' I get the message : ping: icmp open socket: Permission denied (translated)
Using root gives no problem. Using a normal user gives the error

Comment 1 Miroslav Grepl 2008-10-21 23:07:36 UTC
This problem is still lasting with both the permissive mode and the enforce mode. There is SUID bit for ping missing. Then everything is all right.

Comment 2 Daniel Walsh 2008-10-22 13:55:48 UTC
Edwin,  Are you using confined users?

id -Z

Comment 3 Edwin Schepers 2008-10-23 15:57:08 UTC
bash-3.2$ id -Z
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Is that good or bad?

Comment 4 Daniel Walsh 2008-10-23 18:49:08 UTC
Good, is the suid bit for ping set?

chmod 4755 /bin/ping

Should fix.

This is not an SELinux bug.