summaryrefslogtreecommitdiff
path: root/sys/security/mac_test
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-06-26 13:49:32 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-06-26 13:49:32 +0000
commit127cc7673d5357a0d854c1ce4eb690c55acad47f (patch)
tree4c7e99211e99575d20cee9055c08810ddd7fd021 /sys/security/mac_test
parentaa2a33b4fa59f45eddaf1b957cb32f5ff8a6ee9a (diff)
Notes
Diffstat (limited to 'sys/security/mac_test')
-rw-r--r--sys/security/mac_test/mac_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c
index 8a3d646db4cd..c25e93784198 100644
--- a/sys/security/mac_test/mac_test.c
+++ b/sys/security/mac_test/mac_test.c
@@ -1112,6 +1112,7 @@ test_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd,
LABEL_CHECK(cred->cr_label, MAGIC_CRED);
LABEL_CHECK(shmfdlabel, MAGIC_POSIX_SHM);
+ COUNTER_INC(posixshm_check_mmap);
return (0);
}
@@ -1123,6 +1124,7 @@ test_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd,
LABEL_CHECK(cred->cr_label, MAGIC_CRED);
LABEL_CHECK(shmfdlabel, MAGIC_POSIX_SHM);
+ COUNTER_INC(posixshm_check_open);
return (0);
}
@@ -1135,6 +1137,7 @@ test_posixshm_check_stat(struct ucred *active_cred,
LABEL_CHECK(active_cred->cr_label, MAGIC_CRED);
LABEL_CHECK(file_cred->cr_label, MAGIC_CRED);
LABEL_CHECK(shmfdlabel, MAGIC_POSIX_SHM);
+ COUNTER_INC(posixshm_check_stat);
return (0);
}
@@ -1147,6 +1150,7 @@ test_posixshm_check_truncate(struct ucred *active_cred,
LABEL_CHECK(active_cred->cr_label, MAGIC_CRED);
LABEL_CHECK(file_cred->cr_label, MAGIC_CRED);
LABEL_CHECK(shmfdlabel, MAGIC_POSIX_SHM);
+ COUNTER_INC(posixshm_check_truncate);
return (0);
}
@@ -1158,6 +1162,7 @@ test_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd,
LABEL_CHECK(cred->cr_label, MAGIC_CRED);
LABEL_CHECK(shmfdlabel, MAGIC_POSIX_SHM);
+ COUNTER_INC(posixshm_check_unlink);
return (0);
}