aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorBryan Buckley <bryan.buckley@ti.com>2011-10-17 19:06:52 -0500
committerZiyann <jaraidaniel@gmail.com>2014-10-01 12:56:10 +0200
commitf1b0c5d5a4b70f1ad5bc8698cbb29b2edae442bf (patch)
treeb0327895f04223c41855f379718f71f7c95a7280 /security
parent97ef359b9f6bc9a0432eb85e78b6abae7e5e78b9 (diff)
downloadkernel_samsung_tuna-f1b0c5d5a4b70f1ad5bc8698cbb29b2edae442bf.zip
kernel_samsung_tuna-f1b0c5d5a4b70f1ad5bc8698cbb29b2edae442bf.tar.gz
kernel_samsung_tuna-f1b0c5d5a4b70f1ad5bc8698cbb29b2edae442bf.tar.bz2
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 <bryan.buckley@ti.com> Conflicts: security/smc/tf_conn.c
Diffstat (limited to 'security')
-rwxr-xr-x[-rw-r--r--]security/smc/tf_conn.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/security/smc/tf_conn.c b/security/smc/tf_conn.c
index 943b95c..7f267e6 100644..100755
--- 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",