diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-10 21:47:53 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-10 21:47:53 +0000 |
commit | c20ced5cd2addb28ba6e7b3edfc3b473021124fa (patch) | |
tree | 4388678e8ea363fc8be267ae24e67a7f7fd7386a /sys/security/mac_test | |
parent | fdfd8c5336e229e2487b1c498b0934230ff167b6 (diff) | |
download | FreeBSD-src-c20ced5cd2addb28ba6e7b3edfc3b473021124fa.zip FreeBSD-src-c20ced5cd2addb28ba6e7b3edfc3b473021124fa.tar.gz |
Update for the KDB framework:
o Call kdb_enter() instead of Debugger().
Diffstat (limited to 'sys/security/mac_test')
-rw-r--r-- | sys/security/mac_test/mac_test.c | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c index d476638..b2ad10f 100644 --- a/sys/security/mac_test/mac_test.c +++ b/sys/security/mac_test/mac_test.c @@ -43,6 +43,7 @@ #include <sys/param.h> #include <sys/acl.h> #include <sys/conf.h> +#include <sys/kdb.h> #include <sys/extattr.h> #include <sys/kernel.h> #include <sys/mac.h> @@ -395,9 +396,9 @@ mac_test_destroy_bpfdesc_label(struct label *label) atomic_add_int(&destroy_count_bpfdesc, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_bpfdesc: dup destroy"); + kdb_enter("mac_test_destroy_bpfdesc: dup destroy"); } else { - Debugger("mac_test_destroy_bpfdesc: corrupted label"); + kdb_enter("mac_test_destroy_bpfdesc: corrupted label"); } } @@ -409,9 +410,9 @@ mac_test_destroy_cred_label(struct label *label) atomic_add_int(&destroy_count_cred, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_cred: dup destroy"); + kdb_enter("mac_test_destroy_cred: dup destroy"); } else { - Debugger("mac_test_destroy_cred: corrupted label"); + kdb_enter("mac_test_destroy_cred: corrupted label"); } } @@ -423,9 +424,9 @@ mac_test_destroy_devfsdirent_label(struct label *label) atomic_add_int(&destroy_count_devfsdirent, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_devfsdirent: dup destroy"); + kdb_enter("mac_test_destroy_devfsdirent: dup destroy"); } else { - Debugger("mac_test_destroy_devfsdirent: corrupted label"); + kdb_enter("mac_test_destroy_devfsdirent: corrupted label"); } } @@ -437,9 +438,9 @@ mac_test_destroy_ifnet_label(struct label *label) atomic_add_int(&destroy_count_ifnet, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_ifnet: dup destroy"); + kdb_enter("mac_test_destroy_ifnet: dup destroy"); } else { - Debugger("mac_test_destroy_ifnet: corrupted label"); + kdb_enter("mac_test_destroy_ifnet: corrupted label"); } } @@ -451,9 +452,9 @@ mac_test_destroy_inpcb_label(struct label *label) atomic_add_int(&destroy_count_inpcb, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_inpcb: dup destroy"); + kdb_enter("mac_test_destroy_inpcb: dup destroy"); } else { - Debugger("mac_test_destroy_inpcb: corrupted label"); + kdb_enter("mac_test_destroy_inpcb: corrupted label"); } } @@ -465,9 +466,9 @@ mac_test_destroy_ipq_label(struct label *label) atomic_add_int(&destroy_count_ipq, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_ipq: dup destroy"); + kdb_enter("mac_test_destroy_ipq: dup destroy"); } else { - Debugger("mac_test_destroy_ipq: corrupted label"); + kdb_enter("mac_test_destroy_ipq: corrupted label"); } } @@ -487,9 +488,9 @@ mac_test_destroy_mbuf_label(struct label *label) atomic_add_int(&destroy_count_mbuf, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_mbuf: dup destroy"); + kdb_enter("mac_test_destroy_mbuf: dup destroy"); } else { - Debugger("mac_test_destroy_mbuf: corrupted label"); + kdb_enter("mac_test_destroy_mbuf: corrupted label"); } } @@ -501,9 +502,9 @@ mac_test_destroy_mount_label(struct label *label) atomic_add_int(&destroy_count_mount, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_mount: dup destroy"); + kdb_enter("mac_test_destroy_mount: dup destroy"); } else { - Debugger("mac_test_destroy_mount: corrupted label"); + kdb_enter("mac_test_destroy_mount: corrupted label"); } } @@ -515,9 +516,9 @@ mac_test_destroy_mount_fs_label(struct label *label) atomic_add_int(&destroy_count_mount_fslabel, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_mount_fslabel: dup destroy"); + kdb_enter("mac_test_destroy_mount_fslabel: dup destroy"); } else { - Debugger("mac_test_destroy_mount_fslabel: corrupted label"); + kdb_enter("mac_test_destroy_mount_fslabel: corrupted label"); } } @@ -529,9 +530,9 @@ mac_test_destroy_socket_label(struct label *label) atomic_add_int(&destroy_count_socket, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_socket: dup destroy"); + kdb_enter("mac_test_destroy_socket: dup destroy"); } else { - Debugger("mac_test_destroy_socket: corrupted label"); + kdb_enter("mac_test_destroy_socket: corrupted label"); } } @@ -543,9 +544,9 @@ mac_test_destroy_socket_peer_label(struct label *label) atomic_add_int(&destroy_count_socket_peerlabel, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_socket_peerlabel: dup destroy"); + kdb_enter("mac_test_destroy_socket_peerlabel: dup destroy"); } else { - Debugger("mac_test_destroy_socket_peerlabel: corrupted label"); + kdb_enter("mac_test_destroy_socket_peerlabel: corrupted label"); } } @@ -557,9 +558,9 @@ mac_test_destroy_pipe_label(struct label *label) atomic_add_int(&destroy_count_pipe, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_pipe: dup destroy"); + kdb_enter("mac_test_destroy_pipe: dup destroy"); } else { - Debugger("mac_test_destroy_pipe: corrupted label"); + kdb_enter("mac_test_destroy_pipe: corrupted label"); } } @@ -571,9 +572,9 @@ mac_test_destroy_proc_label(struct label *label) atomic_add_int(&destroy_count_proc, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_proc: dup destroy"); + kdb_enter("mac_test_destroy_proc: dup destroy"); } else { - Debugger("mac_test_destroy_proc: corrupted label"); + kdb_enter("mac_test_destroy_proc: corrupted label"); } } @@ -585,9 +586,9 @@ mac_test_destroy_vnode_label(struct label *label) atomic_add_int(&destroy_count_vnode, 1); SLOT(label) = EXMAGIC; } else if (SLOT(label) == EXMAGIC) { - Debugger("mac_test_destroy_vnode: dup destroy"); + kdb_enter("mac_test_destroy_vnode: dup destroy"); } else { - Debugger("mac_test_destroy_vnode: corrupted label"); + kdb_enter("mac_test_destroy_vnode: corrupted label"); } } |