platform/upstream/rpm.git
9 years agoreplace obsoleted "find -perm +NNN" syntax 32/31232/3
Chanho Park [Wed, 3 Dec 2014 01:15:37 +0000 (10:15 +0900)]
replace obsoleted "find -perm +NNN" syntax

This patch is required when we use findutils-4.5.14 version. When we
tried to upgrade the findutils to 4.5.14 version, I've got below error
because the version of findutils obsoleted "find -perm +NNN".

[  146s] find: invalid mode '+111'
[  146s] error: Bad exit status from /var/tmp/rpm-tmp.5tcK7o (%install)

I picked up this patch from openSUSE[1] to solve this problem.

Origin: mail@bernhard-voelker.de

- replace obsoleted "find -perm +NNN" syntax [bnc#842004]
  to "-perm /NNN" in debugsource-package.diff and
  finddebuginfo.diff.

[1]: https://build.opensuse.org/request/show/200349

Change-Id: I38394427e4a806111550ad8ee560a448dd7a7307
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
9 years agoAdapt for Yocto, remove pushd/popd bashisms 62/30962/4
Łukasz Stelmach [Thu, 27 Nov 2014 14:44:12 +0000 (15:44 +0100)]
Adapt for Yocto, remove pushd/popd bashisms

Apparently Yocto and BitBake do not use bash(1) as /bin/sh and break
when fed with bashisms like pushd/popd.

Bug-Tizen: BTY-21
Change-Id: I1a2781f97968b7290954297820b083759f11f0ed
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
9 years agoRemove unnecessary Group tag for localisation packages 69/30569/1 accepted/tizen/common/20141121.180717 accepted/tizen/ivi/20141204.033159 accepted/tizen/mobile/20141128.122430 submit/tizen/20141121.083447 submit/tizen_ivi/20141201.222222
Łukasz Stelmach [Thu, 20 Nov 2014 12:18:23 +0000 (13:18 +0100)]
Remove unnecessary Group tag for localisation packages

Localisation packages should be in the same group as the main package[1].

[1] https://wiki.tizen.org/wiki/Packaging/Guidelines#Group_Tag

Change-Id: Idd50d5a96f03ca316deaec61361016eb59db4065
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
10 years agoRemove unnecessary Group tag for documentation packages 43/29743/2 accepted/tizen/common/20141104.235407 accepted/tizen/ivi/20141120.064253 accepted/tizen/mobile/20141119.083810 submit/tizen/20141104.115426 submit/tizen_ivi/20141119.051921 submit/tizen_ivi/20141119.333333 submit/tizen_ivi/20141119.444444 submit/tizen_mobile/20141120.000000
Łukasz Stelmach [Mon, 3 Nov 2014 17:13:55 +0000 (18:13 +0100)]
Remove unnecessary Group tag for documentation packages

With the Group tag explicitly set to "Documentation" trigger rpmlint
errors. With the tag removed from the macro the packages inherit their
parents' groups which makes rpmlint happy.

Change-Id: I3bbb02e58be284ebf36f3cfb0b2fa66b912332d3
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
10 years agoYocto: compatibility: "remove bashism" 41/25341/2 accepted/tizen/common/20141027.223138 accepted/tizen/mobile/20141120.054833 submit/tizen_common/20141024.152722 submit/tizen_common/20141027.223054 submit/tizen_mobile/20141120.053809
Kévin THIERRY [Mon, 4 Aug 2014 06:58:53 +0000 (08:58 +0200)]
Yocto: compatibility: "remove bashism"

Yocto users can use different shells so the code inside recipes should
not be "bash only compliant".

Bug-Tizen: BTY-21
Change-Id: I5e91b4a284e195ff823f25f9eeed12544344c4b0
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
10 years agoMSM: Avoid creating empty access rule files 63/28363/1
José Bollo [Fri, 3 Oct 2014 15:08:03 +0000 (17:08 +0200)]
MSM: Avoid creating empty access rule files

The msm plugin creates one access rule file
in SMACK_RULES_PATH=/etc/smack/accesses.d for
each RPM installed.

Since Tizen 3, the guideline for packages is
simplified and the new guideline states that
manifest files have to be as simple as:

<manifest>
 <request>
    <domain name="_"/>
 </request>
</manifest>

It means that most access rule files are empty.

Thus, this patch removes the file if it is empty
because without any penality, it improves:
 - the start time of the system
 - the administration of the system

The start time is improved because at start, all
the files in /etc/smack/accesses.d are read and
loaded to the kernel. As empty files are just removed,
no time is spend to seek it, open it, read it, close it,
apply empty rule.

The administration is also improved because only meaning
access rule files are retains, avoid to have to sort what
is meaning and what is not.

Change-Id: I7b40f2b291f0c1dbcb2f033f62191c651430e3c8
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
10 years agoFixed rpm crash when trying to access an undefined domain. 10/27510/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20140925.182508 accepted/tizen/common/20141008.190634 accepted/tizen/ivi/20141005.142818 submit/tizen/20140925.072409 submit/tizen_common/20141008.071414 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
Maciej J. Karpiuk [Fri, 12 Sep 2014 14:04:01 +0000 (16:04 +0200)]
Fixed rpm crash when trying to access an undefined domain.

Change-Id: I5e84c913d1756320bf31442d87b797ff8b5f4633

10 years agoRemove Smack rules having wrong subject 65/27165/1 accepted/tizen/common/20140908.193650 accepted/tizen/ivi/20140912.193607 submit/tizen_common/20140908.122758 submit/tizen_ivi/20140912.000000
José Bollo [Fri, 5 Sep 2014 10:15:21 +0000 (12:15 +0200)]
Remove Smack rules having wrong subject

Names of the software repositories were used as subject of
the generated smack rules. There is no mention of such
behaviour on the help pages in the wiki of tizen.

Bug-Tizen: PTREL-638

Change-Id: Iefef89492ab5c9839cb01d3b62dae4c3637f00f4
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
10 years agoMerge "Allow re-execution of the %prep section" into tizen
Casey Schaufler [Wed, 27 Aug 2014 16:17:27 +0000 (09:17 -0700)]
Merge "Allow re-execution of the %prep section" into tizen

10 years agoUpdate autotools files on aarch64 33/26033/1 accepted/tizen/common/20140826.160946 accepted/tizen/ivi/20140902.210650 submit/tizen/20140825.050559
Vyacheslav Barinov [Thu, 14 Aug 2014 07:52:16 +0000 (11:52 +0400)]
Update autotools files on aarch64

Patch borrowed from OpenSUSE rpm.
We have many packages with old config.sub and config.guess files which don't
have aarch64 support. In order not to patch every separate package, just update
them from rpmbuild during build initialization

Change-Id: I040bab160864edad84fd9cffcff2c9226ef3a4d0
Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
10 years agoRemove %suse_version macro 45/25645/2 submit/tizen/20140807.124405 submit/tizen/20140807.133029 submit/tizen_ivi/20140818.000000 submit/tizen_ivi/20140818.000001
Yury Usishchev [Thu, 7 Aug 2014 12:29:59 +0000 (16:29 +0400)]
Remove %suse_version macro

It was added to enable cumulate install, but [1] enables it differently.

[1]: https://review.tizen.org/gerrit/#/c/25635/

Change-Id: I662871adacd4069cb7750fe59135dc20df0e259a
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
10 years agoAllow re-execution of the %prep section 57/24957/2
Kévin THIERRY [Thu, 24 Jul 2014 11:30:19 +0000 (13:30 +0200)]
Allow re-execution of the %prep section

With Yocto, when building rpm a second time, the do_prep() function
fails because it assumes it hasn't already ran but will be re-using the
previous build directory which hasn't been cleaned. This patch prevent
such a situation to fail.

This issue is not present when building with GBS since every new build
is made in a clean directory but since the yocto recipes are generated
from spec file, it is better to directly correct the spec file.
This patch has no impact on the GBS build.

Bug-Tizen: BTY-15
Change-Id: I1e992b63b41ae76a4d6706046e741dc2d25b15eb
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
10 years agoAArch64 enabling 92/25292/1 accepted/tizen/common/20140804.175652 submit/tizen/20140804.114129
Yury Usishchev [Thu, 24 Jul 2014 11:17:07 +0000 (15:17 +0400)]
AArch64 enabling

  * Fix packaging of python modules

    Python site dir is not always in %{_libdir}, %{python_sitearch} is expanded the
    same way as configure searches for site dir.

  * Add vendor option to configure

  * Add suse_version macro

Change-Id: I7d249d9329047c49117c49b52ab89d07e42053f6
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
10 years agoAArch64 support v2 23/24423/1 accepted/tizen/common/20140724.002209 submit/tizen/20140722.073213
Mark Salter [Mon, 4 Mar 2013 17:30:16 +0000 (12:30 -0500)]
AArch64 support v2

Here is my updated patch adding AArch64 support. The main change was to
use CANONCOLOR=3 rather than 2.

--Mark

Change-Id: I79e397534d25a4ef4d293222c4cbd415a8fcd6b5
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
10 years agoRemove $BUILDTARGET to solve build arch armv7l. 25/21425/2 tizen_3.0.m14.2_ivi accepted/tizen/common/20140610.160301 accepted/tizen/ivi/20140625.191701 submit/tizen/20140530.070149 submit/tizen_ivi/20140618.000000 submit/tizen_ivi/20140618.000001 submit/tizen_ivi/20140619.000000 submit/tizen_ivi/20140622.000000 submit/tizen_ivi/20140623.000000 submit/tizen_ivi/20140624.064036 tizen_3.0.m14.2_ivi_release
Ronan Le Martret [Tue, 20 May 2014 10:21:06 +0000 (12:21 +0200)]
Remove $BUILDTARGET to solve build arch armv7l.

Macro --host and --build is defined in %reconfigure, so useless in spec file.

Change-Id: I4d396a824b30ec03f6913028e3a3836dd076a1b8
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
10 years agoMerge python-rpm.spec into rpm.spec and cleaning up the spec file. 89/19889/1 submit/tizen/20140515.122830
Ronan Le Martret [Tue, 22 Apr 2014 12:12:40 +0000 (14:12 +0200)]
Merge python-rpm.spec into rpm.spec and cleaning up the spec file.

Change-Id: Idb234fbe0d1adddeae2523c05879cc09929dddc2
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
10 years agoUpdate changelog 13/15913/1 accepted/tizen/generic accepted/tizen/ivi accepted/tizen_generic accepted/tizen_ivi_panda accepted/tizen_ivi_release tizen_ivi_release accepted/tizen/generic/20140204.211928 accepted/tizen/generic/20140312.123204 accepted/tizen/ivi/20140205.035255 accepted/tizen/ivi/panda/20140312.112815 accepted/tizen/ivi/release/20140312.115358 accepted/tizen/mobile/20140227.070345 submit/tizen/20140204.192312 submit/tizen/20140312.070924 submit/tizen_ivi_release/20140312.071354
Patrick McCarty [Wed, 29 Jan 2014 19:20:53 +0000 (11:20 -0800)]
Update changelog

Change-Id: Ice517533b3a0650f6d99c1e8e21e73d3c9b4c178
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
10 years agoExport kernel package name and kernel package release as new macros. 92/15392/3
Jacek Pielaszkiewicz [Mon, 20 Jan 2014 12:26:39 +0000 (13:26 +0100)]
Export kernel package name and kernel package release as new macros.

The following macros have been added:
  1. %kernel_name    - kernel name
  2. %kernel_release - kenrel release

Change-Id: Ie3d2b310b839353af2855f1b6a0eff6abff1aeeb
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
10 years agotizen: Export kernel-devel's package version as %kernel_devel_uname_r 82/14982/2
Karol Lewandowski [Tue, 14 Jan 2014 10:10:15 +0000 (11:10 +0100)]
tizen: Export kernel-devel's package version as %kernel_devel_uname_r

This macro provides full version string of available kernel headers
as provided by kernel-devel package.

This functionality should simplify process of packaging additional
external kernel modules eliminating the step of manual searching
for appropriate kernel build directory, eg.

  BuildRequires: kernel-devel

  %build
  make M=/lib/modules/%{kernel_devel_uname_r}/build modules

Change-Id: Iea73e418065068f8451c42a2a3a4b46a9b5ffaac
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
10 years agoUpdate changelog 61/15261/1 accepted/tizen/mobile accepted/tizen/generic/20140120.103117 accepted/tizen/ivi/20140122.184940 accepted/tizen/mobile/20140122.163056 submit/tizen/20140120.102104
Mikko Ylinen [Fri, 17 Jan 2014 11:39:45 +0000 (13:39 +0200)]
Update changelog

Change-Id: I5c89a4219a882ac589658576c3e81aa4ffbba672
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
10 years agoMSM: fix access type length and validation 03/14703/1
Jarkko Sakkinen [Fri, 10 Jan 2014 07:47:25 +0000 (09:47 +0200)]
MSM: fix access type length and validation

This patch fixes three issues with access type:

- SMACK_ACCESS_TYPE_LENGHT -> SMACK_ACCESS_TYPE_LENGTH
- Changed the value of SMACK_ACCESS_TYPE_LENGTH from 5 to 6.
- String length was calculated with unsafe 'strlen()'. Changed to
  use strlen(type, SMACK_LABEL_LENGTH + 1) instead.

Change-Id: I127d7b2beb8a3258ec1e4a5142f253f842b2fa7a
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
10 years agoSecurity plugin: change policy to advisory 79/13979/5
Jarkko Sakkinen [Thu, 19 Dec 2013 12:07:44 +0000 (14:07 +0200)]
Security plugin: change policy to advisory

Change policy from enforcing to advisory when access is requested
from unknown domain or permitted to unknown domain. Also trunacated
lines to 80 characters, fixed grammar in the warning messages, and
removed trailing spaces and tabs.

In future, it might make sense to make this behaviour a command-line
option. Added a FIXME comment about that.

Change-Id: Iab78d79a8a28e019ec8601265a59d259fd46f9d6
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
10 years agoSecurity plugin: adding support for l access type 81/13381/1 accepted/tizen/20131207.002837 accepted/tizen/20131209.172435 accepted/tizen/20131213.021220 accepted/tizen/generic/20140106.135159 accepted/tizen/mobile/20131216.220231 submit/tizen/20131204.161726 submit/tizen/20131213.021127
Elena Reshetova [Wed, 4 Dec 2013 09:56:07 +0000 (11:56 +0200)]
Security plugin: adding support for l access type

Change-Id: Id61dd99ef2e6a673d3c66a58d71c735b07571970

10 years agoUpdating changelog 32/13332/1 submit/tizen/20131203.181853
Rusty Lynch [Tue, 3 Dec 2013 18:17:21 +0000 (10:17 -0800)]
Updating changelog

Change-Id: Ibe31f0a5567947c478f8b089e2e4d7b850019abd
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
10 years agoSecurity plugin: removing exec label restriction 39/13239/2
Elena Reshetova [Fri, 29 Nov 2013 12:04:53 +0000 (14:04 +0200)]
Security plugin: removing exec label restriction

Change-Id: I1da33e6e842a7f93dade78f2aebc00ed271a271c

10 years agoUpdate changelog and fix rpmlint error 93/12493/1 accepted/tizen/20131115.212447 submit/tizen/20131115.204240 submit/tizen_ivi_stable/20131116.104001
Rusty Lynch [Fri, 15 Nov 2013 20:36:22 +0000 (12:36 -0800)]
Update changelog and fix rpmlint error

Change-Id: Id9df4a22a240fe9b1028d4bdca6987b6f58b0211
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
10 years ago- solve bug PTREL-155, build python-rpm. 94/11894/3
Ronan Le Martret [Thu, 7 Nov 2013 08:25:19 +0000 (09:25 +0100)]
- solve bug PTREL-155, build python-rpm.

Change-Id: Idffe011bde3623d20c647aad8c6bac70b07f83f5
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
10 years agoarmv7l:fix faulty line in rpmrc.in 91/12491/1
Adrian Negreanu [Fri, 15 Nov 2013 17:15:54 +0000 (19:15 +0200)]
armv7l:fix faulty line in rpmrc.in

[  484s] === configuring in db3 (/home/abuild/rpmbuild/BUILD/rpm-4.11.0.1/db3)
[  484s] configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr'  '--disable-dependency-tracking' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--libdir=/usr/lib' '--sysconfdir=/etc' '--localstatedir=/var' '--with-lua' '--with-acl' '--with-cap' '--enable-shared' '--with-msm' '--build=armv7l-tizen-linux-gnueabi' 'build_alias=armv7l-tizen-linux-gnueabi' 'CFLAGS=-O2 -g -march=armv7-a -mtune=cortex-a8 -mlittle-endian  -mfpu=vfpv3 -mfloat-abi=softfp -D __SOFTFP__ -ffunction-sections' 'LDFLAGS=-Wl,-Bsymbolic-functions -ffunction-sections' 'CPPFLAGS= -I/usr/include/nss3 -I/usr/include/nspr4  ' 'CXXFLAGS=-O2 -g -march=armv7-a -mtune=cortex-a8 -mlittle-endian  -mfpu=vfpv3 -mfloat-abi=softfp -D __SOFTFP__' --cache-file=/dev/null --srcdir=.
[  485s] configure: WARNING: you should use --build, --host, --target
[  485s] configure: WARNING: you should use --build, --host, --target
[  486s] checking build system type... armv7l-tizen-linux-gnueabi
[  486s] checking host system type... Invalid configuration `__SOFTFP__': machine `__SOFTFP__' not recognized
[  486s] configure: error: /bin/sh ./../db/dist/config.sub __SOFTFP__ failed
[  486s] /bin/mv: cannot stat `Makefile': No such file or directory
[  486s] /bin/cat: Makefile.orig: No such file or directory
[  486s] make: *** No rule to make target `listobjs'.  Stop.
[  486s] configure: error: ./configure failed for db3
[  487s] error: Bad exit status from /var/tmp/rpm-tmp.vjacB0 (%build)
[  487s]
[  487s]
[  487s] RPM build errors:
[  487s]     Bad exit status from /var/tmp/rpm-tmp.vjacB0 (%build)

Bug-Id: https://bugs.tizen.org/jira/browse/PTREL-398

Change-Id: I36f45d1d52754bbf02b6596eac0d21a715bd451e
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
10 years agomsm: check libxml/{xmlreader,tree}.h 00/12400/2
Adrian Negreanu [Thu, 14 Nov 2013 14:06:23 +0000 (16:06 +0200)]
msm: check libxml/{xmlreader,tree}.h

msmconfig.c:29:25: fatal error: libxml/tree.h: No such file or directory
msmmanifest.c:37:30: fatal error: libxml/xmlreader.h: No such file or directory

Bug-Id: https://bugs.tizen.org/jira/browse/PTREL-397

Change-Id: If287d79f343ca6f6f4be9392f09e17387305fb8a
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
11 years agoSecurity plugin: Removing definition of System domain from default device policy 73/11673/1 accepted/tizen/20131108.201843 submit/tizen/20131108.095609
Elena Reshetova [Fri, 1 Nov 2013 13:38:11 +0000 (15:38 +0200)]
Security plugin: Removing definition of System domain from default device policy

Change-Id: I8260934c6e5e1421b594545b5c2740e9aaebcfd5
Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
11 years agoSecurity plugin: plugin hooks code refactoring and improvment 04/10304/1
Elena Reshetova [Thu, 26 Sep 2013 08:30:54 +0000 (11:30 +0300)]
Security plugin: plugin hooks code refactoring and improvment

Change-Id: I4d44db47865dd5c83fcf28435ffc26a70164b69d

11 years agoIntroduction of -locale and -docs subpackages. Moved package to another group 20/9920/2
Jacek Bukarewicz [Wed, 11 Sep 2013 09:22:31 +0000 (11:22 +0200)]
Introduction of -locale and -docs subpackages. Moved package to another group

Change-Id: I6cb5d33ff6bb54fb57475578d6d2d632cc45ccfc
Signed-off-by: Jacek Bukarewicz <j.bukarewicz@samsung.com>
11 years agoupdate changes accepted/tizen/20130916.151945 accepted/tizen/20130916.210907 accepted/tizen/20130916.211448 accepted/tizen/20130916.211819 submit/tizen/20130916.051031
Anas Nashif [Mon, 16 Sep 2013 05:10:20 +0000 (01:10 -0400)]
update changes

Change-Id: I983e29c06ce691f740cc559c1fd18a4812a71c81

11 years agoremove --target from %configure macros 97/9897/1
Anas Nashif [Tue, 10 Sep 2013 17:11:53 +0000 (13:11 -0400)]
remove --target from %configure macros

The target will be determined automatically by the configure scripts
instead of forcing it to be %target_platform of RPM.

Change-Id: I2284de77c28c4d0c7a9e1a9f819f5861eb5b74a0
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
11 years agoenforce platform for ARM 51/9651/1 accepted/tizen/20130912.190057 accepted/tizen/20130912.194240 accepted/tizen/20130913.024734 submit/tizen/20130912.080341 submit/tizen/20130912.090641
Anas Nashif [Wed, 4 Sep 2013 01:17:54 +0000 (21:17 -0400)]
enforce platform for ARM

also set optflag defaults for armv7l

Change-Id: I0cdcc093245b1e121b51327b83300b59d101a30b
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
11 years agochanges accepted/tizen/ivi/genivi/20140131.033336 accepted/tizen/ivi/genivi/20140215.011425 accepted/tizen/ivi/genivi/20140221.210052 accepted/tizen_ivi_release/20131211.023047 ivi_oct_m2 submit/tizen/20130903.001559 submit/tizen_ivi_genivi/20140131.032339 submit/tizen_ivi_genivi/20140215.011533 submit/tizen_ivi_genivi/20140221.210302 submit/tizen_ivi_release/20131211.023143
Anas Nashif [Tue, 3 Sep 2013 00:15:36 +0000 (20:15 -0400)]
changes

11 years agoupdate changelog
Anas Nashif [Wed, 21 Aug 2013 08:10:07 +0000 (04:10 -0400)]
update changelog

11 years agoSecurity plugin: adding checking of return code for dbus policy verification 32/8432/2
Elena Reshetova [Mon, 19 Aug 2013 13:43:40 +0000 (16:43 +0300)]
Security plugin: adding checking of return code for dbus policy verification

11 years agoSecurity plugin: small fixes 26/8426/1 submit/tizen/20130820.223822
Elena Reshetova [Mon, 19 Aug 2013 05:42:27 +0000 (08:42 +0300)]
Security plugin: small fixes

 - Removing unused code
 - Changing the init hook to take care of new libsmack return code

11 years agoSecurity plugin: removing disable-dchecks option 27/7827/1
Elena Reshetova [Wed, 7 Aug 2013 10:46:17 +0000 (13:46 +0300)]
Security plugin: removing disable-dchecks option

11 years agoupdate changes and release 72/7772/1 submit/tizen/20130805.171417
Anas Nashif [Mon, 5 Aug 2013 16:55:10 +0000 (12:55 -0400)]
update changes and release

11 years agoSecurity plugin: support for --root option
Elena Reshetova [Fri, 26 Jul 2013 07:09:13 +0000 (10:09 +0300)]
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

11 years agoSecurity plugin: pkg_name allocation in conflict
Elena Reshetova [Tue, 23 Jul 2013 13:37:05 +0000 (16:37 +0300)]
Security plugin: pkg_name allocation in conflict

- fix to the pkg_name allocation in conflict handling

11 years agoSecurity plugin: allowing multiple domains definition
Elena Reshetova [Fri, 5 Jul 2013 11:48:42 +0000 (14:48 +0300)]
Security plugin: allowing multiple domains definition

- allowing multiple domains definition per manifest
- fixing indirect include of config.h
- restricting adding new sw source with the same key info

11 years agoresetting manifest requested domain to floor 75/4975/1 accepted/tizen/20130710.214747 submit/tizen/20130710.134739
Alexandru Cornea [Sat, 29 Jun 2013 02:10:40 +0000 (05:10 +0300)]
resetting manifest requested domain to floor

11 years agoupdate changelog accepted/tizen/20130612.195417 submit/tizen/20130612.115901
Anas Nashif [Wed, 12 Jun 2013 11:58:21 +0000 (07:58 -0400)]
update changelog

11 years agoupdate macros from project conf
Anas Nashif [Wed, 12 Jun 2013 11:57:26 +0000 (07:57 -0400)]
update macros from project conf

11 years agoMerge branch 'tizen' of ssh://review.tizen.org/platform/upstream/rpm into tizen
Anas Nashif [Wed, 12 Jun 2013 11:57:05 +0000 (07:57 -0400)]
Merge branch 'tizen' of ssh://review.tizen.org/platform/upstream/rpm into tizen

11 years agoSecurity plugin: Adding configuration option --disable-dchecks 82/3782/1
Elena Reshetova [Fri, 31 May 2013 12:52:22 +0000 (15:52 +0300)]
Security plugin: Adding configuration option --disable-dchecks

11 years agoSecurity-plugin: Fix the null pointer comparison 81/3781/1
Elena Reshetova [Fri, 31 May 2013 12:51:38 +0000 (15:51 +0300)]
Security-plugin: Fix the null pointer comparison
 possibility in msmXattrSupport

11 years agoSet license using %license
Anas Nashif [Fri, 10 May 2013 18:52:37 +0000 (14:52 -0400)]
Set license using %license

11 years agoFix 32bit kernel builds by not using eu-strip accepted/tizen/20130520.094313 submit/tizen/20130509.184059 submit/tizen/20130517.024101
William Douglas [Tue, 7 May 2013 19:57:42 +0000 (12:57 -0700)]
Fix 32bit kernel builds by not using eu-strip

Right now 32bit kernel builds are failing because eu-strip is not
performing safe operations. In order to work around this, use objdump
as before when running a kernel build (by checking for a Kconfig file
in the BUILDIR).

Change-Id: I8c24eaab9e0ac1dfe21484522ce4e415d21fcb14
Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agoCleaning up code identation accepted/tizen/20130503.230954 submit/tizen/20130503.232628
Elena Reshetova [Mon, 22 Apr 2013 12:16:24 +0000 (15:16 +0300)]
Cleaning up code identation

11 years agoFix the missing path prefix for Plugin init hook
Elena Reshetova [Thu, 18 Apr 2013 12:19:13 +0000 (15:19 +0300)]
Fix the missing path prefix for Plugin init hook

11 years agoFixes to rpm security plugin
Elena Reshetova [Tue, 16 Apr 2013 10:23:37 +0000 (13:23 +0300)]
Fixes to rpm security plugin
 - stricter control over smack64exec label assigment
 - strciter control over dbus interface labels

11 years agoAdd VCS tag into .src.rpm
Alexander Kanevskiy [Sat, 13 Apr 2013 06:27:41 +0000 (09:27 +0300)]
Add VCS tag into .src.rpm

11 years agoUpdate changelog accepted/trunk/20130330.123858 submit/trunk/20130329.135545
Anas Nashif [Fri, 29 Mar 2013 13:53:09 +0000 (06:53 -0700)]
Update changelog

11 years agoadd find-provides.ksyms
Anas Nashif [Fri, 29 Mar 2013 13:52:58 +0000 (06:52 -0700)]
add find-provides.ksyms

11 years agoadd find-provides.ksyms
Anas Nashif [Fri, 29 Mar 2013 13:52:38 +0000 (06:52 -0700)]
add find-provides.ksyms

11 years agoinit message test
Elena Reshetova [Tue, 26 Mar 2013 13:56:17 +0000 (15:56 +0200)]
init message test

11 years agoAdding Isolated domain to policy
Elena Reshetova [Tue, 26 Mar 2013 08:39:30 +0000 (10:39 +0200)]
Adding Isolated domain to policy

11 years agoChanging smack load path
Elena Reshetova [Tue, 26 Mar 2013 08:38:44 +0000 (10:38 +0200)]
Changing smack load path

11 years agoFixed package groups accepted/trunk/20130322.190612 submit/trunk/20130322.180734
Anas Nashif [Fri, 22 Mar 2013 18:07:33 +0000 (11:07 -0700)]
Fixed package groups

11 years agoAdding a new attribute tag to manifest accepted/trunk/20130318.201050 submit/trunk/20130318.200853
Elena Reshetova [Fri, 8 Mar 2013 09:02:45 +0000 (11:02 +0200)]
Adding a new attribute tag to manifest

Attribute tag allows to specify the type of the package (currenlty only application or system)
that affects setting SMACK64EXEC label.

For system packages it isn't set by default and for applications it is set to requested domain.

11 years agoMerge "Keep function symbols for backtraces."
Nashif, Anas [Fri, 8 Mar 2013 07:50:22 +0000 (23:50 -0800)]
Merge "Keep function symbols for backtraces."

11 years agoAdding System ac domain to the policy
Elena Reshetova [Fri, 8 Mar 2013 07:48:25 +0000 (09:48 +0200)]
Adding System ac domain to the policy

11 years agoKeep function symbols for backtraces. accepted/trunk/20130309.052847 submit/trunk/20130306.232316
William Douglas [Wed, 6 Mar 2013 23:18:17 +0000 (15:18 -0800)]
Keep function symbols for backtraces.

In order to get minimal backtraces in gdb without installing
debug-info packages strip packages with eu-strip -g.

Also check for kernel modules and strip them without attempting
to leave minimal function symbols in place (as this does not work
correctly).

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agoFixed find-lang accepted/trunk/20130306.083703 submit/trunk/20130305.075905
Anas Nashif [Tue, 5 Mar 2013 07:59:00 +0000 (23:59 -0800)]
Fixed find-lang

11 years agoFixed package groups
Anas Nashif [Tue, 5 Mar 2013 07:57:57 +0000 (23:57 -0800)]
Fixed package groups

11 years agoadd macro no_lang_C
Anas Nashif [Tue, 5 Mar 2013 07:57:39 +0000 (23:57 -0800)]
add macro no_lang_C

11 years agoupdate find-lang
Anas Nashif [Tue, 5 Mar 2013 07:57:17 +0000 (23:57 -0800)]
update find-lang

11 years agoUse find-lang from opensuse
Anas Nashif [Mon, 4 Mar 2013 22:15:00 +0000 (14:15 -0800)]
Use find-lang from opensuse

11 years agoMerge branch 'master' of ssh://tz.otcshare.org/profile/base/rpm accepted/trunk/20130207.030437 submit/trunk/20130207.030314
Anas Nashif [Thu, 7 Feb 2013 03:02:35 +0000 (19:02 -0800)]
Merge branch 'master' of ssh://tz.otcshare.org/profile/base/rpm

11 years agoCall ldconfig submit/trunk/20130207.030105
Anas Nashif [Thu, 7 Feb 2013 03:01:03 +0000 (19:01 -0800)]
Call ldconfig

11 years agocall ldconfig
Anas Nashif [Thu, 7 Feb 2013 03:00:44 +0000 (19:00 -0800)]
call ldconfig

11 years agoMerge "Include %{VCS} in rpm -q --info output"
Nashif, Anas [Wed, 6 Feb 2013 15:54:16 +0000 (07:54 -0800)]
Merge "Include %{VCS} in rpm -q --info output"

11 years agoMove libs back to main package submit/trunk/20130206.154747
Anas Nashif [Wed, 6 Feb 2013 15:47:44 +0000 (07:47 -0800)]
Move libs back to main package

11 years agomove libs back to main package
Anas Nashif [Wed, 6 Feb 2013 15:47:25 +0000 (07:47 -0800)]
move libs back to main package

11 years agoInclude %{VCS} in rpm -q --info output
Simon McVittie [Wed, 6 Feb 2013 15:04:23 +0000 (15:04 +0000)]
Include %{VCS} in rpm -q --info output

When packages are built from a VCS with an automatically-assigned
release number, checking the commit ID of an installed package is
relatively common and important.

11 years agoMoving some plugin info prints to debug
Elena Reshetova [Mon, 4 Feb 2013 08:14:23 +0000 (10:14 +0200)]
Moving some plugin info prints to debug

11 years agoUpdate to 4.11.0.1 accepted/trunk/20130203.005124 submit/trunk/20130203.005409
Anas Nashif [Sun, 3 Feb 2013 00:54:07 +0000 (16:54 -0800)]
Update to 4.11.0.1

11 years agoUpdate to 4.11.0.1
Anas Nashif [Sun, 3 Feb 2013 00:45:34 +0000 (16:45 -0800)]
Update to 4.11.0.1

11 years agoupdate BR for python package
Anas Nashif [Tue, 29 Jan 2013 13:53:31 +0000 (05:53 -0800)]
update BR for python package

11 years agoUpdate changelog
Markus Lehtonen [Tue, 29 Jan 2013 13:44:25 +0000 (15:44 +0200)]
Update changelog

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoTemporally making loading of a configured plugin optional
Elena Reshetova [Mon, 28 Jan 2013 07:38:08 +0000 (09:38 +0200)]
Temporally making loading of a configured plugin optional

11 years agofixing error in cleanup if magic db can't be loaded [Elena Reshetova]
Anas Nashif [Thu, 17 Jan 2013 14:31:04 +0000 (06:31 -0800)]
fixing error in cleanup if magic db can't be loaded [Elena Reshetova]

11 years agofixing error in cleanup if magic db can't be loaded
Elena Reshetova [Thu, 17 Jan 2013 14:20:02 +0000 (16:20 +0200)]
fixing error in cleanup if magic db can't be loaded

11 years agoEnable security plugin/Smack
Anas Nashif [Thu, 17 Jan 2013 00:25:08 +0000 (16:25 -0800)]
Enable security plugin/Smack

11 years agoAdding security msm plugin
Elena Reshetova [Fri, 4 Jan 2013 10:46:42 +0000 (12:46 +0200)]
Adding security msm plugin

11 years agoMaking pre/post tsm/psm hooks more consistent.
Elena Reshetova [Fri, 30 Nov 2012 16:35:44 +0000 (18:35 +0200)]
Making pre/post tsm/psm hooks more consistent.

-All post hooks take an additional rc argument that indicates general return code from operation.
-All post hooks are always called if correspoding pre hook has been called.
-The return value from post hooks is curently ignored

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
11 years agoImproving scriptlet related rpm plugin hooks.
Elena Reshetova [Thu, 22 Nov 2012 18:49:27 +0000 (20:49 +0200)]
Improving scriptlet related rpm plugin hooks.

Three new hooks added:
PLUGINHOOK_SCRIPTLET_PRE_FUNC
Called before scriptlet execution
PLUGINHOOK_SCRIPTLET_FORK_POST_FUNC
Called after fork() but before scriptlet execution
PLUGINHOOK_SCRIPTLET_POST_FUNC
Called after scriptlet execution

Currently pre and post hooks are called for externals and internal lua scripts.
post hook is called even if scriptlet execution has failed and
the return code is given as an argument.

fork_post hook is only called for external scriptlets,
because for internal scriptlets no fork() is currently performed.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
11 years agoExtending rpm plugin interface, part 1
Elena Reshetova [Wed, 17 Oct 2012 11:55:39 +0000 (14:55 +0300)]
Extending rpm plugin interface, part 1

This change adds a new type of the rpm plugin, called transaction plugin
and a set of initial hooks for this plugin. The hooks are:

PLUGINHOOK_TSM_PRE
    Pre-transaction hook that is called before an rpm transaction begins
PLUGINHOOK_TSM_POST
    Post-transaction hook that is called after an rpm transaction ends
PLUGINHOOK_PSM_PRE
    Pre-transaction-element hook that is called before an rpm
    transaction-element is processed
PLUGINHOOK_PSM_POST
    Post-transaction-element hook that is called after an rpm
    transaction-element is processed
PLUGINHOOK_SCRIPT_SETUP
    Per-script hook that is called once for each rpm mainainers script
    that is present in the package

Each hook is called for every plugin that have this hook registered.
The avaliable transaction plugins can be specified in macros.in via
transaction_plugins element.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
11 years agoAdding manifest support for rpmbuild
Elena Reshetova [Fri, 4 Jan 2013 11:46:32 +0000 (13:46 +0200)]
Adding manifest support for rpmbuild

11 years agoMove build related files to rpm-build
Anas Nashif [Mon, 14 Jan 2013 16:54:40 +0000 (08:54 -0800)]
Move build related files to rpm-build

11 years agoreorg files in sub-packages
Anas Nashif [Mon, 14 Jan 2013 16:12:39 +0000 (08:12 -0800)]
reorg files in sub-packages

11 years agobump python-rpm to 4.10.91
Anas Nashif [Fri, 4 Jan 2013 15:10:17 +0000 (07:10 -0800)]
bump python-rpm to 4.10.91

11 years agospec cleanup
Anas Nashif [Fri, 4 Jan 2013 13:53:10 +0000 (05:53 -0800)]
spec cleanup

11 years agocleanup macros
Anas Nashif [Sat, 15 Dec 2012 19:30:24 +0000 (11:30 -0800)]
cleanup macros

11 years agocleanup macros
Anas Nashif [Sat, 15 Dec 2012 19:30:06 +0000 (11:30 -0800)]
cleanup macros

11 years agoupdate to 4.11.0 beta1
Anas Nashif [Sat, 15 Dec 2012 16:55:56 +0000 (08:55 -0800)]
update to 4.11.0 beta1