mysqladm::server::input_sanitization

Function validate_ownership_by_prefixes

Source
pub fn validate_ownership_by_prefixes(
    name: &str,
    prefixes: &[String],
) -> Result<(), OwnerValidationError>
Expand description

Core logic for validating the ownership of a database name. This function checks if the given name matches any of the given prefixes. These prefixes will in most cases be the user’s unix username and any unix groups the user is a member of.