summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2015-08-11 16:51:44 +0000
committerkwm <kwm@FreeBSD.org>2015-08-11 16:51:44 +0000
commit6014c8f8dbbf7c3a92b67dc2953ecfc8dff0bf9a (patch)
treebc08b1a873925399dfb420fd26864802880fb289
parent0c4c34019a98c0ccc8125e094cab56f2de6705a4 (diff)
downloadFreeBSD-src-6014c8f8dbbf7c3a92b67dc2953ecfc8dff0bf9a.zip
FreeBSD-src-6014c8f8dbbf7c3a92b67dc2953ecfc8dff0bf9a.tar.gz
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
-rw-r--r--sys/dev/drm/drmP.h4
-rw-r--r--sys/dev/drm2/drmP.h4
-rw-r--r--sys/sys/conf.h1
3 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/drm/drmP.h b/sys/dev/drm/drmP.h
index 7ff1495..dc7d804 100644
--- a/sys/dev/drm/drmP.h
+++ b/sys/dev/drm/drmP.h
@@ -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)
diff --git a/sys/dev/drm2/drmP.h b/sys/dev/drm2/drmP.h
index 88cb2b7..b110d8b 100644
--- a/sys/dev/drm2/drmP.h
+++ b/sys/dev/drm2/drmP.h
@@ -1592,8 +1592,8 @@ extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask);
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)
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 315551a..d821703 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -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
OpenPOWER on IntegriCloud