Skip to contentSkip to conversation

mount uses wrong default umask for fat filesystem]

[email protected]: Karel Kulhavy 2 participants 2 messages Jun 27, 2005

lore
Share & tools
lore
#0 lore raw

----- Forwarded message from [email protected] -----

Date: Sun, 26 Jun 2005 23:36:36 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 93671] mount uses wrong default umask for fat filesystem

Clear-Text: http://bugs.gentoo.org/show_bug.cgi?id=93671
Secure: https://bugs.gentoo.org/show_bug.cgi?id=93671

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

------- Additional Comments From [email protected] 2005-06-26 16:36 PDT ------- This is not a mount bug, but a kernel-bug. umask=nnn is passed along other user-flags to the mount syscall as a string, and the kernel-filesystem driver parses the string and denies the syscall if a syntax-error occures. Not all filesystems supports umask, so umask is not sent unless spesified. If the mount man-page claims that umask is defaulted to the current shell umask setting, the kernel-driver needs to take this into account when umask isn't found in the string it receives from user-space. Just my 5 cent about this bug

Signature · 5 lines
Configure bugmail: http://bugs.gentoo.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.

----- End forwarded message -----
#1 lore raw
Quoted 8 lines · Karel Kulhavy

------- Additional Comments From [email protected] 2005-06-26 16:36 PDT ------- This is not a mount bug, but a kernel-bug. umask=nnn is passed along other user-flags to the mount syscall as a string, and the kernel-filesystem driver parses the string and denies the syscall if a syntax-error occures. Not all filesystems supports umask, so umask is not sent unless spesified. If the mount man-page claims that umask is defaulted to the current shell umask setting, the kernel-driver needs to take this into account when umask isn't found in the string it receives from user-space. Just my 5 cent about this bug

Look util-linux-2.12q... hm, mount command is reseting the umask in main().

Signature · 1 line
OGAWA Hirofumi <[email protected]>