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

bugs at busybox.net bugs at busybox.net
Tue Jan 10 02:38:01 UTC 2006


The following issue has been CLOSED 
====================================================================== 
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:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             06-03-2005 00:47 PDT
Last Modified:              01-09-2006 18:38 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 

---------------------------------------------------------------------- 
 landley - 01-09-06 18:38  
---------------------------------------------------------------------- 
svn 13215 

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
01-09-06 18:38  landley        Status                   feedback => closed  
01-09-06 18:38  landley        Note Added: 0000894                          
======================================================================




More information about the busybox-cvs mailing list