Commit Graph

20 Commits

Author SHA1 Message Date
Yi Zhao
8784122dde packagegroup-selinux-minimal: add missing runtime dependency selinux-autorelabel
Add selinux-autorelabel to reset the SELinux label on the root
filesystem at boot time.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe.macdonald@siemens.com>
2024-06-26 11:09:53 -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
fe5a41ec9b packagegroup-core-selinux: add auditd
Install auditd which will help the users debug and eliminate the audit
logs on screen.

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
Luca Boccassi
d00cb4413c packagegroup-selinux-minimal: add selinux-init
When trying to build a minimal image (eg: without python), the default
user on autologin is not mapped to the intended user/role/domain:

  # id -Z
  system_u:system_r:kernel_t:s0

And the following error is displayed on autologin:

  Unable to get valid context for <user>

While on an image built with the core-selinux packagegroup:

  # id -Z
  unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Adding selinux-init to the minimal package list fixes the issue.
This package does not seem to bring along additional dependencies.

Signed-off-by: Luca Boccassi <bluca@debian.org>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2019-04-14 17:14:54 -04:00
Yi Zhao
5775f7b0da packagegroup-selinux-policycoreutils: remove semodule-utils-semodule-deps
Remove package semodule-utils-semodule-deps as it had been removed
upstream.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2018-09-07 16:13:57 -04:00
Mark Hatle
dddf26565e packagegroups: Fix LIC_FILES_CHKSUM
Resolve warning:

${COREBASE}/LICENSE is not a valid license file, please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM.

Also remove the obsolete PR number.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2017-09-14 16:12:25 -05:00
Wenzong Fan
96b54b481b packagegroup-*: sync package names
Some new packages added after SELinux uprev to 2.7, sync the package
names accordingly:

  policycoreutils-audit2allow      -> selinux-python-audit2allow
  policycoreutils-chcat            -> selinux-python-chcat
  policycoreutils-python           -> selinux-python
  policycoreutils-semanage         -> selinux-python-semanage
  policycoreutils-sandbox          -> selinux-sandbox
  policycoreutils-sepolgen-ifgen   -> selinux-python-sepolgen-ifgen
  policycoreutils-sepolicy         -> selinux-python-sepolicy,
                                      selinux-dbus
  policycoreutils-semodule-deps    -> semodule-utils-semodule-deps
  policycoreutils-semodule-expand  -> semodule-utils-semodule-expand
  policycoreutils-semodule-link    -> semodule-utils-semodule-link
  policycoreutils-semodule-package -> semodule-utils-semodule-package
  system-config-selinux            -> selinux-gui
  sepolgen                         -> selinux-python-sepolgen

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2017-09-14 08:29:01 -05:00
Doug Goldstein
f782a9b794 removed ustr as a required RDEPEND
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
d0f889259b refpolicy: remove virtual prefix for runtime providers
In keeping with the approach of only providing a single default policy at
runtime, we were originally using a virtual/refpolicy dependency and
filling it with one of our specific refpolicy implementations.  This works
well enough for some package systems, but fails for others (specifically
deb, possibly more).

Since the intent was to only have one present in the default image anyway,
we'll just throw out the 'virtual/' part of the RPROVIDES and related
dependencies across the board.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2016-07-07 10:38:32 -04:00
Shrikant Bobade
e944d15812 packagegroup-selinux-policycoreutils: add policycoreutils-hll
we need policycoreutils-hll to insert custom policy module/package, without
it semodule install fail with error:

libsemanage.semanage_pipe_data: Unable to execute /usr/libexec/selinux/hll/
pp : No such file or directory
libsemanage.semanage_direct_commit: Failed to compile hll files into cil
files. (No such file or directory).
semodule:  Failed!

Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2016-06-16 10:33:18 -04:00
Philip Tricca
8094407fd7 Integrate selinux-config into refpolicy_common.
With the virutal package there's no need for a separate recipe to build
the config. This can be generated and included as part of the policy
package.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2016-04-04 12:55:56 -04:00
Philip Tricca
14c84b182b refpolicy: Setup virtual/refpolicy provider.
This allows us to provide a default policy through the
PREFERRED_PROVIDER mechanism for each of the example distro configs.
Consumers of meta-selinux will be able to override this at the config
level instead of having to depend on a specific policy package. We do
lose the ability install more than one policy package but this falls
in line with the embedded nature of the project.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2016-04-04 12:55:56 -04:00
Philip Tricca
cfd6098067 selinux-init: Break handling of /.autorelabel out into separate script.
Fixup DESCRIPTION in old selinux-init recipe.
Exclude this autorelabel script from the minimal packagegroup.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-11-27 09:18:14 -05:00
Philip Tricca
ac8450482d selinux-init: Break labeling of /dev out into separate script.
Remove selinux-init package from packagegroup-selinux-minimal.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-11-27 09:18:14 -05:00
Philip Tricca
fd41e8b702 selinux-config: Separate init script into new recipe.
Add runtime dependencies for init script.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-11-27 09:18:13 -05:00
Shrikant Bobade
ee3e443eee pkggrp-core-selinux: coreutils addition
To add coreutils to packagegroup-core-selinux
inorder to get chcon avaibility.

Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-01-12 11:51:51 -05:00
Wenzong Fan
def5cc8c1a selinux packagegroups: update LIC_FILES_CHKSUM
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2014-01-10 14:13:44 -06:00
Philip Tricca
a99b419439 Add packagegroup for policycoreutils packages.
The policycoreutils package previously included most everything in
the base package. This packagegroup is intended to fill the role
of the old policycoreutils package and pull in all packages from the
policycoreutils recipe.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2013-10-15 14:31:17 -04:00
Philip Tricca
8c2e551a7c Add packagegroup and image recipe for minimal SELinux image.
This is intended to demonstrate the minimal set packages necessary
to boot and load a system with SELinux enabled. Specifically we
don't need any of the packages that depend on python.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2013-10-15 14:31:17 -04:00
Mark Hatle
fc2de0740d packagegroup-core-selinux: Rename from task to packagegroup
Also fix ALLOW_EMPTY, oe-core does not allow ALLOW_EMPTY w/o a package
name.

Adjust references in core-image-selinux to the new packagegroup filename.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2013-08-01 15:53:34 -05:00