Merge command tags, SELinux type/role and Solaris privs settings

into "command options".  This relaxes the order of things so tags
and other options can be interspersed.
This commit is contained in:
Todd C. Miller
2017-02-14 15:56:34 -07:00
parent fb419ba066
commit 4f9dcd7264
7 changed files with 490 additions and 570 deletions

View File

@@ -110,22 +110,16 @@ struct cmndtag {
};
/*
* SELinux-specific container struct.
* Currently just contains a role and type.
* Per-command option container struct.
*/
struct selinux_info {
char *role;
char *type;
};
/*
* Solaris privileges container struct
* Currently just contains permitted and limit privileges.
* It could have PFEXEC and PRIV_AWARE flags added in the future.
*/
struct solaris_privs_info {
char *privs;
char *limitprivs;
struct command_options {
struct cmndtag tags; /* Command tags */
#ifdef HAVE_SELINUX
char *role, *type; /* SELinux role and type */
#endif
#ifdef HAVE_PRIV_SET
char *privs, *limitprivs; /* Solaris privilege sets */
#endif
};
/*