Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2017 00:39:23 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r321740 - stable/10/sys/dev/ksyms
Message-ID:  <201707310039.v6V0dN8J032070@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Mon Jul 31 00:39:22 2017
New Revision: 321740
URL: https://svnweb.freebsd.org/changeset/base/321740

Log:
  MFC r321639:
  Restrict permissions on /dev/ksyms to 0400.

Modified:
  stable/10/sys/dev/ksyms/ksyms.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/ksyms/ksyms.c
==============================================================================
--- stable/10/sys/dev/ksyms/ksyms.c	Mon Jul 31 00:35:21 2017	(r321739)
+++ stable/10/sys/dev/ksyms/ksyms.c	Mon Jul 31 00:39:22 2017	(r321740)
@@ -592,7 +592,7 @@ ksyms_modevent(module_t mod __unused, int type, void *
 	case MOD_LOAD:
 		mtx_init(&ksyms_mtx, "KSyms mtx", NULL, MTX_DEF);
 		ksyms_dev = make_dev(&ksyms_cdevsw, 0, UID_ROOT, GID_WHEEL,
-		    0444, KSYMS_DNAME);
+		    0400, KSYMS_DNAME);
 		break;
 
 	case MOD_UNLOAD:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707310039.v6V0dN8J032070>