diff options
author | Robert Griebl <robert.griebl@qt.io> | 2022-03-22 18:45:35 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2022-03-23 16:52:48 +0100 |
commit | c1fbd8b4f27d810c70fad85d0a9365aee360becb (patch) | |
tree | dd0aafda44421577f4718911c6baf526d0fb7646 /tests/auto | |
parent | 18946cefe5b116924d4e4e53a79984340937fd23 (diff) | |
download | qtapplicationmanager-c1fbd8b4f27d810c70fad85d0a9365aee360becb.tar.gz |
Add a new flag to allow surfaces from unknown Wayland clients
Before, this was only possible by running with the "noSecurity" flag,
which disabled all security checks completely.
Change-Id: I06fbd1cca414be518a19b2250b28e114687e7f93
Fixes: QTBUG-101703
Pick-to: 5.15
Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/configuration/data/config1.yaml | 1 | ||||
-rw-r--r-- | tests/auto/configuration/tst_configuration.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/configuration/data/config1.yaml b/tests/auto/configuration/data/config1.yaml index 2f6289b9..0db3414e 100644 --- a/tests/auto/configuration/data/config1.yaml +++ b/tests/auto/configuration/data/config1.yaml @@ -85,6 +85,7 @@ flags: developmentMode: true noUiWatchdog: true allowUnsignedPackages: true + allowUnknownUiClients: true wayland: socketName: "my-wlsock-42" diff --git a/tests/auto/configuration/tst_configuration.cpp b/tests/auto/configuration/tst_configuration.cpp index ba0eae75..21a18303 100644 --- a/tests/auto/configuration/tst_configuration.cpp +++ b/tests/auto/configuration/tst_configuration.cpp @@ -94,6 +94,7 @@ void tst_Configuration::defaultConfig() QCOMPARE(c.developmentMode(), false); QCOMPARE(c.noUiWatchdog(), false); QCOMPARE(c.allowUnsignedPackages(), false); + QCOMPARE(c.allowUnknownUiClients(), false); QCOMPARE(c.forceSingleProcess(), false); QCOMPARE(c.forceMultiProcess(), false); QCOMPARE(c.loggingRules(), {}); @@ -177,6 +178,7 @@ void tst_Configuration::simpleConfig() QCOMPARE(c.developmentMode(), true); QCOMPARE(c.noUiWatchdog(), true); QCOMPARE(c.allowUnsignedPackages(), true); + QCOMPARE(c.allowUnknownUiClients(), true); QCOMPARE(c.forceSingleProcess(), true); QCOMPARE(c.forceMultiProcess(), true); QCOMPARE(c.loggingRules(), QStringList({ qSL("lr1"), qSL("lr2") })); @@ -307,6 +309,7 @@ void tst_Configuration::mergedConfig() QCOMPARE(c.developmentMode(), true); QCOMPARE(c.noUiWatchdog(), true); QCOMPARE(c.allowUnsignedPackages(), true); + QCOMPARE(c.allowUnknownUiClients(), true); QCOMPARE(c.forceSingleProcess(), true); QCOMPARE(c.forceMultiProcess(), true); QCOMPARE(c.loggingRules(), QStringList({ qSL("lr1"), qSL("lr2"), qSL("lr3") })); |