From eb5236c60fb1b92c602ea66505247d8d1ba6daa6 Mon Sep 17 00:00:00 2001 From: James Morris Date: Thu, 12 Jun 2008 01:42:35 +1000 Subject: [PATCH] --- yaml --- r: 99215 b: refs/heads/master c: 2baf06df85b27c1d64867883a0692519594f1ef2 h: refs/heads/master i: 99213: 8aaa21d497e870ac598071f2081c13cefdf60057 99211: 685a4589fdfec0ea7cf2a2a6262c9494277165f2 99207: f03ff6c1fb2615260a9d81eb6fe8129cbd7b2e9d 99199: d2845a5d2f6fe210e482de5daceb3e3f03751dee v: v3 --- [refs] | 2 +- trunk/security/selinux/hooks.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 9230111ddfee..4a8cba4ea7b7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e399f98224a03d2e85fb45eacba367c47173f6f9 +refs/heads/master: 2baf06df85b27c1d64867883a0692519594f1ef2 diff --git a/trunk/security/selinux/hooks.c b/trunk/security/selinux/hooks.c index 6e8d0e91c0ca..4130d64359a3 100644 --- a/trunk/security/selinux/hooks.c +++ b/trunk/security/selinux/hooks.c @@ -5196,12 +5196,12 @@ static int selinux_setprocattr(struct task_struct *p, struct task_struct *g, *t; struct mm_struct *mm = p->mm; read_lock(&tasklist_lock); - do_each_thread(g, t) + do_each_thread(g, t) { if (t->mm == mm && t != p) { read_unlock(&tasklist_lock); return -EPERM; } - while_each_thread(g, t); + } while_each_thread(g, t); read_unlock(&tasklist_lock); }