summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2016-11-03 11:48:28 +0100
committerGitHub <noreply@github.com>2016-11-03 11:48:28 +0100
commit34f139c52640f4791249e965a1d3d12be35077c1 (patch)
tree06c31a1f0806304cf51f67c65745fdb6958563c8 /src/test
parentb2c82a7f2f7c8ae426a9208fb79c5abbd5e3181c (diff)
parent5c67067f0e521aba061904c7bb3aa092281ef9c4 (diff)
Merge pull request #4543 from endocode/djalal/fix-dynamicuser-supplementary-groups
core: intialize user aux groups and SupplementaryGroups= when DynamicUser= is set
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-execute.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
index c369098500..6029853e3e 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -259,6 +259,12 @@ static void test_exec_supplementary_groups(Manager *m) {
test(m, "exec-supplementarygroups-multiple-groups-withuid.service", 0, CLD_EXITED);
}
+static void test_exec_dynamic_user(Manager *m) {
+ test(m, "exec-dynamicuser-fixeduser.service", 0, CLD_EXITED);
+ test(m, "exec-dynamicuser-fixeduser-one-supplementarygroup.service", 0, CLD_EXITED);
+ test(m, "exec-dynamicuser-supplementarygroups.service", 0, CLD_EXITED);
+}
+
static void test_exec_environment(Manager *m) {
test(m, "exec-environment.service", 0, CLD_EXITED);
test(m, "exec-environment-multiple.service", 0, CLD_EXITED);
@@ -432,6 +438,7 @@ int main(int argc, char *argv[]) {
test_exec_user,
test_exec_group,
test_exec_supplementary_groups,
+ test_exec_dynamic_user,
test_exec_environment,
test_exec_environmentfile,
test_exec_passenvironment,