Skip to content

Selinux: bump to 3.5

Adam Duskett buildroot 2 versions – Applied

Status from this message: Applied to master, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 11 repliesApplied
  2. v113 patches 1 replySuperseded

Changes in v2 from the cover letter

- Added refpolicy/2.20221101/0001-mount-dbus-interface-must-be-optional.patch

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/13package/libglib2/0003-disable-building-docs.patch: new patchpackage/libglib2/0003-disable-building-docs.patch+38 -03 replies
2/13package/python-pip: add host variantpackage/python-pip/python-pip.mk+1 -04 replies
3/13package/libsepol: bump to version 3.5package/libsepol/libsepol.hash package/libsepol/libsepol.mk+4 -40 replies
4/13package/libsemanage: bump to version 3.5package/libsemanage/libsemanage.hash package/libsemanage/libsemanage.mk+4 -40 replies
5/13package/libselinux: bump to version 3.5package/libselinux/0001-fix-musl-build.patch package/libselinux/0002-Do-not-use-PYCEXT-and-rely-on-the-installed-file-nam.patch package/libselinux/Config.in +2 more+21 -101 reply
6/13package/policycoreutils: bump to version 3.5package/policycoreutils/0001-Add-DESTDIR-to-all-paths-that-use-an-absolute-path.patch package/policycoreutils/policycoreutils.hash package/policycoreutils/policycoreutils.mk+5 -50 replies
7/13package/checkpolicy: bump to version 3.5package/checkpolicy/checkpolicy.hash package/checkpolicy/checkpolicy.mk+4 -40 replies
8/13package/restorecond: bump to version 3.5package/restorecond/restorecond.hash package/restorecond/restorecond.mk+4 -40 replies
9/13package/semodule-utils: bump to version 3.5package/semodule-utils/semodule-utils.hash package/semodule-utils/semodule-utils.mk+4 -40 replies
10/13package/audit: bump to version 3.1package/audit/audit.hash package/audit/audit.mk+2 -20 replies
11/13package/selinux-python: bump to version 3.5package/selinux-python/0001-fix-ausearch-path.patch package/selinux-python/selinux-python.hash package/selinux-python/selinux-python.mk+41 -41 reply
12/13package/setools: bump to version 4.4.2package/setools/0001-Do-not-export-use-setools.InfoFlowAnalysis-and-setoo.patch package/setools/setools.hash package/setools/setools.mk+28 -280 replies
13/13package/refpolicy: bump to version 2.20221101package/refpolicy/2.20221101/0001-mount-dbus-interface-must-be-optional.patch package/refpolicy/refpolicy.hash package/refpolicy/refpolicy.mk+35 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Buildroot] [PATCH v2 00/13] Selinux: bump to 3.5

It's been quite some time since anyone updated the SELinux packages (mainly me!)

Most of the changes are straight forward:
- Update the package to 3.5
- Change the license file from COPYING to LICENSE. (The COPYING file has been renamed to LICENSE.)

Some notes for specific packages:
- Audit now installs ausearch to /usr/sbin (or we do?) As such, a small patch for selinux-python is necessary to change the patch for ausearch from /sbin to /usr/sbin

- libselinux now requires host-pip to install the python modules. Surprisingly, host-pip3 cross-compiles the modules without issue and just worked. I should buy a lottery ticket!

- I found out that if you have rst2html5 on the host, the glib meson package tries to use it to generate documents, which causes a failure on installing to the target. Luckily we don't want the documents so the fix is to simply remove the docs/ subdirectroy from meson.build. This patch is tiny and won't be a headache to maintain.

- A small upstream patch needs to be added to refpolicy to ensure refpolicy builds without dbus selected.

Tested on Fedora 38. Both with pc_efi and aarch-virt configs.

Other tests ran and passed:

tests.init.test_systemd_selinux.TestSELinuxSystemdExt4 tests.init.test_systemd_selinux.TestSELinuxSystemdSquashfs tests.core.test_selinux.TestSELinuxCustomGit tests.core.test_selinux.TestSELinuxExtraModules tests.core.test_selinux.TestSELinuxExtraModulesDirs tests.core.test_selinux.TestSELinuxPackage

Changes v1 -> v2:
- Added refpolicy/2.20221101/0001-mount-dbus-interface-must-be-optional.patch

Adam Duskett (13):
package/libglib2/0003-disable-building-docs.patch: new patch package/python-pip: add host variant package/libsepol: bump to version 3.5 package/libsemanage: bump to version 3.5 package/libselinux: bump to version 3.5 package/policycoreutils: bump to version 3.5 package/checkpolicy: bump to version 3.5 package/restorecond: bump to version 3.5 package/semodule-utils: bump to version 3.5 package/audit: bump to version 3.1 package/selinux-python: bump to version 3.5 package/setools: bump to version 4.4.2 package/refpolicy: bump to version 2.20221101

 package/audit/audit.hash                      |  2 +-
 package/audit/audit.mk                        |  2 +-
 package/checkpolicy/checkpolicy.hash          |  4 +-
 package/checkpolicy/checkpolicy.mk            |  4 +-
 .../libglib2/0003-disable-building-docs.patch | 38 ++++++++++++++
 package/libselinux/0001-fix-musl-build.patch  |  4 +-
 ...T-and-rely-on-the-installed-file-nam.patch |  8 +--
 package/libselinux/Config.in                  |  1 +
 package/libselinux/libselinux.hash            |  2 +-
 package/libselinux/libselinux.mk              | 16 ++++--
 package/libsemanage/libsemanage.hash          |  4 +-
 package/libsemanage/libsemanage.mk            |  4 +-
 package/libsepol/libsepol.hash                |  4 +-
 package/libsepol/libsepol.mk                  |  4 +-
 ...-all-paths-that-use-an-absolute-path.patch |  2 +-
 package/policycoreutils/policycoreutils.hash  |  4 +-
 package/policycoreutils/policycoreutils.mk    |  4 +-
 package/python-pip/python-pip.mk              |  1 +
 ...ount-dbus-interface-must-be-optional.patch | 33 ++++++++++++
 package/refpolicy/refpolicy.hash              |  2 +-
 package/refpolicy/refpolicy.mk                |  2 +-
 package/restorecond/restorecond.hash          |  4 +-
 package/restorecond/restorecond.mk            |  4 +-
 .../0001-fix-ausearch-path.patch              | 37 ++++++++++++++
 package/selinux-python/selinux-python.hash    |  4 +-
 package/selinux-python/selinux-python.mk      |  4 +-
 package/semodule-utils/semodule-utils.hash    |  4 +-
 package/semodule-utils/semodule-utils.mk      |  4 +-
 ...e-setools.InfoFlowAnalysis-and-setoo.patch | 50 +++++++++----------
 package/setools/setools.hash                  |  4 +-
 package/setools/setools.mk                    |  2 +-
 31 files changed, 191 insertions(+), 71 deletions(-)
 create mode 100644 package/libglib2/0003-disable-building-docs.patch
 create mode 100644 package/refpolicy/2.20221101/0001-mount-dbus-interface-must-be-optional.patch
 create mode 100644 package/selinux-python/0001-fix-ausearch-path.patch
Signature · 6 lines
2.40.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot