Qt World Summit: Register Today!

Process is starting but not running in SELinux-related command "aureport"

  • Hello.

    I am writing a qt program which wraps SELinux-related commands.
    This time I want to wrap "aureport".
    So, I wrote like this.
    process = new QProcess(this);
    connect(process, SIGNAL(readyReadStandardOutput()),this,SLOT(readFromStdout()));
    connect(process, SIGNAL(readyReadStandardError()),this,SLOT(updateOutputTextEdit()));
    connect(process, SIGNAL(finished(int, QProcess::ExitStatus)),this,SLOT(processExited(int, QProcess::ExitStatus)));
    process->start("aureport -a");
    When I checked process->state() , it always 1 , which is, "process is starting but not running".
    other commands like "ls -la" succeeds.
    SELinux is properly tuned.
    Any ideas?
    Thanks in advance.

Log in to reply