* any reason drmDropMaster() has to be root?
@ 2012-04-11 3:15 Vic Lee
0 siblings, 0 replies; only message in thread
From: Vic Lee @ 2012-04-11 3:15 UTC (permalink / raw)
To: dri-devel
Hi Everyone,
I am referring to this line in drm_drv.c in drm module:
DRM_IOCTL_DEF(DRM_IOCTL_DROP_MASTER, drm_dropmaster_ioctl, DRM_ROOT_ONLY)
I can understand that set_master requires root, but if the process is
already master and just want to drop itself from master, I don't see any
point why this has to be root. Could anyone clarify this? If not, I
suggest to change drop_master to DRM_AUTH only.
My use case is like this: I have an application which will start before
X starts, and this app will internally call drmOpen(). Since it's the
first app to open the gpu it automatically becomes master, but then X
won't start afterwards because X requires master for KMS to work. So in
the application I must call drmDropMaster() after drmOpen(), but then I
have to run the application as root just in order to drop master.
Thanks in advanced.
Vic
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-04-11 3:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-11 3:15 any reason drmDropMaster() has to be root? Vic Lee
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.