summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeongmo Yang <jm80.yang@samsung.com>2022-05-19 09:26:12 +0900
committerJeongmo Yang <jm80.yang@samsung.com>2022-05-19 09:26:12 +0900
commit67df0dd51c50b436b0035f8e227709b8a092eb9f (patch)
treeb0c58dfecbd1546ee3c5b0d817d459aab0b4d736
parentbe6356868136c1bf6c086e7f0b30edf89c63fba3 (diff)
downloadcamera-67df0dd51c50b436b0035f8e227709b8a092eb9f.tar.gz
camera-67df0dd51c50b436b0035f8e227709b8a092eb9f.tar.bz2
camera-67df0dd51c50b436b0035f8e227709b8a092eb9f.zip
Set smack label for executable in manifest
- Remove post command for smack label in spec file. [Version] 0.4.78-1 [Issue Type] Smack label Change-Id: I0b17d6e261b5de3de3f2773ec833b4668938fb7b Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r--capi-media-camera-test-headless.manifest3
-rw-r--r--capi-media-camera-test.manifest3
-rw-r--r--packaging/capi-media-camera.spec10
3 files changed, 7 insertions, 9 deletions
diff --git a/capi-media-camera-test-headless.manifest b/capi-media-camera-test-headless.manifest
index a76fdba..86d6106 100644
--- a/capi-media-camera-test-headless.manifest
+++ b/capi-media-camera-test-headless.manifest
@@ -2,4 +2,7 @@
<request>
<domain name="_" />
</request>
+ <assign>
+ <filesystem path="/usr/bin/camera_test_headless" exec_label="System" />
+ </assign>
</manifest>
diff --git a/capi-media-camera-test.manifest b/capi-media-camera-test.manifest
index a76fdba..bb1b9ab 100644
--- a/capi-media-camera-test.manifest
+++ b/capi-media-camera-test.manifest
@@ -2,4 +2,7 @@
<request>
<domain name="_" />
</request>
+ <assign>
+ <filesystem path="/usr/bin/camera_test" exec_label="System" />
+ </assign>
</manifest>
diff --git a/packaging/capi-media-camera.spec b/packaging/capi-media-camera.spec
index c36c0f7..22c23e6 100644
--- a/packaging/capi-media-camera.spec
+++ b/packaging/capi-media-camera.spec
@@ -1,7 +1,7 @@
Name: capi-media-camera
Summary: A Camera API
Version: 0.4.78
-Release: 0
+Release: 1
Group: Multimedia/API
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
@@ -102,14 +102,6 @@ install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj/%{name}
%postun -p /sbin/ldconfig
-%post test
-chsmack -e "System" %{_bindir}/camera_test
-
-
-%post test-headless
-chsmack -e "System" %{_bindir}/camera_test_headless
-
-
%files
%manifest capi-media-camera.manifest
%license LICENSE.APLv2