aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-01-25 14:10:14 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-25 14:10:14 -0500
commitd4a63a83933bcd1ef4f3ff6e8637e187dea25632 (patch)
treeb840dc8bfc733f8c2efe1c25c2d87b97daceb34c /arch
parent7ae0e06b909e31bf9a396a2326ef09b768d9b4c4 (diff)
parentf58437f1f9161847c636e4fed5569ed5b908af36 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull user namespaces work from Eric Biederman: "The work to convert the kernel to use kuid_t and kgid_t has been finished since 3.12 so it is time to remove the scaffolding that allowed the work to progress incrementally. The first patch on this branch just removes the scaffolding, ensuring we will always get compile errors if people accidentally try the userspace and the kernel uid and gid types. The second patch an overlooked and unused chunk of mips code that that fails to build after the first patch. The code hasn't been in linux-next for long (as I was out of it and could not sheppared the cold properly) but the patch has been around for a long time just waiting for the day when I had finished the uid/gid conversions. Putting the code in linux-next did find the compile failure on mips so I took the time to get that fix reviewed and included. Beyond that I am not too worried about errors because all these two patches do is delete a modest amount of code" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: MIPS: VPE: Remove vpe_getuid and vpe_getgid userns: userns: Remove UIDGID_STRICT_TYPE_CHECKS
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/include/asm/vpe.h2
-rw-r--r--arch/mips/kernel/vpe.c28
2 files changed, 0 insertions, 30 deletions
diff --git a/arch/mips/include/asm/vpe.h b/arch/mips/include/asm/vpe.h
index c6e1b961537d..0880fe8809b1 100644
--- a/arch/mips/include/asm/vpe.h
+++ b/arch/mips/include/asm/vpe.h
@@ -30,8 +30,6 @@ struct vpe_notifications {
30extern int vpe_notify(int index, struct vpe_notifications *notify); 30extern int vpe_notify(int index, struct vpe_notifications *notify);
31 31
32extern void *vpe_get_shared(int index); 32extern void *vpe_get_shared(int index);
33extern int vpe_getuid(int index);
34extern int vpe_getgid(int index);
35extern char *vpe_getcwd(int index); 33extern char *vpe_getcwd(int index);
36 34
37#endif /* _ASM_VPE_H */ 35#endif /* _ASM_VPE_H */
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c
index 59b2b3cd7885..2d5c142bad67 100644
--- a/arch/mips/kernel/vpe.c
+++ b/arch/mips/kernel/vpe.c
@@ -105,7 +105,6 @@ struct vpe {
105 unsigned long len; 105 unsigned long len;
106 char *pbuffer; 106 char *pbuffer;
107 unsigned long plen; 107 unsigned long plen;
108 unsigned int uid, gid;
109 char cwd[VPE_PATH_MAX]; 108 char cwd[VPE_PATH_MAX];
110 109
111 unsigned long __start; 110 unsigned long __start;
@@ -1083,9 +1082,6 @@ static int vpe_open(struct inode *inode, struct file *filp)
1083 v->load_addr = NULL; 1082 v->load_addr = NULL;
1084 v->len = 0; 1083 v->len = 0;
1085 1084
1086 v->uid = filp->f_cred->fsuid;
1087 v->gid = filp->f_cred->fsgid;
1088
1089 v->cwd[0] = 0; 1085 v->cwd[0] = 0;
1090 ret = getcwd(v->cwd, VPE_PATH_MAX); 1086 ret = getcwd(v->cwd, VPE_PATH_MAX);
1091 if (ret < 0) 1087 if (ret < 0)
@@ -1269,30 +1265,6 @@ void *vpe_get_shared(int index)
1269 1265
1270EXPORT_SYMBOL(vpe_get_shared); 1266EXPORT_SYMBOL(vpe_get_shared);
1271 1267
1272int vpe_getuid(int index)
1273{
1274 struct vpe *v;
1275
1276 if ((v = get_vpe(index)) == NULL)
1277 return -1;
1278
1279 return v->uid;
1280}
1281
1282EXPORT_SYMBOL(vpe_getuid);
1283
1284int vpe_getgid(int index)
1285{
1286 struct vpe *v;
1287
1288 if ((v = get_vpe(index)) == NULL)
1289 return -1;
1290
1291 return v->gid;
1292}
1293
1294EXPORT_SYMBOL(vpe_getgid);
1295
1296int vpe_notify(int index, struct vpe_notifications *notify) 1268int vpe_notify(int index, struct vpe_notifications *notify)
1297{ 1269{
1298 struct vpe *v; 1270 struct vpe *v;