Adapt to changes in gum-utils 1.0.5 31/34831/1
authorRafal Krypa <r.krypa@samsung.com>
Tue, 3 Feb 2015 09:48:53 +0000 (10:48 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Tue, 3 Feb 2015 09:50:16 +0000 (10:50 +0100)
Gum-utils options for setting user type has changed. It no longer
expects numerical types. Appropriate names are required, like "normal".
Old flags are no longer supported in gum-utils and lead to error.

Change-Id: I89dbe40ca92f22cf33025dae5088fc8d533bc2e0
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
packaging/security-tests.spec

index a05501c..a5d79e7 100644 (file)
@@ -26,7 +26,7 @@ BuildRequires: cynara-devel
 BuildRequires: pkgconfig(libtzplatform-config)
 BuildRequires: boost-devel
 BuildRequires: pkgconfig(libgum)
-Requires(post): gum-utils
+Requires(post): gum-utils >= 1.0.5
 Requires(postun): gum-utils
 Requires(postun): %{_bindir}/id
 Requires: perf
@@ -56,7 +56,7 @@ make %{?jobs:-j%jobs}
 ln -sf /etc/smack/test_smack_rules %{buildroot}/etc/smack/test_smack_rules_lnk
 
 %post
-%{_bindir}/gum-utils --add-user --username=security-tests-app --usertype=4 --offline
+%{_bindir}/gum-utils --add-user --username=security-tests-app --user_type=normal --offline
 
 find /etc/smack/test_privilege_control_DIR/ -type f -name exec -exec chmod 0755 {} +
 find /usr/apps/test_DIR/ -type f -name exec -exec chmod 0755 {} +