From owner-cvs-all Fri Aug 16 19:36:26 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D63937B400; Fri, 16 Aug 2002 19:36:18 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76AF243E7B; Fri, 16 Aug 2002 19:36:17 -0700 (PDT) (envelope-from rwatson@FreeBSD.org) Received: from freefall.freebsd.org (rwatson@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7H2aHJU023632; Fri, 16 Aug 2002 19:36:17 -0700 (PDT) (envelope-from rwatson@freefall.freebsd.org) Received: (from rwatson@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7H2aHiI023631; Fri, 16 Aug 2002 19:36:17 -0700 (PDT) Message-Id: <200208170236.g7H2aHiI023631@freefall.freebsd.org> From: Robert Watson Date: Fri, 16 Aug 2002 19:36:17 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/linux linux_file.c linux_ioctl.c src/sys/compat/svr4 svr4_fcntl.c svr4_filio.c svr4_sockio.c svr4_stream.c svr4_termios.c svr4_ttold.c src/sys/dev/aac aac.c src/sys/dev/drm drm_drv.h src/sys/dev/tdfx tdfx_pci.c ... X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG rwatson 2002/08/16 19:36:16 PDT Modified files: sys/compat/linux linux_file.c linux_ioctl.c sys/compat/svr4 svr4_fcntl.c svr4_filio.c svr4_sockio.c svr4_stream.c svr4_termios.c svr4_ttold.c sys/dev/aac aac.c sys/dev/drm drm_drv.h sys/dev/tdfx tdfx_pci.c sys/fs/fifofs fifo_vnops.c sys/i386/ibcs2 ibcs2_fcntl.c ibcs2_ioctl.c sys/kern kern_descrip.c kern_event.c sys_generic.c sys_pipe.c sys_socket.c vfs_vnops.c sys/sys file.h socketvar.h Log: In continuation of early fileop credential changes, modify fo_ioctl() to accept an 'active_cred' argument reflecting the credential of the thread initiating the ioctl operation. - Change fo_ioctl() to accept active_cred; change consumers of the fo_ioctl() interface to generally pass active_cred from td->td_ucred. - In fifofs, initialize filetmp.f_cred to ap->a_cred so that the invocations of soo_ioctl() are provided access to the calling f_cred. Pass ap->a_td->td_ucred as the active_cred, but note that this is required because we don't yet distinguish file_cred and active_cred in invoking VOP's. - Update kqueue_ioctl() for its new argument. - Update pipe_ioctl() for its new argument, pass active_cred rather than td_ucred to MAC for authorization. - Update soo_ioctl() for its new argument. - Update vn_ioctl() for its new argument, use active_cred rather than td->td_ucred to authorize VOP_IOCTL() and the associated VOP_GETATTR(). Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Revision Changes Path 1.69 +2 -1 src/sys/compat/linux/linux_file.c 1.87 +36 -18 src/sys/compat/linux/linux_ioctl.c 1.25 +2 -1 src/sys/compat/svr4/svr4_fcntl.c 1.16 +1 -1 src/sys/compat/svr4/svr4_filio.c 1.12 +4 -2 src/sys/compat/svr4/svr4_sockio.c 1.31 +2 -1 src/sys/compat/svr4/svr4_stream.c 1.10 +9 -5 src/sys/compat/svr4/svr4_termios.c 1.11 +23 -12 src/sys/compat/svr4/svr4_ttold.c 1.40 +1 -1 src/sys/dev/aac/aac.c 1.5 +4 -0 src/sys/dev/drm/drm_drv.h 1.19 +1 -1 src/sys/dev/tdfx/tdfx_pci.c 1.72 +6 -2 src/sys/fs/fifofs/fifo_vnops.c 1.21 +2 -1 src/sys/i386/ibcs2/ibcs2_fcntl.c 1.25 +13 -8 src/sys/i386/ibcs2/ibcs2_ioctl.c 1.155 +9 -7 src/sys/kern/kern_descrip.c 1.45 +3 -2 src/sys/kern/kern_event.c 1.110 +3 -3 src/sys/kern/sys_generic.c 1.116 +4 -3 src/sys/kern/sys_pipe.c 1.44 +2 -1 src/sys/kern/sys_socket.c 1.163 +5 -4 src/sys/kern/vfs_vnops.c 1.52 +5 -4 src/sys/sys/file.h 1.94 +1 -1 src/sys/sys/socketvar.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message