Subject: PR/36661 CVS commit: src
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: netbsd-bugs
Date: 07/17/2007 15:45:02
The following reply was made to PR kern/36661; it has been noted by GNATS.
From: Juan Romero Pardines <xtraeme@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/36661 CVS commit: src
Date: Tue, 17 Jul 2007 15:43:08 +0000 (UTC)
Module Name: src
Committed By: xtraeme
Date: Tue Jul 17 15:43:08 UTC 2007
Modified Files:
src/sys/dev/sysmon: sysmon_envsys.c
src/usr.sbin/envstat: envstat.c
Log Message:
Only allow to use ENVSYS_SETDICTIONARY if the user has write permission
in the /dev/sysmon device.
Use O_RDONLY for ENVSYS_GETDICTIONARY and O_RDWR for ENVSYS_SETDICTIONARY
in envstat(8).
Fixes PR kern/36661 by YAMAMOTO Takashi.
To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 src/sys/dev/sysmon/sysmon_envsys.c
cvs rdiff -r1.35 -r1.36 src/usr.sbin/envstat/envstat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.