[BusyBox 0000282]: The mount atime and diratime options set all the mount flags

bugs at busybox.net bugs at busybox.net
Thu Dec 8 04:17:53 UTC 2005


The following issue requires your FEEDBACK. 
====================================================================== 
http://busybox.net/bugs/view.php?id=282 
====================================================================== 
Reported By:                jbowler
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   282
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             06-03-2005 00:47 PDT
Last Modified:              12-07-2005 20:17 PST
====================================================================== 
Summary:                    The mount atime and diratime options set all the
mount flags
Description: 
If mount -o atime or mount -o diratime is used the mount proceeds with all
the mount flags (such as noexec etc) set.

This is because of the following lines from mount.c in the mount_options
structure initialisation:

        {"atime", http://busybox.net/bugs/view.php?id=#0, ~MS_NOATIME},
        {"diratime", http://busybox.net/bugs/view.php?id=#0, ~MS_NODIRATIME},

They should be {foo, ~foo, 0} - the arguments are {name, and, or}, and
http://busybox.net/bugs/view.php?id=#0
does nothing, or ~MS_NOATIME sets everything except MS_NOATIME.
====================================================================== 

---------------------------------------------------------------------- 
 landley - 12-07-05 20:17  
---------------------------------------------------------------------- 
I believe the mount rewrite fixed this.  Could you try to reproduce with
1.1-pre1 or current svn?

Rob 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-03-05 00:47  jbowler        New Issue                                    
12-07-05 20:17  landley        Note Added: 0000734                          
12-07-05 20:17  landley        Status                   assigned => feedback
======================================================================




More information about the busybox-cvs mailing list