diff options
| author | James Morris <[email protected]> | 2009-01-29 01:30:28 +0000 |
|---|---|---|
| committer | James Morris <[email protected]> | 2009-01-29 21:55:13 +0000 |
| commit | ef76e748faa823a738d632ee4c8ed9adaabc8a40 (patch) | |
| tree | af59b8bad81255e4b22e36749dd702cb8db543b1 | |
| parent | selinux: remove unused cred_commit hook (diff) | |
| download | kernel-ef76e748faa823a738d632ee4c8ed9adaabc8a40.tar.gz kernel-ef76e748faa823a738d632ee4c8ed9adaabc8a40.zip | |
selinux: remove secondary ops call to task_setrlimit
Remove secondary ops call to task_setrlimit, which is
a noop in capabilities.
Acked-by: Serge Hallyn <[email protected]>
Acked-by: Eric Paris <[email protected]>
Signed-off-by: James Morris <[email protected]>
| -rw-r--r-- | security/selinux/hooks.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index afccada1f262..3aaa63cc5c74 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -3367,11 +3367,6 @@ static int selinux_task_getioprio(struct task_struct *p) static int selinux_task_setrlimit(unsigned int resource, struct rlimit *new_rlim) { struct rlimit *old_rlim = current->signal->rlim + resource; - int rc; - - rc = secondary_ops->task_setrlimit(resource, new_rlim); - if (rc) - return rc; /* Control the ability to change the hard limit (whether lowering or raising it), so that the hard limit can |
