diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-02-25 03:24:39 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-02-25 03:24:39 +0000 |
commit | 09eb839cca8c61f73b442ee1015b02aea8ff2ab7 (patch) | |
tree | e8eb0fc689bfdff345c063b9dc06cfd2f7ad32d6 /lib/libugidfw/ugidfw.h | |
parent | 5ef41f0642b5a50bfde8e227df634fa9b729c49e (diff) | |
download | FreeBSD-src-09eb839cca8c61f73b442ee1015b02aea8ff2ab7.zip FreeBSD-src-09eb839cca8c61f73b442ee1015b02aea8ff2ab7.tar.gz |
Add bsde_add_rule(), which is similar to bsde_set_rule() except that
the caller does not specify the rule number -- instead, the kernel
module is probed for the next available rule, which is then used.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, McAfee Research
Diffstat (limited to 'lib/libugidfw/ugidfw.h')
-rw-r--r-- | lib/libugidfw/ugidfw.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libugidfw/ugidfw.h b/lib/libugidfw/ugidfw.h index 41296c3..7637ca5 100644 --- a/lib/libugidfw/ugidfw.h +++ b/lib/libugidfw/ugidfw.h @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2002 Networks Associates Technology, Inc. + * Copyright (c) 2002, 2004 Networks Associates Technology, Inc. * All rights reserved. * * This software was developed for the FreeBSD Project by Network Associates @@ -54,6 +54,8 @@ int bsde_get_rule(int rulenum, struct mac_bsdextended_rule *rule, int bsde_delete_rule(int rulenum, size_t buflen, char *errstr); int bsde_set_rule(int rulenum, struct mac_bsdextended_rule *rule, size_t buflen, char *errstr); +int bsde_add_rule(int *rulename, struct mac_bsdextended_rule *rule, + size_t buflen, char *errstr); __END_DECLS #endif |