[PATCH] lsm: add task_setioprio hook
authorJames Morris <jmorris@namei.org>
Fri, 23 Jun 2006 09:03:58 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:53 +0000 (07:42 -0700)
commit03e68060636e05989ea94bcb671ab633948f328c
treeaee5e7b55f31998536dd3a4f54f38caeee6105d6
parent9216dfad4fc97ab639ef0885efc713f3d7a20d5b
[PATCH] lsm: add task_setioprio hook

Implement an LSM hook for setting a task's IO priority, similar to the hook
for setting a tasks's nice value.

A previous version of this LSM hook was included in an older version of
multiadm by Jan Engelhardt, although I don't recall it being submitted
upstream.

Also included is the corresponding SELinux hook, which re-uses the setsched
permission in the proccess class.

Signed-off-by: James Morris <jmorris@namei.org>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Chris Wright <chrisw@sous-sol.org>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ioprio.c
include/linux/security.h
security/dummy.c
security/selinux/hooks.c