Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W
weston
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 273
    • Issues 273
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 114
    • Merge Requests 114
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • wayland
  • weston
  • Issues
  • #86

Closed
Open
Opened Jan 05, 2017 by Bugzilla Migration User@bugzilla-migration

Check if user belongs to weston-launch group always fails if user in wheel

Submitted by Johannes Lundberg

Assigned to Wayland bug list

Link to original bug (#99288)

Description

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) { ... }

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: wayland/weston#86