Thread (39 messages) flat view 39 messages, 7 authors, 2021-03-17

Re: [RFC PATCH 1/4] lsm: separate security_task_getsecid() into subjective and objective variants

From: James Morris <jmorris@namei.org>
Date: 2021-02-20 02:58:26
Also in: selinux

On Fri, 19 Feb 2021, Paul Moore wrote:
quoted hunk ↗ jump to hunk
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index c119736ca56ac..39d501261108d 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -2700,7 +2700,7 @@ static void binder_transaction(struct binder_proc *proc,
 		u32 secid;
 		size_t added_size;
 
-		security_task_getsecid(proc->tsk, &secid);
+		security_task_getsecid_subj(proc->tsk, &secid);
 		ret = security_secid_to_secctx(secid, &secctx, &secctx_sz);
 		if (ret) {
 			return_error = BR_FAILED_REPLY;
Can someone from the Android project confirm this is correct for binder?

-- 
James Morris
[off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help