diff options
author | James Morris <jmorris@namei.org> | 2011-06-30 18:44:55 +1000 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2011-06-30 18:44:55 +1000 |
commit | da3f1c7b7d34e66cf571a613525ca0d23f92d42f (patch) | |
tree | 0233826259cbe4cd44755ccc893b77a3e8ac5213 /security/apparmor/domain.c | |
parent | 5b944a71a192977c1c018bbcfa0c52dca48e2368 (diff) | |
parent | 25e75dff519bcce2cb35023105e7df51d7b9e691 (diff) |
Merge branch 'for-security' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/apparmor-dev into next
Diffstat (limited to 'security/apparmor/domain.c')
-rw-r--r-- | security/apparmor/domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c index c825c6e0b636..78adc4303efa 100644 --- a/security/apparmor/domain.c +++ b/security/apparmor/domain.c @@ -73,7 +73,6 @@ static int may_change_ptraced_domain(struct task_struct *task, cred = get_task_cred(tracer); tracerp = aa_cred_profile(cred); } - rcu_read_unlock(); /* not ptraced */ if (!tracer || unconfined(tracerp)) @@ -82,6 +81,7 @@ static int may_change_ptraced_domain(struct task_struct *task, error = aa_may_ptrace(tracer, tracerp, to_profile, PTRACE_MODE_ATTACH); out: + rcu_read_unlock(); if (cred) put_cred(cred); |