Bug 115368

Summary: /dev/fd0 increases file permissions
Product: [Retired] Red Hat Linux Reporter: Steve Grubb <linux_4ever>
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: riel
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-04-03 21:17:20 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 Steve Grubb 2004-02-11 15:29:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2.1)
Gecko/20030225

Description of problem:
When copying files to the floppy disk, the file permissions are
getting modified. The modification is that the file permissions are
increased in capabilities. read/write files are turned into executable
files. For example:

[root@linux fd_test]# touch test.txt
[root@linux fd_test]# ls -l test.txt
-rw-r--r--    1 root     root            0 Feb 11 10:18 test.txt
[root@linux fd_test]# mount /dev/fd0
[root@linux fd_test]# cp test.txt /mnt/floppy/
[root@linux fd_test]# ls -l /mnt/floppy/
total 0
-rwxr-xr-x    1 root     root            0 Feb 11 10:18 test.txt
[root@linux fd_test]# cat /etc/fstab | grep floppy
/dev/fd0         /mnt/floppy             auto    noauto,owner    0 0
[root@linux fd_test]# umask
0022
[root@linux fd_test]# umask 077
[root@linux fd_test]# touch test2.txt
[root@linux fd_test]# ls -l test2.txt
-rw-------    1 root     root            0 Feb 11 10:20 test2.txt
[root@linux fd_test]# cp test2.txt /mnt/floppy/
[root@linux fd_test]# ls -l /mnt/floppy/test2.txt
-rwxr-xr-x    1 root     root            0 Feb 11 10:20
/mnt/floppy/test2.txt
[root@linux fd_test]#

Version-Release number of selected component (if applicable):
kernel-2.4.20-28.9

How reproducible:
Always

Steps to Reproduce:
See above

Actual Results:  See above

Expected Results:  The file permissions should be the same.

Additional info:

I am using RH9. If this is deemed a real bug and its fixed, please
issue a new RH9 kernel.