svn commit: r286640 - in head/sys: dev/drm dev/drm2 sys
Koop Mast
kwm at FreeBSD.org
Tue Aug 11 16:51:45 UTC 2015
Author: kwm (ports committer)
Date: Tue Aug 11 16:51:44 2015
New Revision: 286640
URL: https://svnweb.freebsd.org/changeset/base/286640
Log:
Instead of defining the actualy user and group id in the drmP.h files
define GID_VIDEO in sys/conf.h, and use it together with UID_ROOT
to define DRM_DEV_UID and DRM_DEV_GID in the drmP.h files.
So there is one place where the UID's and GID's are defined.
Submitted by: ed@
Reviewed by: ed@, dumbbell@
Differential Revision: https://reviews.freebsd.org/D3360
Modified:
head/sys/dev/drm/drmP.h
head/sys/dev/drm2/drmP.h
head/sys/sys/conf.h
Modified: head/sys/dev/drm/drmP.h
==============================================================================
--- head/sys/dev/drm/drmP.h Tue Aug 11 16:08:10 2015 (r286639)
+++ head/sys/dev/drm/drmP.h Tue Aug 11 16:51:44 2015 (r286640)
@@ -174,8 +174,8 @@ SYSCTL_DECL(_hw_drm);
#define __OS_HAS_AGP 1
#define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)
-#define DRM_DEV_UID 0
-#define DRM_DEV_GID 44 /* "video" group */
+#define DRM_DEV_UID UID_ROOT
+#define DRM_DEV_GID GID_VIDEO
#define wait_queue_head_t atomic_t
#define DRM_WAKEUP(w) wakeup((void *)w)
Modified: head/sys/dev/drm2/drmP.h
==============================================================================
--- head/sys/dev/drm2/drmP.h Tue Aug 11 16:08:10 2015 (r286639)
+++ head/sys/dev/drm2/drmP.h Tue Aug 11 16:51:44 2015 (r286640)
@@ -1592,8 +1592,8 @@ extern int drm_pcie_get_speed_cap_mask(s
SYSCTL_DECL(_hw_drm);
#define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)
-#define DRM_DEV_UID 0
-#define DRM_DEV_GID 44 /* "video" group */
+#define DRM_DEV_UID UID_ROOT
+#define DRM_DEV_GID GID_VIDEO
#define DRM_WAKEUP(w) wakeup((void *)w)
#define DRM_WAKEUP_INT(w) wakeup(w)
Modified: head/sys/sys/conf.h
==============================================================================
--- head/sys/sys/conf.h Tue Aug 11 16:08:10 2015 (r286639)
+++ head/sys/sys/conf.h Tue Aug 11 16:51:44 2015 (r286640)
@@ -299,6 +299,7 @@ void devfs_free_cdp_inode(ino_t ino);
#define GID_OPERATOR 5
#define GID_BIN 7
#define GID_GAMES 13
+#define GID_VIDEO 44
#define GID_DIALER 68
#define GID_NOBODY 65534
More information about the svn-src-all
mailing list