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
This commit is contained in:
kwm 2015-08-11 16:51:44 +00:00
parent 0c4c34019a
commit 6014c8f8db
3 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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