Cynara : [Temporary] Fix rules for helper tests 15/81215/2
authorZofia Abramowska <z.abramowska@samsung.com>
Fri, 22 Jul 2016 16:49:27 +0000 (18:49 +0200)
committerZofia Abramowska <z.abramowska@samsung.com>
Wed, 10 Aug 2016 08:38:20 +0000 (10:38 +0200)
Temporarily add needed smack rules for proper tests working.

Change-Id: Ib3ebec0f297bb98af25b59efcdaf604666a45e11

src/cynara-tests/test_cases_helpers.cpp

index 5d40bed..b382f7c 100644 (file)
@@ -206,7 +206,9 @@ void dbusServer(SynchronizationPipe &pipe, const std::string &requestedName,
     SecurityServer::AccessProvider ap(peerCredentials.label());
     ap.addObjectRule("System", "w");
     ap.addObjectRule("System::Run", "x");
-    ap.addObjectRule("System::Shared", "x"); // for GDB
+    ap.addObjectRule("System::Shared", "rwx"); // for GDB
+    ap.addSubjectRule("System::Privileged", "rwx"); // for piping
+    ap.addObjectRule("System::Privileged", "rwx"); // for GDB and piping
     ap.addObjectRule("User", "r"); // for /usr/lib/debug access
     ap.applyAndSwithToUser(peerCredentials.uid(), peerCredentials.gid());
     pipe.claimChildEp();