All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 90079] drmSetMaster and drmDropMaster need root privileges
@ 2015-04-17 21:11 bugzilla-daemon
  2015-04-20  1:21 ` bugzilla-daemon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-04-17 21:11 UTC (permalink / raw
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1222 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 2453 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 90079] drmSetMaster and drmDropMaster need root privileges
  2015-04-17 21:11 [Bug 90079] drmSetMaster and drmDropMaster need root privileges bugzilla-daemon
@ 2015-04-20  1:21 ` bugzilla-daemon
  2015-04-21 17:49 ` bugzilla-daemon
  2019-10-14 13:20 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-04-20  1:21 UTC (permalink / raw
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 376 bytes --]

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

Michel Dänzer <michel@daenzer.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libdrm                      |DRM/other

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1080 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 90079] drmSetMaster and drmDropMaster need root privileges
  2015-04-17 21:11 [Bug 90079] drmSetMaster and drmDropMaster need root privileges bugzilla-daemon
  2015-04-20  1:21 ` bugzilla-daemon
@ 2015-04-21 17:49 ` bugzilla-daemon
  2019-10-14 13:20 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-04-21 17:49 UTC (permalink / raw
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 666 bytes --]

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

--- Comment #1 from Emil Velikov <emil.l.velikov@gmail.com> ---
The root limitation when using the KMS API is deliberate. If your program only
wants to render things then opening/using a render node is what you want.

Looking at the problem from another angle:
As of recently one could use X server without root access, although that
involves using systemd-logind. Not 100% if that will do exactly what you want
but having a quick look at the code and checking David's blog [1] on the topic
won't hurt.

[1] https://dvdhrm.wordpress.com/

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1484 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 90079] drmSetMaster and drmDropMaster need root privileges
  2015-04-17 21:11 [Bug 90079] drmSetMaster and drmDropMaster need root privileges bugzilla-daemon
  2015-04-20  1:21 ` bugzilla-daemon
  2015-04-21 17:49 ` bugzilla-daemon
@ 2019-10-14 13:20 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2019-10-14 13:20 UTC (permalink / raw
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 906 bytes --]

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

Martin Peres <martin.peres@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #2 from Martin Peres <martin.peres@free.fr> ---
Hi,

Freedesktop's Bugzilla instance is EOLed and open bugs are about to be migrated
to http://gitlab.freedesktop.org.

To avoid migrating out of date bugs, I am now closing all the bugs that did not
see any activity in the past year. If the issue is still happening, please
create a new bug in the relevant project at https://gitlab.freedesktop.org/drm
(use misc by default).

Sorry about the noise!

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2509 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-14 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-17 21:11 [Bug 90079] drmSetMaster and drmDropMaster need root privileges bugzilla-daemon
2015-04-20  1:21 ` bugzilla-daemon
2015-04-21 17:49 ` bugzilla-daemon
2019-10-14 13:20 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.