Date: Fri, 16 Aug 2002 19:36:17 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> 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 ... Message-ID: <200208170236.g7H2aHiI023631@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208170236.g7H2aHiI023631>
