]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Revisit the capability failure trace points. The initial implementation
authordes <des@FreeBSD.org>
Tue, 18 Oct 2011 07:28:58 +0000 (07:28 +0000)
committerdes <des@FreeBSD.org>
Tue, 18 Oct 2011 07:28:58 +0000 (07:28 +0000)
commit1b405df8baa78dedceda6da24510b9597aad726d
treea66a1f7a0cad9c0bdb1b03d06f7f48c643033aca
parent6876e3d9c139cd8d3dbaaaaf463d9a1ff2103a5e
Revisit the capability failure trace points.  The initial implementation
only logged instances where an operation on a file descriptor required
capabilities which the file descriptor did not have.  By adding a type enum
to struct ktr_cap_fail, we can catch other types of capability failures as
well, such as disallowed system calls or attempts to wrap a file descriptor
with more capabilities than it had to begin with.
sys/kern/kern_ktrace.c
sys/kern/sys_capability.c
sys/kern/vfs_lookup.c
sys/sys/ktrace.h
usr.bin/kdump/kdump.c