https://bugs.freedesktop.org/show_bug.cgi?id=65933

          Priority: medium
            Bug ID: 65933
          Assignee: [email protected]
           Summary: weston-launch -u doesn't work
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: weston
           Product: Wayland

When weston-launch is used as root with the -u option to switch to a non-root
user, the supplementary group list isn't set so this user is a member of root's
group and the primary group of the user (in my situation, the group list is
"root xuser").

This doesn't work too well when permissions on /dev/dri/card0 are root:video
660, because this user isn't currently a member of video (despite /etc/group
saying otherwise).  Permission denied, weston fails.

It looks like the solution on Linux would be to use getgrouplist()/setgroups()
before setgid()/setuid().

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to