]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce the new function
authorphk <phk@FreeBSD.org>
Sun, 21 Nov 1999 19:03:20 +0000 (19:03 +0000)
committerphk <phk@FreeBSD.org>
Sun, 21 Nov 1999 19:03:20 +0000 (19:03 +0000)
commitfd22d5412a1070b4d246fd214adad09041a53661
tree867fad2f774e25520c2cda23aadefcd7ffc0c9a7
parent8e826fbb578d38649959b6b64ece53cd8b855cbc
Introduce the new function
        p_trespass(struct proc *p1, struct proc *p2)
which returns zero or an errno depending on the legality of p1 trespassing
on p2.

Replace kern_sig.c:CANSIGNAL() with call to p_trespass() and one
extra signal related check.

Replace procfs.h:CHECKIO() macros with calls to p_trespass().

Only show command lines to process which can trespass on the target
process.
19 files changed:
sys/fs/procfs/procfs.h
sys/fs/procfs/procfs_dbregs.c
sys/fs/procfs/procfs_fpregs.c
sys/fs/procfs/procfs_mem.c
sys/fs/procfs/procfs_regs.c
sys/fs/procfs/procfs_status.c
sys/fs/procfs/procfs_vnops.c
sys/kern/kern_proc.c
sys/kern/kern_prot.c
sys/kern/kern_sig.c
sys/kern/sys_process.c
sys/miscfs/procfs/procfs.h
sys/miscfs/procfs/procfs_dbregs.c
sys/miscfs/procfs/procfs_fpregs.c
sys/miscfs/procfs/procfs_mem.c
sys/miscfs/procfs/procfs_regs.c
sys/miscfs/procfs/procfs_status.c
sys/miscfs/procfs/procfs_vnops.c
sys/sys/proc.h