From owner-cvs-all Tue Sep 15 17:13:52 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA13576 for cvs-all-outgoing; Tue, 15 Sep 1998 17:13:52 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA13286; Tue, 15 Sep 1998 17:12:16 -0700 (PDT) (envelope-from ken@FreeBSD.org) From: Kenneth Merry Received: (from ken@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA07389; Tue, 15 Sep 1998 17:11:54 -0700 (PDT) Date: Tue, 15 Sep 1998 17:11:54 -0700 (PDT) Message-Id: <199809160011.RAA07389@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/etc/etc.i386 MAKEDEV src/sys/cam cam_xpt.c src/sys/cam/scsi scsi_pass.c Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ken 1998/09/15 17:11:54 PDT Modified files: etc/etc.i386 MAKEDEV Log: Change the permissions for the transport layer (xpt) and passthrough (pass) devices from 644 to 600. Reviewed by: imp, gibbs Revision Changes Path 1.172 +3 -5 src/etc/etc.i386/MAKEDEV Modified files: sys/cam cam_xpt.c sys/cam/scsi scsi_pass.c Log: Check to make sure that this device is opened read-write, not just read only. Previously, if the device was chmoded 644, someone could open it with the O_RDONLY flag and issue any ioctl to the device. Reviewed by: imp, gibbs Revision Changes Path 1.3 +7 -1 src/sys/cam/cam_xpt.c 1.2 +7 -1 src/sys/cam/scsi/scsi_pass.c