aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorEric W. Biederman2012-02-07 18:20:48 -0600
committerEric W. Biederman2013-02-13 08:00:51 -0600
commita0a5386ac6400493cc2eb8b58583e56af0708730 (patch)
tree2c46bb450629c4ee3296857ae20d77d902554500 /init
parentf74f70f8b10b435f5f20247e70d1d86b53a59685 (diff)
downloadam43-linux-kernel-a0a5386ac6400493cc2eb8b58583e56af0708730.tar.gz
am43-linux-kernel-a0a5386ac6400493cc2eb8b58583e56af0708730.tar.xz
am43-linux-kernel-a0a5386ac6400493cc2eb8b58583e56af0708730.zip
afs: Support interacting with multiple user namespaces
Modify struct afs_file_status to store owner as a kuid_t and group as a kgid_t. In xdr_decode_AFSFetchStatus as owner is now a kuid_t and group is now a kgid_t don't use the EXTRACT macro. Instead perform the work of the extract macro explicitly. Read the value with ntohl and convert it to the appropriate type with make_kuid or make_kgid. Test if the value is different from what is stored in status and update changed. Update the value in status. In xdr_encode_AFS_StoreStatus call from_kuid or from_kgid as we are computing the on the wire encoding. Initialize uids with GLOBAL_ROOT_UID instead of 0. Initialize gids with GLOBAL_ROOT_GID instead of 0. Cc: David Howells <dhowells@redhat.com> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig1
1 files changed, 0 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 394d24f99ef..4570b02abcc 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1071,7 +1071,6 @@ config UIDGID_CONVERTED
1071 default y 1071 default y
1072 1072
1073 # Filesystems 1073 # Filesystems
1074 depends on AFS_FS = n
1075 depends on CIFS = n 1074 depends on CIFS = n
1076 depends on CODA_FS = n 1075 depends on CODA_FS = n
1077 depends on GFS2_FS = n 1076 depends on GFS2_FS = n