/*++ /* NAME /* allowed_prefix 3 /* SUMMARY /* Match a pathname against a list of allowed parent directories /* SYNOPSIS /* #include <allowed_prefix.h> /* /* ALLOWED_PREFIX *allowed_prefix_create(const char *prefixes) /* /* bool allowed_prefix_match( /* ALLOWED_PREFIX *tp, /* const char *candidate_path) /* /* void allowed_prefix_free(ALLOWED_PREFIX *tp) /* DESCRIPTION /* This module matches an absolute candidate pathname against a /* list of allowed absolute parent directory names. The matching /* is based solely on string comparisons. /* /* The matcher will not match relative pathnames, and logs a warning /* if it encounters one in its inputs. /* /* allowed_prefix_create() instantiates an allowed parent matcher /* and returns a pointer to the result. The input must be a list /* of directory absolute pathnames separated by comma or whitespace. /* /* allowed_prefix_match() matches a candidate absolute pathname /* against an ALLOWED_PREFIX instance. /* /* allowed_prefix_free() destroys an ALLOWED_PREFIX instance. /* BUGS /* Does not collapse multiple instances of '/' in the middle of a /* pathname. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* porcupine.org
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.