summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorChris Wright <chris@wirex.com>2002-11-19 03:01:48 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-11-19 03:01:48 -0800
commita879e2fdb6836ca3028b3ca8c11e397b0f8b688b (patch)
tree1325e87318ad0ff4eff556db7e355036bca2e2b5 /kernel
parent36a0426742ce32c36345cefaf2d0cddabad8e4d3 (diff)
[PATCH] remove duplicated assignment from sys_capget.
This removes the code from cap_sysget that fills out the capability set being returned to userspace. The module handles this in a policy specific way. This updates the dummy.c module to fill in return data according to superuser policy, and also disables setting capabilities in superuser policy.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/capability.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/capability.c b/kernel/capability.c
index 5e2c835aba65..0ca6e1192e30 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -63,9 +63,6 @@ asmlinkage long sys_capget(cap_user_header_t header, cap_user_data_t dataptr)
} else
target = current;
- data.permitted = cap_t(target->cap_permitted);
- data.inheritable = cap_t(target->cap_inheritable);
- data.effective = cap_t(target->cap_effective);
ret = security_ops->capget(target, &data.effective, &data.inheritable, &data.permitted);
out: