Merge pull request #16568 from poettering/creds-store

credentials logic to pass privileged data to services
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-08-26 10:32:30 +02:00
committed by GitHub
47 changed files with 1677 additions and 54 deletions
+7
View File
@@ -14,6 +14,7 @@
#include "alloc-util.h"
#include "extract-word.h"
#include "fd-util.h"
#include "fs-util.h"
#include "glob-util.h"
#include "log.h"
@@ -1130,3 +1131,9 @@ bool prefixed_path_strv_contains(char **l, const char *path) {
return false;
}
bool credential_name_valid(const char *s) {
/* We want that credential names are both valid in filenames (since that's our primary way to pass
* them around) and as fdnames (which is how we might want to pass them around eventually) */
return filename_is_valid(s) && fdname_is_valid(s);
}