[Wayland-bugs] [Bug 65933] New: weston-launch -u doesn't work

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 19 05:45:34 PDT 2013


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

          Priority: medium
            Bug ID: 65933
          Assignee: wayland-bugs at lists.freedesktop.org
           Summary: weston-launch -u doesn't work
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: ross at burtonini.com
          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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20130619/bec95c10/attachment.html>


More information about the Wayland-bugs mailing list