bsde_get_rule_countbsde_get_rule_slots
- file system firewall statistics
LIBRARY
Lb libugidfw
SYNOPSIS
#include <ugidfw.h> int
bsde_get_rule_count (size_t errlen char *errstr); int
bsde_get_rule_slots (size_t errlen char *errstr);
DESCRIPTION
The
bsde_get_rule_count ();
and
bsde_get_rule_slots ();
functions
return the total number of enforced rules
and the total number of used rule slots, respectively.
If an error occurs,
Fa *errstr
is filled in with the error string
(up to
Fa errlen
characters, including the terminating
NUL )
RETURN VALUES
The
bsde_get_rule_count ();
and
bsde_get_rule_slots ();
functions return
the number of enforced rules and rule slots (respectively)
if successful;
otherwise the value -1 is returned and the value of
Fa *errstr
is filled in as documented in
Sx DESCRIPTION .
This software was contributed to the
Fx Project by Network Associates Labs,
the Security Research Division of Network Associates
Inc.
under DARPA/SPAWAR contract N66001-01-C-8035
(``CBOSS''
)
as part of the DARPA CHATS research program.