Fix for failing test (smack05_self_label) in libsmack test suite
authorPawel Broda <p.broda@partner.samsung.com>
Wed, 6 Nov 2013 08:28:12 +0000 (09:28 +0100)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 14:21:34 +0000 (15:21 +0100)
[Issue#]        SSDWSSP-601
[Bug]           smack05_self_label in libsmack test suite failed.
                Additionally, this fix provides the same smack
                labels "_" no matter what type of connection is
                used to communicate with the target (ssh or sdb).
[Cause]         Smack execute label on /usr/bin/libsmack-test is not
                always the same. It depends on the connection type
                during istallation.
                ssh names it "_" and sdb names it "sdbd".
[Solution]      Create "packaging/security-test.manifest" file.
[Verification]  Build, install, run test.

Change-Id: Id1cab6bb7d069e4eb8aa068d792e8344613c6986

packaging/security-tests.manifest [new file with mode: 0644]
packaging/security-tests.spec

diff --git a/packaging/security-tests.manifest b/packaging/security-tests.manifest
new file mode 100644 (file)
index 0000000..86dbb26
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_" />
+    </request>
+</manifest>
index 14945c0..8fd9b37 100644 (file)
@@ -7,6 +7,7 @@ Group:      Development/Libraries
 License:    Apache License, Version 2.0
 URL:        N/A
 Source0:    %{name}-%{version}.tar.gz
+Source1:    %{name}.manifest
 BuildRequires: cmake
 BuildRequires: pkgconfig(libsmack)
 BuildRequires: pkgconfig(libprivilege-control)
@@ -36,6 +37,8 @@ make %{?jobs:-j%jobs}
 
 %install
 rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_datadir}
+cp -a %{SOURCE1} %{buildroot}%{_datadir}/%{name}.manifest
 %make_install
 ln -sf /etc/smack/test_smack_rules %{buildroot}/etc/smack/test_smack_rules_lnk
 
@@ -66,6 +69,7 @@ osp-installer -u j4RuPsZrNt
 osp-installer -u V5LKqDFBXm
 
 %files
+%manifest %{_datadir}/%{name}.manifest
 %defattr(-, root, root, -)
 /usr/bin/security-tests.sh
 /usr/bin/security-tests-all.sh