<filesystem path="/usr/bin/security-server-tests-dbus" exec_label="_" />
<filesystem path="/usr/bin/security-manager-tests" exec_label="_" />
<filesystem path="/usr/bin/cynara-tests" exec_label="_" />
- <filesystem path="/usr/bin/ckm-tests" exec_label="_" />
+ <filesystem path="/usr/bin/ckm-tests" exec_label="User" />
<filesystem path="/usr/bin/test-app-wgt" exec_label="User" />
<filesystem path="/usr/bin/test-app-efl" exec_label="User" />
: m_mySubject(mySubject), m_inSwitchContext(false)
{
RUNNER_ASSERT_MSG(m_mySubject.size() > 0, "No smack label provided to AccessProvider!");
+ allowJournaldLogs();
}
AccessProvider::AccessProvider(const std::string &mySubject, int uid, int gid)
: m_mySubject(mySubject), m_inSwitchContext(false)
{
RUNNER_ASSERT_MSG(m_mySubject.size() > 0, "No smack label provided to AccessProvider!");
+ allowJournaldLogs();
applyAndSwithToUser(uid, gid);
}
m_inSwitchContext = true;
}
+void AccessProvider::allowJournaldLogs() {
+ allowAPI("System::Run","wx"); // necessary for logging with journald
+}
+
ScopedAccessProvider::~ScopedAccessProvider()
{
if(m_inSwitchContext == true)