Bug 99288

Summary: Check if user belongs to weston-launch group always fails if user in wheel
Product: Wayland Reporter: Johannes Lundberg <johalun0>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: blocker    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:

Description Johannes Lundberg 2017-01-05 18:16:52 UTC
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) {
    ...
}
Comment 1 GitLab Migration User 2018-06-08 23:55:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/wayland/weston/issues/86.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.