diff options
author | Sumit Bose <sbose@redhat.com> | 2014-02-27 12:08:03 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-03-02 21:45:16 +0100 |
commit | 17f08cbd0f909181536b93d6c12c7cd69995f09e (patch) | |
tree | 2543e30d20c32c8e41da18a16ae4a88776840faf /src/config/etc/sssd.api.d | |
parent | 61804568ce5ede3b1a699cda17c033dd6c23f0e3 (diff) | |
download | sssd-17f08cbd0f909181536b93d6c12c7cd69995f09e.tar.gz sssd-17f08cbd0f909181536b93d6c12c7cd69995f09e.tar.xz sssd-17f08cbd0f909181536b93d6c12c7cd69995f09e.zip |
config API: read only specific files from schemaplugindir
Currently the config API read any file in the schema plugin dir,
typically /usr/share/sssd/sssd.api.d. If there are any unexpected files,
like e.g. editor copies or backups, the python code might break because
it cannot parse the files.
With this patch only files matching the pattern '^sssd-.*\.conf$' are
read from this directory.
Additionally this patch contains a file which will break the config API
self test if it is not filtered out correctly.
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Diffstat (limited to 'src/config/etc/sssd.api.d')
-rw-r--r-- | src/config/etc/sssd.api.d/crash_test_dummy | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/etc/sssd.api.d/crash_test_dummy b/src/config/etc/sssd.api.d/crash_test_dummy new file mode 100644 index 000000000..02e447e80 --- /dev/null +++ b/src/config/etc/sssd.api.d/crash_test_dummy @@ -0,0 +1 @@ +Please do not delete this file, it is part of the config API self-test. |