diff options
author | hasso <hasso> | 2003-06-04 17:41:54 +0000 |
---|---|---|
committer | hasso <hasso> | 2003-06-04 17:41:54 +0000 |
commit | ba3a0bc5fa05691b211340bef69c5c7a3659d412 (patch) | |
tree | af7b0b8ca5ba7f6c39b96be1ea180135a9159e64 /lib/privs.h | |
parent | edd7c245d3a77012abf801da00d5664ebaa5f749 (diff) |
Paul forgot probably to commit privs.[c|h] changes. Had to reorder includes
in zebra.h to make it compile in debian.
Diffstat (limited to 'lib/privs.h')
-rw-r--r-- | lib/privs.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/privs.h b/lib/privs.h index 3cdd20da..65c9f358 100644 --- a/lib/privs.h +++ b/lib/privs.h @@ -63,7 +63,7 @@ struct zebra_privs_t int cap_num_i; char *user; /* user and group to run as */ char *group; - + char *vty_group; /* group to chown vty socket to */ /* methods */ int (*change) (zebra_privs_ops_t); /* change privileges, 0 on success */ @@ -71,9 +71,21 @@ struct zebra_privs_t (*current_state) (void); /* current privilege state */ }; +struct zprivs_ids_t +{ + /* -1 is undefined */ + uid_t uid_priv; /* privileged uid */ + uid_t uid_normal; /* normal uid */ + gid_t gid_priv; /* privileged uid */ + gid_t gid_normal; /* normal uid */ + gid_t gid_vty; /* vty gid */ +}; + /* initialise zebra privileges */ void zprivs_init (struct zebra_privs_t *zprivs); /* drop all and terminate privileges */ void zprivs_terminate (void); + /* query for runtime uid's and gid's, eg vty needs this */ +void zprivs_get_ids(struct zprivs_ids_t *); #endif /* _ZEBRA_PRIVS_H */ |