diff options
author | Gilbok Lee <gilbok.lee@samsung.com> | 2016-12-12 18:42:14 +0900 |
---|---|---|
committer | Gilbok Lee <gilbok.lee@samsung.com> | 2016-12-12 18:42:14 +0900 |
commit | 5b983ae9a1df2aaedec06f5022dd72945dc6e4b8 (patch) | |
tree | f52ee0cb3cd471b49e9ff69da09c573b1f154e2a | |
parent | a1f7cff1222fbf7d2a38a9f4190b7e05fafa973e (diff) | |
download | libmm-radio-5b983ae9a1df2aaedec06f5022dd72945dc6e4b8.tar.gz libmm-radio-5b983ae9a1df2aaedec06f5022dd72945dc6e4b8.tar.bz2 libmm-radio-5b983ae9a1df2aaedec06f5022dd72945dc6e4b8.zip |
Use absolute path for radio-hal dlopen to avoid malicious attacksubmit/tizen_3.0/20161215.110001submit/tizen_3.0/20161215.052132submit/tizen_3.0/20161213.081002accepted/tizen/3.0/wearable/20161216.084118accepted/tizen/3.0/mobile/20161216.083658accepted/tizen/3.0/ivi/20161216.084234accepted/tizen/3.0/common/20161216.123507
[Version] 0.2.17
[Profile] Mobile, Wearable
[Issue Type] Security
Change-Id: I41370d28635685bbbf35c35a5c7930ba7a8a1333
-rwxr-xr-x | packaging/libmm-radio.spec | 11 | ||||
-rw-r--r-- | src/radio_hal_interface.c | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/packaging/libmm-radio.spec b/packaging/libmm-radio.spec index 56b89e9..6f3b582 100755 --- a/packaging/libmm-radio.spec +++ b/packaging/libmm-radio.spec @@ -1,13 +1,13 @@ Name: libmm-radio Summary: Multimedia Framework Radio Library -Version: 0.2.16 +Version: 0.2.17 Release: 0 Group: System/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1001: libmm-radio.manifest -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig +#Requires(post): /sbin/ldconfig +#Requires(postun): /sbin/ldconfig BuildRequires: pkgconfig(mm-common) BuildRequires: pkgconfig(mm-log) BuildRequires: pkgconfig(mm-session) @@ -37,9 +37,10 @@ cp %{SOURCE1001} . %build ./autogen.sh -export CFLAGS=" %{optflags} -Wall -DGST_EXT_TIME_ANALYSIS -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" -Werror" +export CFLAGS+=" %{optflags} -Wall" %ifarch %{arm} -export CFLAGS="$CFLAGS -DTIZEN_FEATURE_RADIO_HAL" +export CFLAGS+=" -DTIZEN_FEATURE_RADIO_HAL " +export CFLAGS+=" -DPATH_LIBDIR=\\\"%{_libdir}\\\"" %endif %configure \ diff --git a/src/radio_hal_interface.c b/src/radio_hal_interface.c index e40d401..cd62ba9 100644 --- a/src/radio_hal_interface.c +++ b/src/radio_hal_interface.c @@ -25,7 +25,7 @@ extern "C" { #include "mm_radio_utils.h" #include "radio_hal_interface.h" -#define LIB_TIZEN_RADIO "libtizen-radio.so" +#define LIB_TIZEN_RADIO PATH_LIBDIR"/libtizen-radio.so" static int __convert_error_code(int code, char *func_name) { |