1. 22 Apr, 2019 1 commit
  2. 11 Jun, 2018 1 commit
  3. 04 Dec, 2017 1 commit
  4. 28 Nov, 2017 3 commits
  5. 07 Apr, 2017 1 commit
    • Pekka Paalanen's avatar
      configure: replace HAVE_LIBDRM with BUILD_DRM_COMPOSITOR · 2667e9e3
      Pekka Paalanen authored
      
      
      HAVE_LIBDRM was used as a condition for the launcher infrastructure to
      call libdrm.so functions. It was set by an independent test for libdrm,
      which would silently continue if libdrm was not found. It was assumed
      that if you enabled a feature that used libdrm at runtime, the test for
      that feature would imply that HAVE_LIBDRM is also set. This was quite
      subtle.
      
      The only feature that actually uses libdrm.so at runtime is the DRM
      backend. No other backend needs the libdrm calls in the launcher
      infrastructure.
      
      Therefore to simplify things, stop using HAVE_LIBDRM and use
      BUILD_DRM_COMPOSITOR instead. If you enable the DRM compositor, you
      automatically also get libdrm support in the launchers.
      
      There are still things depending on LIBDRM_CFLAGS and LIBDRM_LIBS, so
      the test cannot be removed completely.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Reviewed-by: default avatarQuentin Glidic <sardemff7+git@sardemff7.net>
      2667e9e3
  6. 17 Mar, 2017 1 commit
  7. 15 Aug, 2016 1 commit
  8. 23 Jun, 2016 1 commit
  9. 02 Jun, 2016 1 commit
  10. 10 Aug, 2015 1 commit
  11. 10 Jul, 2015 1 commit
    • Bryce Harrington's avatar
      weston-launch: Drop redundant exit() · 430aee1c
      Bryce Harrington authored
      
      
      error(1, ...) already will exit, per man page: "If status has a nonzero
      value, then error() calls exit(3) to terminate the program using the
      given value as the exit status."  So exit(EXIT_FAILURE) is never
      reached.
      
      The EXIT_FAILURE macro is guaranteed to be non-zero.  Typically it's
      just 1, but on some systems (e.g. OpenVMS apparently) exit(1) means
      success so EXIT_FAILURE there is defined to some other non-zero value.
      Signed-off-by: default avatarBryce Harrington <bryce@osg.samsung.com>
      Reviewed-by: default avatarMarek Chalupa <mchqwerty@gmail.com>
      430aee1c
  12. 15 Jun, 2015 1 commit
  13. 06 Jun, 2015 1 commit
  14. 04 Nov, 2014 1 commit
  15. 24 Nov, 2013 1 commit
  16. 30 Oct, 2013 1 commit
  17. 25 Oct, 2013 1 commit
  18. 21 Oct, 2013 1 commit
  19. 10 Oct, 2013 1 commit
  20. 02 Oct, 2013 1 commit
  21. 01 Oct, 2013 1 commit
  22. 19 Sep, 2013 2 commits
  23. 18 Sep, 2013 4 commits
  24. 17 Sep, 2013 1 commit
  25. 13 Aug, 2013 1 commit
  26. 08 Aug, 2013 1 commit
    • Peter Hutterer's avatar
      weston-launch: always drop privileges before execve · 34be0608
      Peter Hutterer authored
      The current code works if pw->pw_shell is bash because:
       "If the shell is started with the effective user (group) id not equal to
       the real user (group) id, and the -p option is not supplied, these actions
       are taken and the effective user id is set to the real user id."
      
      Thus, for bash, weston's EUID == UID.
      
      For zsh, the -p option "is enabled automatically on startup if the effective
      user (group) ID is  not equal to the real user (group) ID."
      Thus, weston's EUID = 0, and if pw_shell is zsh, /run/user/$UID/wayland-0 is
      created with euid root and not writeable by the user, causing all clients to
      fail.
      
      Fix this by always dropping privileges to the user.
      
      Regression introduced in 636156d5.
      34be0608
  27. 30 Jul, 2013 2 commits
  28. 25 Jul, 2013 4 commits
  29. 22 Jul, 2013 1 commit
  30. 08 Jul, 2013 1 commit