[Wayland-bugs] [Bug 99288] Check if user belongs to weston-launch group always fails if user in wheel
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jan 5 18:16:52 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=99288
Bug ID: 99288
Summary: Check if user belongs to weston-launch group always
fails if user in wheel
Product: Wayland
Version: unspecified
Hardware: Other
OS: FreeBSD
Status: NEW
Severity: blocker
Priority: medium
Component: weston
Assignee: wayland-bugs at lists.freedesktop.org
Reporter: johalun0 at gmail.com
Problem:
https://github.com/wayland-project/weston/blob/master/libweston/weston-launch.c#L158
This will exit early if user belongs to wheel group (id=0) it is listed before
weston-launch in the list of groups.
Solution:
Get number of groups (=n) and iterate from 0 to n-1.
n = getgroups(0, NULL);
for (i = 0; i<n; ++i) {
...
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170105/c41018a4/attachment.html>
More information about the wayland-bugs
mailing list