Commit Graph

108 Commits

Author SHA1 Message Date
Yi Zhao
51bfd7c35a libpam: drop packageconfig for selinux
Remove PACKAGECONFIG[selinux] as it has been added to libpam recipe in
oe-core[1] and updated for meson.

[1] https://git.openembedded.org/openembedded-core/commit/?id=15d0cb7c4b1278e869f440f949f5e9af2d305429

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe.macdonald@siemens.com>
2024-12-10 12:39:38 -05:00
Yi Zhao
15574a43de shadow: comment out pam_lastlog line in login pam file
The pam_lastlog module is deprecated and disabled by default in
linux-pam since 1.5.3[1]. Comment out this line to avoid loading
pam_lastlog module by default. Users can use lastlog2 provided by
util-linux as an alternative[2].

[1] 357a4ddbe9
[2] https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=c2e299d0acb2fa4ad1691452fa0eae76520bbdb0

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe.macdonald@siemens.com>
2024-07-24 10:52:09 -04:00
Mingli Yu
696662e9f0 psmisc: move PACKAGECONFIG to oe-core
Move PACKAGECONFIG setting to oe-core [1] to conform to yocto compliance.

[1] https://git.openembedded.org/openembedded-core/commit/?id=d2aa518163a4836eeb5bf8517456790cba382c2e

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2022-12-14 20:31:45 -05:00
Mingli Yu
40c6a3dce7 cronie: move PACKAGECONFIG to oe-core
Move PACKAGECONFIG setting to oe-core [1] to conform to yocto compliance.

[1] https://git.openembedded.org/openembedded-core/commit/?id=fd036af063ef47d8296be909eb5db9bddc05eb6e

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2022-12-14 20:31:45 -05:00
Mingli Yu
f6303c0f30 sudo: move PACKAGECONFIG to oe-core
Move PACKAGECONFIG setting to oe-core [1] to conform to yocto compliance.

[1] https://git.openembedded.org/openembedded-core/commit/?id=5c8e22895709a0ce7ce855468473d9d6d10a1e65

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2022-12-14 20:31:45 -05:00
Mingli Yu
4d2bb085d2 coreutils/findutils/tar: remove pkgconfig from bbappend
When enable meta-gplv2 layer [1], there comes below error:
  ERROR: coreutils-6.9-r5 do_configure: QA Issue: coreutils: configure was passed unrecognised options: --without-selinux [unknown-configure-option]
  ERROR: coreutils-6.9-r5 do_configure: Fatal QA errors found, failing task.

It's because the old version of coreutils under meta-gplv2 layer
doesn't support the above configure option, so move the related
pkgconfig setting to the coreutils recipe under oe-core [2] which
supports the configure option to fix the gap.

And the findutils and tar also have the problem.

[1] http://git.yoctoproject.org/cgit/cgit.cgi/meta-gplv2/
[2] https://git.openembedded.org/openembedded-core/

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-09-29 22:29:59 -04:00
Yi Zhao
1fda4b3a75 net-tools: fix selinux build
Simply adding EXTRA_OEMAKE doesn't work for selinux build. We need to
modify config files in do_configure.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-29 21:34:22 -04:00
Yi Zhao
4e07344695 sysklogd: sync the initscript to latest oe-core version
The sysklogd has been updated to 2.2.3 in oe-core. Update the initscript
to adapt it.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-29 21:34:22 -04:00
Yi Zhao
31325005e4 classes: drop redundant classes
There are some redundant classes: enable-selinux.bbclass,
with-selinux.bbclass, meson-enable-selinux.bbclass,
meson-selinux.bbclass, enable-audit.bbclass, with-audit.bbclass.
These classes only add PACKAGEOCNFIG[selinux]/[audit] to recipes. But
currently most recipes have added PACKAGECONFIG[selinux]/[audit] in
their bb files. We don't need these anymore. Only keep
enable-selinux.class and enable-audit.class to append
PACKAGECONFIG[selinux]/[audit] for recipes.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-29 21:34:22 -04:00
Yi Zhao
fe801fd2db logrotate: drop bbappend
The content of the bbappend is already contained in logrotate recipe.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-29 21:34:22 -04:00
Yi Zhao
654201e25d meta-selinux: convert to new override syntax
This is the result of automated script conversion:
poky/scripts/contrib/convert-overrides.py meta-selinux

Converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-04 16:18:39 -04:00
Yi Zhao
63ad5e2f75 parted: remove bbappend
Remove bbappend since parted 3.4 has removed the enable_selinux
configure option[1].

Fixes:
QA Issue: parted: configure was passed unrecognised options: --enable-selinux [unknown-configure-option]

[1] https://git.savannah.gnu.org/cgit/parted.git/commit/?id=059200d50beb259c54469ae65f2d034af48ff849

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-03-03 13:55:58 -05:00
Yi Zhao
547d9be873 net-tools: drop patch
The netstat-selinux-support.patch has been merged upstream. So drop it.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2020-09-23 14:34:46 -04:00
Yi Zhao
7d3b1347ae sysklogd: set correct security context for /var/log in initscript
We don't need to set security context for /dev/log after syslogd daemon
startup because it is already set by udev. We just need to set the
correct security context for symbolic link /var/log before syslogd
startup.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2020-07-14 18:56:06 -04:00
Yi Zhao
de13a3ee27 sysklogd: sync the initscript to latest oe-core version
The sysklogd has been updated to 2.1.1 in oe-core and the klogd was
removed from this version since syslogd performs logging of kernel
messages. So we update the initscript to adapt it.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2020-04-07 09:28:04 -04:00
Jeremy Puhlman
dc8c5e90ec findutils: make append generic
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2020-01-30 21:46:58 -05:00
hongxu
2cb980153d rename sed_4.2.2.bbappend to sed_4.%.bbappend
Since upstream oe-core [bd40260cba sed: upgrade to 4.7],
renme bbappend to match the new version

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2019-12-19 11:03:51 -05:00
Yi Zhao
99ff2a13b3 findutils: drop obsolete patch
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2019-06-06 19:03:59 -04:00
Mark Hatle
4fefe83c32 Refactor to conform to YP Compat requirements
Change the references to check for the distribution flag of 'selinux' being
set before taking any action within the bbappends.  This prevents the
signature from being modified.

