qt5base-lts/tests/auto/corelib/io/qprocess
Thiago Macieira 271901c5cf QProcess/Unix: add a simple way to reset the UID and GID for the child
This is done as one of the last steps inside QProcess itself, so the
child modifier and all other tasks still run with the parent process'
permissions. On Linux, setting the UID to non-zero will also
automatically clear the effective capabilities(7) set.

This feature is only useful for setuid or setgid applications, so this
commit updates the QCoreApplication::setSetuidAllowed() documentation to
mention the QProcess flag.

Change-Id: I3e3bfef633af4130a03afffd175e940c0668d244
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2023-07-08 15:03:23 -07:00
..
fileWriterProcess tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
test QProcess: add testUnixProcessParameters as a dep. for tst_qprocess 2023-06-18 20:32:30 +03:00
testBatFiles Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
testDetached tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
testExitCodes tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testForwarding QThread: add sleep(std::chrono::nanoseconds) overload 2023-03-13 23:26:28 +02:00
testForwardingHelper tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testGuiProcess tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
testProcessCrash tst_QProcess: move the crasher code to a header 2023-06-07 17:09:52 -07:00
testProcessDeadWhileReading tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEcho tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEcho2 tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEcho3 tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEchoGui tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEnvironment tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEOF tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessHang tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessNormal tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessOutput tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessSpacesArgs tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testSetNamedPipeHandleState tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testSetWorkingDirectory tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
testSoftExit tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testSpaceInName tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testUnixProcessParameters QProcess/Unix: add a simple way to reset the UID and GID for the child 2023-07-08 15:03:23 -07:00
.gitignore test: Moving tst_QProcess::echoTest_performance() 2012-10-19 02:43:05 +02:00
BLACKLIST Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
CMakeLists.txt CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
crasher.h tst_QProcess: move the crasher code to a header 2023-06-07 17:09:52 -07:00
tst_qprocess.cpp QProcess/Unix: add a simple way to reset the UID and GID for the child 2023-07-08 15:03:23 -07:00