Bug 244923 - RHEL5.1: vfs support for FUSE
Summary: RHEL5.1: vfs support for FUSE
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Eric Sandeen
QA Contact: Martin Jenner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-19 21:04 UTC by Eric Sandeen
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version: RHBA-2007-0959
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-07 19:53:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0959 0 normal SHIPPED_LIVE Updated kernel packages for Red Hat Enterprise Linux 5 Update 1 2007-11-08 00:47:37 UTC

Description Eric Sandeen 2007-06-19 21:04:09 UTC
A minor, uninvasive change to the vfs will help support external builds of more
recent FUSE code.  Since Bug 193720: Enable FUSE probably won't make 5.1, this
vfs change would at least make it easier for anyone who wants to use/test fuse
with RHEL5.  (there is another non-critical fuse-related vfs change, "fs
subtypes" which would also be nice, but is more invasive & a KABI breaker, so
that one is left out)

Patch as sent to rhkernel-list on 6/6/07:

For Bug 193720: Enable FUSE

This is a very minor change to the vfs for upstream fuse, 
and should not affect anyone else.

From: Miklos Szeredi <miklos>
Date: Fri, 29 Sep 2006 08:59:35 +0000 (-0700)
Subject: [PATCH] vfs: define new lookup flag for chdir
X-Git-Tag: v2.6.19-rc1~798
X-Git-Url:
http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=650a898342b3fa21c392c06a2b7010fa19823efa

[PATCH] vfs: define new lookup flag for chdir

In the "operation does permission checking" model used by fuse, chdir
permission is not checked, since there's no chdir method.

For this case set a lookup flag, which will be passed to ->permission(), so
fuse can distinguish it from permission checks for other operations.

Signed-off-by: Miklos Szeredi <miklos>
Cc: Al Viro <viro.org.uk>
Signed-off-by: Andrew Morton <akpm>
Signed-off-by: Linus Torvalds <torvalds>
---

Index: linux-2.6.18-20.EL/fs/open.c
===================================================================
--- linux-2.6.18-20.EL.orig/fs/open.c
+++ linux-2.6.18-20.EL/fs/open.c
@@ -546,7 +546,8 @@ asmlinkage long sys_chdir(const char __u
 	struct nameidata nd;
 	int error;
 
-	error = __user_walk(filename, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &nd);
+	error = __user_walk(filename,
+			    LOOKUP_FOLLOW|LOOKUP_DIRECTORY|LOOKUP_CHDIR, &nd);
 	if (error)
 		goto out;
 
Index: linux-2.6.18-20.EL/include/linux/namei.h
===================================================================
--- linux-2.6.18-20.EL.orig/include/linux/namei.h
+++ linux-2.6.18-20.EL/include/linux/namei.h
@@ -56,6 +56,7 @@ enum {LAST_NORM, LAST_ROOT, LAST_DOT, LA
 #define LOOKUP_OPEN		(0x0100)
 #define LOOKUP_CREATE		(0x0200)
 #define LOOKUP_ACCESS		(0x0400)
+#define LOOKUP_CHDIR		(0x0800)
 
 extern int FASTCALL(__user_walk(const char __user *, unsigned, struct nameidata
*));
 extern int FASTCALL(__user_walk_fd(int dfd, const char __user *, unsigned,
struct nameidata *));

Comment 1 RHEL Program Management 2007-06-19 21:06:25 UTC
This request was evaluated by Red Hat Kernel Team for inclusion in a Red
Hat Enterprise Linux maintenance release, and has moved to bugzilla 
status POST.

Comment 2 Don Zickus 2007-07-19 21:25:30 UTC
in kernel-2.6.18-32.el5

Comment 4 Mike Gahagan 2007-09-20 20:07:13 UTC
Confirmed vfs fuse enabler patch is in.

Comment 6 errata-xmlrpc 2007-11-07 19:53:34 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0959.html



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