Date: Thu, 5 Jul 2001 10:10:46 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/linprocfs linprocfs.c src/sys/fs/procfs procfs_ctl.c procfs_dbregs.c procfs_fpregs.c procfs_mem.c procfs_regs.c procfs_status.c procfs_vnops.c src/sys/kern kern_event.c kern_ktrace.c kern_proc.c kern_prot.c kern_resource.c ... Message-ID: <200107051710.f65HAk179935@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2001/07/05 10:10:46 PDT Modified files: sys/compat/linprocfs linprocfs.c sys/fs/procfs procfs_ctl.c procfs_dbregs.c procfs_fpregs.c procfs_mem.c procfs_regs.c procfs_status.c procfs_vnops.c sys/kern kern_event.c kern_ktrace.c kern_proc.c kern_prot.c kern_resource.c sys_process.c sys/posix4 p1003_1b.c sys/sys proc.h Log: o Replace calls to p_can(..., P_CAN_xxx) with calls to p_canxxx(). The p_can(...) construct was a premature (and, it turns out, awkward) abstraction. The individual calls to p_canxxx() better reflect differences between the inter-process authorization checks, such as differing checks based on the type of signal. This has a side effect of improving code readability. o Replace direct credential authorization checks in ktrace() with invocation of p_candebug(), while maintaining the special case check of KTR_ROOT. This allows ktrace() to "play more nicely" with new mandatory access control schemes, as well as making its authorization checks consistent with other "debugging class" checks. o Eliminate "privused" construct for p_can*() calls which allowed the caller to determine if privilege was required for successful evaluation of the access control check. This primitive is currently unused, and as such, serves only to complicate the API. Approved by: ({procfs,linprocfs} changes) des Obtained from: TrustedBSD Project Revision Changes Path 1.33 +2 -2 src/sys/compat/linprocfs/linprocfs.c 1.30 +2 -2 src/sys/fs/procfs/procfs_ctl.c 1.11 +2 -2 src/sys/fs/procfs/procfs_dbregs.c 1.18 +2 -2 src/sys/fs/procfs/procfs_fpregs.c 1.52 +2 -2 src/sys/fs/procfs/procfs_mem.c 1.17 +2 -2 src/sys/fs/procfs/procfs_regs.c 1.32 +2 -2 src/sys/fs/procfs/procfs_status.c 1.99 +10 -10 src/sys/fs/procfs/procfs_vnops.c 1.27 +2 -2 src/sys/kern/kern_event.c 1.54 +7 -17 src/sys/kern/kern_ktrace.c 1.96 +5 -5 src/sys/kern/kern_proc.c 1.94 +13 -52 src/sys/kern/kern_prot.c 1.85 +10 -10 src/sys/kern/kern_resource.c 1.68 +3 -3 src/sys/kern/sys_process.c 1.15 +6 -6 src/sys/posix4/p1003_1b.c 1.172 +4 -3 src/sys/sys/proc.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?200107051710.f65HAk179935>