diff options
author | Elena Reshetova <elena.reshetova@intel.com> | 2013-07-26 10:09:13 +0300 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-08-05 12:53:41 -0400 |
commit | 675aeea811e64e428534e8603e3310eb8b385356 (patch) | |
tree | 2851ed85a110abb098c81f4702b48576ef7ee7c7 /packaging | |
parent | 7b74c9857bd55f28c62450d6aa7efc9a99b86bf1 (diff) | |
download | librpm-tizen-675aeea811e64e428534e8603e3310eb8b385356.tar.gz librpm-tizen-675aeea811e64e428534e8603e3310eb8b385356.tar.bz2 librpm-tizen-675aeea811e64e428534e8603e3310eb8b385356.zip |
Security plugin: support for --root option
-adding macros to configure location of default policy
-adding a default security policy to rpm-plugins dir
-adding copying of policy file to chroot dir when rpm is run with --root param
-moving policy saving to post_tsm hook
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/rpm.spec | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packaging/rpm.spec b/packaging/rpm.spec index e4d1a1602..72010bd8a 100644 --- a/packaging/rpm.spec +++ b/packaging/rpm.spec @@ -162,7 +162,8 @@ cp -a tizen_macros %{buildroot}/usr/lib/rpm mkdir -p %{buildroot}/usr/lib/rpm/tizen install -m 755 %{SOURCE13} %{buildroot}/usr/lib/rpm/tizen install -m 755 %{SOURCE23} %{buildroot}/usr/lib/rpm -install -m 644 %{SOURCE22} ${RPM_BUILD_ROOT}%{_sysconfdir}/device-sec-policy +install -m 644 %{SOURCE22} %{buildroot}%{_sysconfdir}/device-sec-policy +install -m 644 %{SOURCE22} %{buildroot}%{_libdir}/rpm-plugins/msm-device-sec-policy ln -s ../tizen_macros %{buildroot}/usr/lib/rpm/tizen/macros for d in BUILD RPMS SOURCES SPECS SRPMS BUILDROOT ; do mkdir -p %{buildroot}/usr/src/packages/$d @@ -304,5 +305,6 @@ rm -f var/lib/rpm/Filemd5s var/lib/rpm/Filedigests var/lib/rpm/Requireversion va %manifest %{name}.manifest %defattr(-,root,root) %{_libdir}/rpm-plugins/msm.so +%{_libdir}/rpm-plugins/msm-device-sec-policy %config(noreplace) %{_sysconfdir}/device-sec-policy |