Bug 31356 - mount should ignore the 'kudzu' option in fstab.
Summary: mount should ignore the 'kudzu' option in fstab.
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mount   
(Show other bugs)
Version: 7.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Erik Troan
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-03-10 16:02 UTC by Sam Varshavchik
Modified: 2007-04-18 16:32 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-03-13 12:06:30 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Sam Varshavchik 2001-03-10 16:02:02 UTC
Installed RC2.  There's an IDE floppy on /dev/hda.  Kudzu wrote the
following to /etc/fstab:

/dev/hda  /mnt/ls120.0    auto    noauto,owner,kudzu 0 0

"mount /dev/hda" or "mount /mnt/ls120.0" fails.  I have to explicitly write
everything out "mount -t ext2 /dev/hda /mnt/ls120.0".

Experimentation showed that mount was passing the "kudzu" option directly
to the kernel, and the kernel mount fails because it does not recognize
this non-standard option:

mount -t ext2 -o nosuid,noexec,kudzu /dev/hda /mnt/ls120.0

This does not work (that's what the kernel gets from a plain "mount /dev/hda").

mount -t ext2 -o nosuid,noexec /dev/hda /mnt/ls120.0

This does.

mount should ignore any "kudzu" option it finds in fstab.

Comment 1 Bernhard Rosenkraenzer 2001-03-12 17:47:26 UTC
I could work around this in mount, but I'm not sure it's the right thing to do.
Michael, should the kernel ignore the kudzu option or should mount strip it 

Comment 2 Glen Foster 2001-03-12 19:20:31 UTC
This defect considered MUST-FIX (show-stopper) for Florence GOLD

Comment 3 Michael K. Johnson 2001-03-13 04:45:01 UTC
Strip it off in mount.  It's a special-case option that the kernel should
not be burdened with dealing with, and dealing with it in mount is better.
Policy goes in user-space whenever possible.

The kudzu option was added because ewt thought it didn't break anything.
Looks like he was wrong...

Comment 4 Erik Troan 2001-03-13 12:06:19 UTC
It looks like it. The bit that surprises me is that I tested mounting a couple
of pieces of media w/ the kudzu flag and auto and it worked fine.

I'll patch this in mount this afternoon.

Comment 5 Erik Troan 2001-03-13 15:53:55 UTC
Added a patch to mount package to make it ignore the kudzu option.

Note You need to log in before you can comment on or make changes to this bug.