diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-09 09:59:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-09 09:59:15 +0000 |
commit | ec3eb6eb7962023f3f5d69cbbb6d48fb2cac8a6d (patch) | |
tree | 33c2847bb3d718c88ea4b8c911b66048ce81735b /debian/patches/01_default_perms.diff | |
parent | Adding upstream version 2.4.120. (diff) | |
download | libdrm-ec3eb6eb7962023f3f5d69cbbb6d48fb2cac8a6d.tar.xz libdrm-ec3eb6eb7962023f3f5d69cbbb6d48fb2cac8a6d.zip |
Adding debian version 2.4.120-2.debian/2.4.120-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/01_default_perms.diff')
-rw-r--r-- | debian/patches/01_default_perms.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/01_default_perms.diff b/debian/patches/01_default_perms.diff new file mode 100644 index 0000000..0b6f582 --- /dev/null +++ b/debian/patches/01_default_perms.diff @@ -0,0 +1,20 @@ +From: David Nusinow <dnusinow@debian.org> +Date: Sun, Apr 15 13:11:06 2007 -0400 +Forwarded: not-needed +Subject: Change default device permission to 666 + +Patch libdrm to default to device permission 666 so we don't have to do +it in xorg.conf. The only way libdrm can do anything is through the +server anyway. This can still be overridden by a user's xorg.conf. + +--- a/xf86drm.h ++++ b/xf86drm.h +@@ -74,7 +74,7 @@ extern "C" { + /* Default /dev/dri directory permissions 0755 */ + #define DRM_DEV_DIRMODE \ + (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) +-#define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP) ++#define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) + + #ifdef __OpenBSD__ + #define DRM_DIR_NAME "/dev" |