From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 90079] drmSetMaster and drmDropMaster need root privileges Date: Fri, 17 Apr 2015 21:11:41 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0337357397==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 81EEF6E557 for ; Fri, 17 Apr 2015 14:11:41 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0337357397== Content-Type: multipart/alternative; boundary="1429305101.DE85b0.23874"; charset="UTF-8" --1429305101.DE85b0.23874 Date: Fri, 17 Apr 2015 21:11:41 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=90079 Bug ID: 90079 Summary: drmSetMaster and drmDropMaster need root privileges Product: DRI Version: unspecified Hardware: All OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: libdrm Assignee: dri-devel@lists.freedesktop.org Reporter: g1938560@trbvm.com I run a small, user-space program that renders images in my virtual console with drmModeSetCRTC and family. I also support virtual terminal switching with ioctl() on stuff from linux/vt.h and some basic signal handling. Switching back to X server, however, just renders... nothing. Apparently I'm supposed to call drmDropMaster so that X server can pick up from there. I get -1 and errno is set to Permission Denied. When run as root, it works as expected. Is there any reason why these functions require root privileges? More importantly, is there any workaround for this so that my user space program can let X server draw its stuff once user switches back to X's virtual terminal? -- You are receiving this mail because: You are the assignee for the bug. --1429305101.DE85b0.23874 Date: Fri, 17 Apr 2015 21:11:41 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 90079
Summary drmSetMaster and drmDropMaster need root privileges
Product DRI
Version unspecified
Hardware All
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component libdrm
Assignee dri-devel@lists.freedesktop.org
Reporter g1938560@trbvm.com

I run a small, user-space program that renders images in my virtual console
with drmModeSetCRTC and family. I also support virtual terminal switching with
ioctl() on stuff from linux/vt.h and some basic signal handling.

Switching back to X server, however, just renders... nothing.

Apparently I'm supposed to call drmDropMaster so that X server can pick up from
there. I get -1 and errno is set to Permission Denied. When run as root, it
works as expected.

Is there any reason why these functions require root privileges?
More importantly, is there any workaround for this so that my user space
program can let X server draw its stuff once user switches back to X's virtual
terminal?


You are receiving this mail because:
  • You are the assignee for the bug.
--1429305101.DE85b0.23874-- --===============0337357397== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0337357397==--