summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemun Lee <sm79.lee@samsung.com>2013-11-05 17:43:49 +0900
committerJacek Janczyk <j.janczyk@samsung.com>2013-11-05 16:05:55 +0100
commit156c1e5dc2bc77dfa0bf31f3597ee29737c5e6b8 (patch)
tree1b0fc391a217abd01597b66d9b676daba6593f8f
parenta460d6d513ba6b5d56536ff12c26e0e5b71fba59 (diff)
downloadkdbus-bus-156c1e5dc2bc77dfa0bf31f3597ee29737c5e6b8.tar.gz
kdbus-bus-156c1e5dc2bc77dfa0bf31f3597ee29737c5e6b8.tar.bz2
kdbus-bus-156c1e5dc2bc77dfa0bf31f3597ee29737c5e6b8.zip
Use current_euid and current_egid for user credentials
-rw-r--r--connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/connection.c b/connection.c
index f83144d78ef..de2cb770755 100644
--- a/connection.c
+++ b/connection.c
@@ -1228,9 +1228,9 @@ static long kdbus_conn_ioctl_ep(struct file *file, unsigned int cmd,
conn->match_db = kdbus_match_db_new();
conn->creds.uid = from_kuid_munged(current_user_ns(),
- current_uid());
+ current_euid());
conn->creds.gid = from_kgid_munged(current_user_ns(),
- current_gid());
+ current_egid());
conn->creds.pid = current->pid;
conn->creds.tid = current->tgid;
conn->creds.starttime = timespec_to_ns(&current->start_time);