diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-09-29 19:51:11 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-10-06 12:12:59 -0400 |
commit | 6508d904e6fb66ce4c34617f72b38d6714c4b9f6 (patch) | |
tree | a5d24f696c9a9045c3880671eeb5fbc6ca9f61ab /fs/cifs/cifs_fs_sb.h | |
parent | 13cfb7334eb6fd0fc06da5589aea1e947791f1d6 (diff) |
cifs: have find_readable/writable_file filter by fsuid
When we implement multiuser mounts, we'll need to filter filehandles
by fsuid. Add a flag for multiuser mounts and code to filter by
fsuid when it's set.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_fs_sb.h')
-rw-r--r-- | fs/cifs/cifs_fs_sb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifs_fs_sb.h b/fs/cifs/cifs_fs_sb.h index ba0afd3acff4..e04e6923d354 100644 --- a/fs/cifs/cifs_fs_sb.h +++ b/fs/cifs/cifs_fs_sb.h | |||
@@ -37,6 +37,7 @@ | |||
37 | #define CIFS_MOUNT_NOSSYNC 0x4000 /* don't do slow SMBflush on every sync*/ | 37 | #define CIFS_MOUNT_NOSSYNC 0x4000 /* don't do slow SMBflush on every sync*/ |
38 | #define CIFS_MOUNT_FSCACHE 0x8000 /* local caching enabled */ | 38 | #define CIFS_MOUNT_FSCACHE 0x8000 /* local caching enabled */ |
39 | #define CIFS_MOUNT_MF_SYMLINKS 0x10000 /* Minshall+French Symlinks enabled */ | 39 | #define CIFS_MOUNT_MF_SYMLINKS 0x10000 /* Minshall+French Symlinks enabled */ |
40 | #define CIFS_MOUNT_MULTIUSER 0x20000 /* multiuser mount */ | ||
40 | 41 | ||
41 | struct cifs_sb_info { | 42 | struct cifs_sb_info { |
42 | struct cifsTconInfo *ptcon; /* primary mount */ | 43 | struct cifsTconInfo *ptcon; /* primary mount */ |
@@ -48,7 +49,7 @@ struct cifs_sb_info { | |||
48 | gid_t mnt_gid; | 49 | gid_t mnt_gid; |
49 | mode_t mnt_file_mode; | 50 | mode_t mnt_file_mode; |
50 | mode_t mnt_dir_mode; | 51 | mode_t mnt_dir_mode; |
51 | int mnt_cifs_flags; | 52 | unsigned int mnt_cifs_flags; |
52 | int prepathlen; | 53 | int prepathlen; |
53 | char *prepath; /* relative path under the share to mount to */ | 54 | char *prepath; /* relative path under the share to mount to */ |
54 | #ifdef CONFIG_CIFS_DFS_UPCALL | 55 | #ifdef CONFIG_CIFS_DFS_UPCALL |