get_ordered_context_listSection: SE Linux API documentation (3)Updated: 1 January 2004 |
get_ordered_context_listSection: SE Linux API documentation (3)Updated: 1 January 2004 |
int get_ordered_context_list(const char *user, security_context_t fromcon, security_context_t **list);
int get_default_context(const char *user, security_context_t fromcon, security_context_t *newcon);
int query_user_context(security_context_t *list, security_context_t *newcon);
int manual_user_enter_context(const char *user, security_context_t *newcon);
get_default_context is the same as get_ordered_context_list but only returns a single context which has to be freed with freecon.
query_user_context takes a list of contexts, queries the user via stdin/stdout as to which context they want, and returns a new context as selected by the user (which has to be freed with freecon).
manual_user_enter_context allows the user to manually enter a context as a fallback if a list of authorized contexts could not be obtained. Caller must free via freecon.