Also remove PR changes, as they are no longer allowed.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2017-09-14 08:29:01 -05:00
Doug Goldstein
41bb218dae removed ustr package as it is unused
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2017-05-02 09:21:35 -04:00
Joe MacDonald
60ec38e8fa minimum build changes
Not intended as a final patch, this is just a quick hack for master-next
to enable building meta-selinux on current yocto base images.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2017-04-27 14:57:27 -04:00
Joe MacDonald
33c7585bc5 augeas: Move to meta-python optional layer
Augeas lives in meta-python, but meta-selinux shouldn't specifically
require meta-python in every build, so make the bbappend optional using
the standard mechanism already present in the layer.conf.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2016-08-09 09:31:01 -04:00
Adrian Dudau
e93d2e8bac net-tools: Rebase netstat-selinux-support.patch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Philip Tricca <flihp@twobit.us>
2016-03-16 17:35:38 +00:00
Stephen Smalley
2003c8819c at: drop obsolete SELinux patch
SELinux support was merged upstream in at-3.1.18,
so this patch no longer applies and is not needed.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2016-03-03 03:00:15 +00:00
Philip Tricca
3ad7b06c6f findutils: Up-rev findutils 4.5.% to 4.6.%
Signed-off-by: Philip Tricca <flihp@twobit.us>
2016-02-27 06:32:37 +00:00
Joe MacDonald
8bbcf2bba7 net-tools: update bbappend for new base recipe
Commit bf362e4a8bb9fef3d16b81dea7b39a057e293ee4 in poky updates net-tools,
take this opportunity to convert this to a wildcard, since the bbappend
still seems to apply.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-09-08 15:59:54 -04:00
Robert Yang
b383d0cbad ustr: fix build error with gcc 5
Backport a patch from debian to fix errors as:
ustr-main.h:1062: multiple definition of `ustrp_setf_owner'

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-09-08 14:03:28 -04:00
Shrikant Bobade
607fb68d4b libpam: use wildcard for version and cleanup
use wildcard for version: adopting libpam upgrade from 1.1.6 to 1.2.1,
cleanup older recipe and remove patch sepermit-add-DESTDIR-prefix.patch
since the changes already available with latest source.

Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-08-07 14:24:15 -04:00
Dmitry Eremin-Solenikov
b2c18b5a81 tar: drop acl PACKAGECONFIG override
Now tar has an option for handling acl enabling/disabling. This is
correctly handled by main tar recipe in oe-core. Thus let's drop the
incorrect PACKAGECONFIG[acl] override from tar_%.bbappend.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-04-16 13:50:23 -04:00
Philip Tricca
0d270cbdef ustr: Fix use of bad variable in SRC_URI.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-02-10 13:41:57 -05:00
Philip Tricca
9cb142d8fb sysklogd: Use wildcard for version and remove PR.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-02-10 13:41:57 -05:00
Philip Tricca
b108eeefd2 logrotate: Use wildcard for version number.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-01-26 15:25:11 -05:00
Philip Tricca
ad98856d7d tar: Use wildcard for version number in bbappend.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-01-26 15:25:11 -05:00
Philip Tricca
9aafd3ca88 findutils: Upgrade recipe to 4.5 and use wildcard for pico version.
The latest version eliminates the need for the two patches from
fedora. The previously pinned glib version needed updating so drop
that in favor of the default.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-01-26 15:25:11 -05:00
Jackie Huang
dac3d4b4cf lsof: use wildcard for version number in bbappend
The recipe in oe-core is already updated:
b463d70 lsof: Upgrade to 4.88

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-01-12 11:51:58 -05:00
Philip Tricca
8462d25635 cronie: Use wildcard for version number in bbappend.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-01-12 11:51:57 -05:00
Philip Tricca
5da87e83ab parted: Use wildcard for version number in bbappend.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-01-12 11:51:57 -05:00
Qian Lei
219b51985f ustr: Add a new patch
This patch has been applied in fedora to fix c99 inline problems.
Upstream hasn't been updated since 2008 and those c99 problems
still exist in the last version 1.0.4.

Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-01-12 11:51:55 -05:00
Qian Lei
7272465406 ustr: Get source from official upstream instead of Fedora Project
Official upstream is still OK, so we use it first

Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-01-12 11:51:54 -05:00
Joe MacDonald
aa85e81d94 Globally replace 'base_contains' calls with 'bb.utils.contains'
Based on oe-core commit:

   commit 1528e596d4906c33e4be83fcf691cfe76d340ff3
   Author: Otavio Salvador <otavio@ossystems.com.br>
   Date:   Thu Apr 24 15:59:20 2014 -0300

   Globally replace 'base_contains' calls with 'bb.utils.contains'

   The base_contains is kept as a compatibility method and we ought to not
   use it in OE-Core so we can remove it from base metadata in future.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2014-09-16 21:05:00 -04:00
Xin Ouyang
4044f7f892 shadow: add missing libsemanage conditional depend.
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-09-12 16:37:04 +08:00
Xin Ouyang
f3a83a7760 at: Use wildcard for version number in bbappend.
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-09-12 09:52:06 +08:00
Xin Ouyang
130dc610c0 shadow: Use wildcard for version number in bbappend.
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-09-12 09:47:25 +08:00
Xin Ouyang
beff246965 psmisc: Use wildcard for version number in bbappend.
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-05-16 18:03:28 +08:00
Xin Ouyang
b7b4a77e9e augeas: Use wildcard for version number in bbappend.
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-05-16 18:03:03 +08:00
Philip Tricca
b6967c4484 sudo: Use wildcard for version number in sudo bbappend.
Signed-off-by: Philip Tricca <flihp@twobit.us>

 create mode 100644 recipes-extended/sudo/sudo_%.bbappend
 delete mode 100644 recipes-extended/sudo/sudo_1.8.8.bbappend
Signed-off-by: Joe MacDonald <joe@deserted.net>
2014-02-12 19:15:32 -05:00
Xin Ouyang
3fee4a09cc psmisc: inherit enable-selinux and backport to fix build issue
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-01-13 17:50:00 +08:00
Xin Ouyang
d1c4834ced tar: inherit with-selinux for new selinux option
Version 1.27.x has a new --without-selinux option, so change to
inherit with-selinux since we have droped the selinux patch.

Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-01-13 17:33:27 +08:00
Mark Hatle
7cc4ee6c83 Resync to oe-core master Jan 10, 2014
Rename most recipes

Update a few recipes as needed:
* tar: Newer version has xattr and selinux support

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2014-01-10 13:55:59 -06:00
Philip Tricca
ef44ec6d28 at: bump from 3.1.13 to 3.1.14
This renames the bbappend as well as a minor tweak to the selinux patch.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2013-12-04 10:16:52 -05:00