From f1b0c5d5a4b70f1ad5bc8698cbb29b2edae442bf Mon Sep 17 00:00:00 2001 From: Bryan Buckley Date: Mon, 17 Oct 2011 19:06:52 -0500 Subject: OMAP4: SMC: remove group id check within SMC driver Previously the driver will only allow the SMC daemon to start by the kernel or a gid of 0. We remove this gid check and rely on the linux device node access permissions. Change-Id: Iaf2747c6f58a722f7668f9a5ad3ea7177c1233bf Signed-off-by: Bryan Buckley Conflicts: security/smc/tf_conn.c --- security/smc/tf_conn.c | 9 --------- 1 file changed, 9 deletions(-) mode change 100644 => 100755 security/smc/tf_conn.c (limited to 'security') diff --git a/security/smc/tf_conn.c b/security/smc/tf_conn.c old mode 100644 new mode 100755 index 943b95c..7f267e6 --- a/security/smc/tf_conn.c +++ b/security/smc/tf_conn.c @@ -794,15 +794,6 @@ int tf_open_client_session( if (connection->owner == TF_CONNECTION_OWNER_KERNEL) { dprintk(KERN_DEBUG "tf_open_client_session: " "TF_LOGIN_PRIVILEGED for kernel API\n"); - } else if ((current_euid() != TF_PRIVILEGED_UID_GID) && - (current_egid() != TF_PRIVILEGED_UID_GID) && - (current_euid() != 0) && (current_egid() != 0)) { - dprintk(KERN_ERR "tf_open_client_session: " - " user %d, group %d not allowed to open " - "session with TF_LOGIN_PRIVILEGED\n", - current_euid(), current_egid()); - error = -EACCES; - goto error; } else { dprintk(KERN_DEBUG "tf_open_client_session: " "TF_LOGIN_PRIVILEGED for %u:%u\n", -- cgit v1.1