Bug 31356

Summary: mount should ignore the 'kudzu' option in fstab.
Product: [Retired] Red Hat Linux Reporter: Sam Varshavchik <mrsam>
Component: mountAssignee: Erik Troan <ewt>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: bero, herrold, johnsonm, notting, pbrown
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-03-13 12:06:30 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 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 
off?


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.