projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set version to 2.13-pre
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
session.c
diff --git
a/src/bin/lttng-sessiond/session.c
b/src/bin/lttng-sessiond/session.c
index 95395c282a2ab79d89b23450a3cc531bea7e28ad..f8134f8ad966a950b0c97f13bbb18f2ba12d89b9 100644
(file)
--- a/
src/bin/lttng-sessiond/session.c
+++ b/
src/bin/lttng-sessiond/session.c
@@
-1296,18
+1296,13
@@
error:
}
/*
}
/*
- * Check if the UID
or GID match
the session. Root user has access to all
+ * Check if the UID
matches
the session. Root user has access to all
* sessions.
*/
* sessions.
*/
-
int session_access_ok(struct ltt_session *session, uid_t uid, gid_t g
id)
+
bool session_access_ok(struct ltt_session *session, uid_t u
id)
{
assert(session);
{
assert(session);
-
- if (uid != session->uid && gid != session->gid && uid != 0) {
- return 0;
- } else {
- return 1;
- }
+ return (uid == session->uid) || uid == 0;
}
/*
}
/*
This page took
0.024297 seconds
and
4
git commands to generate.