diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2024-09-11 16:05:46 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2024-09-11 16:05:46 +0900 |
commit | afb4e83c9e5eb9e4f4a412e1fa5d692fc65c00eb (patch) | |
tree | 159c0bc0a88661c10aea8c89eb3c889fb80a6f2b | |
parent | 88491295fb488cadd9e414caf3279c2b0bc81a99 (diff) | |
download | bundle-afb4e83c9e5eb9e4f4a412e1fa5d692fc65c00eb.tar.gz bundle-afb4e83c9e5eb9e4f4a412e1fa5d692fc65c00eb.tar.bz2 bundle-afb4e83c9e5eb9e4f4a412e1fa5d692fc65c00eb.zip |
Create symbolic links for secure execution mode
This patch creates the symbolic links of rust libaries for secure execution.
If the executable file has capabilities, the program cannot use
LD_LIBRARY_PATH environment to fine shared libraries.
Change-Id: Iaf45f8ffdfaff489376d1cfaa7e3a9f4ab8babb7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | packaging/bundle.spec | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/bundle.spec b/packaging/bundle.spec index 0d6e2f7..82b8ea0 100644 --- a/packaging/bundle.spec +++ b/packaging/bundle.spec @@ -284,12 +284,15 @@ mkdir -p %{buildroot}%{_bindir}/tizen-unittests/tizen-shared-queue install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/tizen-shared-queue/ sed -i -e 's/<NAME>/tizen-shared-queue/g' %{buildroot}%{_bindir}/tizen-unittests/tizen-shared-queue/run-unittest.sh +install -d -m 0755 %{buildroot}%{_libdir} install -d -m 0755 %{buildroot}%{_rust_dylibdir} install -m 0644 libtizen_bundle.so %{buildroot}/%{_rust_dylibdir}/libtizen_bundle.so strip -s -N .rustc %{buildroot}/%{_rust_dylibdir}/libtizen_bundle.so +ln -sf %{_rust_dylibdir}/libtizen_bundle.so %{buildroot}%{_libdir}/libtizen_bundle.so install -m 0644 libtizen_parcel.so %{buildroot}/%{_rust_dylibdir}/libtizen_parcel.so strip -s -N .rustc %{buildroot}/%{_rust_dylibdir}/libtizen_parcel.so +ln -sf %{_rust_dylibdir}/libtizen_parcel.so %{buildroot}%{_libdir}/libtizen_parcel.so %post -p /sbin/ldconfig @@ -393,6 +396,7 @@ strip -s -N .rustc %{buildroot}/%{_rust_dylibdir}/libtizen_parcel.so %manifest rust-tizen-bundle.manifest %license LICENSE %{_rust_dylibdir}/libtizen_bundle.so +%{_libdir}/libtizen_bundle.so ################################################# # rust-tizen-parcel @@ -401,3 +405,4 @@ strip -s -N .rustc %{buildroot}/%{_rust_dylibdir}/libtizen_parcel.so %manifest rust-tizen-parcel.manifest %license LICENSE %{_rust_dylibdir}/libtizen_parcel.so +%{_libdir}/libtizen_parcel.so |