diff options
| author | Todd Kjos <[email protected]> | 2021-10-12 16:56:14 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2021-10-15 00:48:43 +0000 |
| commit | 4d5b5539742d2554591751b4248b0204d20dcc9d (patch) | |
| tree | e7385a6ef0db22a34eb98d69ec2983ecd57bb515 /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
| parent | binder: use cred instead of task for selinux checks (diff) | |
| download | kernel-4d5b5539742d2554591751b4248b0204d20dcc9d.tar.gz kernel-4d5b5539742d2554591751b4248b0204d20dcc9d.zip | |
binder: use cred instead of task for getsecid
Use the 'struct cred' saved at binder_open() to lookup
the security ID via security_cred_getsecid(). This
ensures that the security context that opened binder
is the one used to generate the secctx.
Cc: [email protected] # 5.4+
Fixes: ec74136ded79 ("binder: create node flag to request sender's security context")
Signed-off-by: Todd Kjos <[email protected]>
Suggested-by: Stephen Smalley <[email protected]>
Reported-by: kernel test robot <[email protected]>
Acked-by: Casey Schaufler <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions
