mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
LSM: remove the task field from common_audit_data
There are no legitimate users. Always use current and get back some stack space for the common_audit_data. Signed-off-by: Eric Paris <[email protected]>
This commit is contained in:
parent
0972c74ecb
commit
b466066f9b
3 changed files with 2 additions and 8 deletions
|
|
@ -1429,7 +1429,6 @@ static int cred_has_capability(const struct cred *cred,
|
|||
|
||||
COMMON_AUDIT_DATA_INIT(&ad, LSM_AUDIT_DATA_CAP);
|
||||
ad.selinux_audit_data = &sad;
|
||||
ad.tsk = current;
|
||||
ad.u.cap = cap;
|
||||
|
||||
switch (CAP_TO_INDEX(cap)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue