<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - drmSetMaster and drmDropMaster need root privileges"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90079">90079</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>drmSetMaster and drmDropMaster need root privileges
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libdrm
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>g1938560@trbvm.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>