summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Wright <chrisw@osdl.org>2004-10-22 19:49:57 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-22 19:49:57 -0700
commit67a2dad3e8fa684029099fe5ee461cdf9b28e88e (patch)
tree064230fdb007e1d0d26ff32785bbde313a8dcbaa /include
parent69fbc509599aace0dd75121d993da74c70c619a6 (diff)
[PATCH] delay rq_lock acquisition in setscheduler
Doing access control checks with rq_lock held can cause deadlock when audit messages are created (via printk or audit infrastructure) which trigger a wakeup and deadlock, as noted by both SELinux and SubDomain folks. This patch will let the security checks happen w/out lock held, then re-sample the p->policy in case it was raced. Originally from John Johansen <johansen@immunix.com>, reworked by me. AFAIK, this version drew no objections from Ingo or Andrea. From: John Johansen <johansen@immunix.com> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Chris Wright <chrisw@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions