Crate pleaser

Crate pleaser 

Source

Structs§

EnvOptions
RunOptions

Enums§

Acltype
EditMode
ReasonType

Functions§

bad_priv_msg
boot_secs
can
search the EnvOptions list for matching RunOptions and return the match
can_dir_include
return true if the inclusion exists and ends with .ini
can_include_file_pattern
challenge_password
read password of user via rpassword should pam require a password, and it is successful, then we set a token
clean_environment
clean environment aside from ~half a dozen vars
common_opt_arguments
common opt arguments
create_token_dir
credits
added around easter time
directory_check_ok
may we execute with this directory
drop_privs
set privs (just call eprivs based on ro)
environment_ok
may we keep environment data
esc_privs
reset privs (just call eprivs based on root)
escape_log
add a level of escape to strings when they go to the old as “ holds entities
get_editor
find editor for user. return /usr/bin/vi if EDITOR and VISUAL are unset
group_hash
turn group list into an indexed list
group_matches
handler_shim
handler.authenticate without the root privs part for linux
hostname_ok
may we execute with this hostname
list
print output list of acl
list_dir
return dir or exact_dir
list_rule
return rule or exact_rule
list_target
return target or exact_target
log_action
write to syslog a standard log
matching
merge_default
name_matches
permitted_dates_ok
is the RunOption valid for the dates permitted in the EnvOption
print_may_not
print_usage
print the usage
print_version
print version string
prng_alpha_num_string
return a lump of random alpha numeric characters
produce_list
return EnvOptions as a vector of strings
read_ini
read an ini file and traverse includes
read_ini_config_file
read through an ini config file, appending EnvOptions to vec_eo hardcoded limit of 10M for confs
read_ini_config_str
reason_ok
check reason. this happens post authorize in order to provide feedback
regex_build
build a regex and replace %{USER} with the user str, prefix with ^ and suffix with $
remove_token
remove from disk the users token
replace_new_args
escape ’' within an argument escape ’ ’ within an argument
rule_match
runopt_target_gid
search_path
if binary is not an absolute/relative path, look for it in usual places
search_path_cache
return result from search cache lookup
set_env_if_not_passed_through
set the environment unless it is permitted to be kept and is specified
set_environment
set environment for helper scripts
set_eprivs
set privs of usr to target_uid and target_gid. return false if fails
set_privs
set privs of usr to target_uid and target_gid. return false if fails
target_group_ok
target_ok
token_dir
return the directory that the token should use
token_path
return the path of the users token
tty_name
return our best guess of what the user’s tty is
update_token
touch the users token on disk
valid_token
does the user have a valid token return false if time stamp is in the future return true if token was set within 600 seconds of wall and boot time