From a879e2fdb6836ca3028b3ca8c11e397b0f8b688b Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Tue, 19 Nov 2002 03:01:48 -0800 Subject: [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. --- kernel/capability.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'kernel') 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: -- cgit v1.2.3