Apply ASLR to attr 15/143315/3 accepted/tizen_4.0_unified accepted/tizen_unified tizen tizen_4.0 accepted/tizen/4.0/unified/20170828.222611 accepted/tizen/unified/20170818.083209 submit/tizen/20170817.080535 submit/tizen_4.0/20170828.100005 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorMyungki Lee <mk5004.lee@samsung.com>
Wed, 9 Aug 2017 08:59:49 +0000 (17:59 +0900)
committerSemun Lee <semun.lee@samsung.com>
Wed, 16 Aug 2017 09:21:08 +0000 (18:21 +0900)
Change-Id: I0f5ed701537f6a79d4ef0373c9ad89c1811637cc
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
packaging/attr.spec

index 4b123b6..809726e 100644 (file)
@@ -55,7 +55,7 @@ statically linked programs which make use of extended attributes.
 cp %{SOURCE1001} .
 
 %build
-export OPTIMIZER="$RPM_OPT_FLAGS -fPIC"
+export OPTIMIZER="$RPM_OPT_FLAGS"
 export DEBUG=-DNDEBUG
 CFLAGS="$RPM_OPT_FLAGS" \
 %configure \
@@ -66,7 +66,9 @@ CFLAGS="$RPM_OPT_FLAGS" \
        --libdir=%{_libdir} \
        --libexecdir=%{_libdir} \
        --with-pic
-%{__make} %{?_smp_mflags}
+%{__make} libattr %{?_smp_mflags}
+CFLAGS="$CFLAGS -fPIE" LDFLAGS="$LDFLAGS -pie" \
+%{__make} attr getfattr setfattr %{?_smp_mflags}
 
 %install
 DIST_ROOT="$RPM_BUILD_ROOT"