Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc MAKEDEV.tmpl: make /dev/wsfont world-readable



details:   https://anonhg.NetBSD.org/src/rev/b6fa20f95362
branches:  trunk
changeset: 366189:b6fa20f95362
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue May 17 11:41:41 2022 +0000

description:
MAKEDEV.tmpl: make /dev/wsfont world-readable

Now that we have WSDISPLAYIO_LISTFONTS we want users to be able to use it.

NB: older kernels didn't check that WSDISPLAYIO_LDFONT was performed
on wsfont(4) device opened for writing and relied on its restrictive
root-only permissions to restrict who can load fonts.

diffstat:

 etc/MAKEDEV.tmpl |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 08d4ceb43ee4 -r b6fa20f95362 etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl  Tue May 17 11:37:54 2022 +0000
+++ b/etc/MAKEDEV.tmpl  Tue May 17 11:41:41 2022 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV.tmpl,v 1.229 2022/04/08 10:17:52 andvar Exp $
+#      $NetBSD: MAKEDEV.tmpl,v 1.230 2022/05/17 11:41:41 uwe Exp $
 #
 # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1729,7 +1729,7 @@
        ;;
 
 wsfont)
-       mkdev wsfont c %wsfont_chr% 0
+       mkdev wsfont c %wsfont_chr% 0 644
        ;;
 
 cir[0-9]*)



Home | Main Index | Thread Index | Old Index