Bug 164366

Summary: tftp server doesn't allow overwriting as per man page
Product: [Fedora] Fedora Reporter: P Fudd <ofudd>
Component: tftpAssignee: Radek Vokál <rvokal>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
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: 2005-09-07 11:00:47 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 P Fudd 2005-07-27 10:26:03 UTC
Description of problem:
According to the man page, 'touch /tftpboot/somefile; chmod 666
/tftpboot/somefile' should allow you to 'put somefile' using tftp.

Version-Release number of selected component (if applicable):
tftp-server-0.40-6

How reproducible:
Always

Steps to Reproduce:
1. Enable tftpd (chkconfig tftp on; service xinetd restart)
2. touch /tftpboot/somefile; chmod 666 /tftpboot/somefile
3. tftp localhost
4. put /etc/issue somefile
  
Actual results:
File not found

Expected results:
Contents should be put successfully

Additional info:
Problem is in server, not client.
strace bombs with buffer overflow error when tracing tftpd.

Comment 1 Radek Vokál 2005-08-08 12:03:41 UTC
The steps above work for me with SELinux turned off. When I turn on the SELinux
with `setenforce 1` the file is not uploaded with "Permission denied" error. Can
you please retest this issue with SELinux turned off? (eg. add `setenforce 0`
before your testcase)