* [uml-devel] Bug in hostfs
@ 2004-08-07 8:59 Peter Hartshorn
2004-08-07 17:11 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Peter Hartshorn @ 2004-08-07 8:59 UTC (permalink / raw)
To: user-mode-linux-devel
I just started hacking in uml. First thing I did was to re-enable reporting of
real uid and gid for hostfs files (I needed it). Then I noticed that I could
only write to a file if it had the execute bit set (ie 0744). I narrowed this
down to the following:
file: arch/um/fs/hostfs/host_fs.c
line: 60
original:
static int access_file(char *file, int uid, int gid, int r, int w, int x,
modified:
static in access_file(char *file, int r, int w, int x, int uid, int gid,
So, as you can see, the parameters for the function were in the wrong order.
The order was also changed in the hostfs.h file.
PS. sorry about the lack of a patch (I didn't think it was a big enough patch)
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [uml-devel] Bug in hostfs
2004-08-07 8:59 [uml-devel] Bug in hostfs Peter Hartshorn
@ 2004-08-07 17:11 ` Jeff Dike
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2004-08-07 17:11 UTC (permalink / raw)
To: Peter Hartshorn; +Cc: user-mode-linux-devel
On Sat, Aug 07, 2004 at 06:59:12PM +1000, Peter Hartshorn wrote:
> original:
> static int access_file(char *file, int uid, int gid, int r, int w, int x,
>
> modified:
> static in access_file(char *file, int r, int w, int x, int uid, int gid,
>
> So, as you can see, the parameters for the function were in the wrong order.
> The order was also changed in the hostfs.h file.
Fixed, nice spotting..
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-07 16:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-07 8:59 [uml-devel] Bug in hostfs Peter Hartshorn
2004-08-07 17:11 ` Jeff Dike
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.