diff options
author | paul <paul> | 2005-09-29 16:39:32 +0200 |
---|---|---|
committer | paul <paul> | 2005-09-29 16:39:32 +0200 |
commit | ceacedba227e77156f92f7676b274c48a2817e8f (patch) | |
tree | f362ecc8f6f183347ebe45ab79727b54d2f527a6 /lib/zebra.h | |
parent | 2005-09-29 Alain Ritoux <alain.ritoux@6wind.com> (diff) | |
download | frr-ceacedba227e77156f92f7676b274c48a2817e8f.tar.xz frr-ceacedba227e77156f92f7676b274c48a2817e8f.zip |
2005-09-29 Paul Jakma <paul.jakma@sun.com>
* configure.ac: Add the test for Solaris least-privileges. Set
defines for whether capabilities are supported and whether of
the linux or solaris variety.
Add missing-prototypes, missing-declarations, char-subscripts
and cast-qual warnings to default cflags, cause Hasso enjoys warnings,
and we really should clean the remaining ones up. (ie isisd..).
* (*/*main.c) Update the zebra_capabilities_t arrays in the various
daemons to match the changes made in lib/privs.h.
* zebra.h: Solaris capabilities requires priv.h to be included.
* privs.{c,h}: Add support for Solaris Least-Privileges.
privs.h: Reduce some of the abstract capabilities, which do
not have rough equivalents on both systems. Rename the net
related caps to _NET, as they should have been in first
place.
(zprivs_terminate) should take the zebra_privs_t as argument so
that it can update change pointer.
Add an additional privilege state, ZPRIVS_UNKNOWN.
* privs.c: (various capability functions) Add
Solaris privileges variants.
(zprivs_state) Use privs.c specific generic types to
represent various capability/privilege related types, so that
each can be typedef'd as appropriate on each platform.
(zprivs_null_state) static added, to hold the state the null
method should report (should be raised by default, and
LOWERED if zprivs_terminate has been called)
(zprivs_state_null) Report back the zprivs_null_state.
(cap_map) Make it able to map abstract capability to multiple
system capabilities.
(zcaps2sys) Map to abstract capabilities to multiple system
privileges/capabilities.
(zprivs_init) move capability related init to seperate
function, zprivs_caps_init.
(zprivs_terminate) ditto, moved to zprivs_caps_terminate.
Set the change_state callback to the NULL state, so the
user can continue to run and use the callbacks.
Diffstat (limited to 'lib/zebra.h')
-rw-r--r-- | lib/zebra.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h index b4ab33527..03af70d37 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -120,6 +120,10 @@ typedef int socklen_t; #include <sys/prctl.h> #endif /* HAVE_LCAPS */ +#ifdef HAVE_SOLARIS_CAPABILITIES +#include <priv.h> +#endif /* HAVE_SOLARIS_CAPABILITIES */ + /* network include group */ #include <sys/socket.h> |