diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-16 10:35:59 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-24 21:03:26 +0100 |
commit | 1243e093fd31c5660adf1bb3dd477d6935a755be (patch) | |
tree | 0d6c31332f90c5904fe8c067800d36077b8dd18a /src/util | |
parent | 9797aa5907191cef5db8279e20ec75fd0abbe980 (diff) | |
download | sssd-1243e093fd31c5660adf1bb3dd477d6935a755be.tar.gz sssd-1243e093fd31c5660adf1bb3dd477d6935a755be.tar.xz sssd-1243e093fd31c5660adf1bb3dd477d6935a755be.zip |
IPA: Use custom error codes when validating HBAC rules
https://fedorahosted.org/sssd/ticket/2603
Instead of reusing EINVAL/ENOENT, use more descriptive error codes. This
will be useful in the next patch where we act on certain codes.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/util_errors.c | 2 | ||||
-rw-r--r-- | src/util/util_errors.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/util/util_errors.c b/src/util/util_errors.c index 923f0a865..ac08f6277 100644 --- a/src/util/util_errors.c +++ b/src/util/util_errors.c @@ -70,6 +70,8 @@ struct err_string error_to_str[] = { { "Username format not allowed by re_expression" }, /* ERR_REGEX_NOMATCH */ { "Time specification not supported" }, /* ERR_TIMESPEC_NOT_SUPPORTED */ { "Invalid SSSD configuration detected." }, /* ERR_INVALID_CONFIG */ + { "Malformed cache entry" }, /* ERR_MALFORMED_ENTRY */ + { "Unexpected cache entry type" }, /* ERR_UNEXPECTED_ENTRY_TYPE */ { "ERR_LAST" } /* ERR_LAST */ }; diff --git a/src/util/util_errors.h b/src/util/util_errors.h index 54d474f96..c03274ce2 100644 --- a/src/util/util_errors.h +++ b/src/util/util_errors.h @@ -92,6 +92,8 @@ enum sssd_errors { ERR_REGEX_NOMATCH, ERR_TIMESPEC_NOT_SUPPORTED, ERR_INVALID_CONFIG, + ERR_MALFORMED_ENTRY, + ERR_UNEXPECTED_ENTRY_TYPE, ERR_LAST /* ALWAYS LAST */ }; |