Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2019 21:20:42 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r345558 - head/sys/netpfil/pf
Message-ID:  <201903262120.x2QLKgjX076790@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Mar 26 21:20:42 2019
New Revision: 345558
URL: https://svnweb.freebsd.org/changeset/base/345558

Log:
  pf: use UID_ROOT and GID_WHEEL named constants in make_dev
  
  No functional change but improves consistency and greppability of
  make_dev calls.
  
  Discussed with: kp

Modified:
  head/sys/netpfil/pf/pf_ioctl.c

Modified: head/sys/netpfil/pf/pf_ioctl.c
==============================================================================
--- head/sys/netpfil/pf/pf_ioctl.c	Tue Mar 26 20:56:12 2019	(r345557)
+++ head/sys/netpfil/pf/pf_ioctl.c	Tue Mar 26 21:20:42 2019	(r345558)
@@ -4353,7 +4353,7 @@ pf_load(void)
 
 	pf_mtag_initialize();
 
-	pf_dev = make_dev(&pf_cdevsw, 0, 0, 0, 0600, PF_NAME);
+	pf_dev = make_dev(&pf_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, PF_NAME);
 	if (pf_dev == NULL)
 		return (ENOMEM);
 



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