Skip to content

Commit

Permalink
package/libsepol: bump to version 3.3
Browse files Browse the repository at this point in the history
Add gcc >= 5 dependency because __builtin_add_overflow is
unconditionally used since
SELinuxProject/selinux@0744fa4

https://github.com/SELinuxProject/selinux/releases/tag/3.3

Signed-off-by: Fabrice Fontaine <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
  • Loading branch information
ffontaine authored and yann-morin-1998 committed Jan 5, 2022
1 parent eea674a commit 56d9b88
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 16 deletions.
6 changes: 4 additions & 2 deletions package/checkpolicy/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ config BR2_PACKAGE_CHECKPOLICY
bool "checkpolicy"
depends on BR2_TOOLCHAIN_HAS_THREADS # libselinux
depends on !BR2_STATIC_LIBS # libselinux
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libselinux -> libsepol
select BR2_PACKAGE_LIBSELINUX
select BR2_PACKAGE_FLEX
help
Expand All @@ -13,5 +14,6 @@ config BR2_PACKAGE_CHECKPOLICY

http://selinuxproject.org/page/Main_Page

comment "checkpolicy needs a toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
comment "checkpolicy needs a toolchain w/ threads, dynamic library, gcc >= 5"
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_5
6 changes: 4 additions & 2 deletions package/libselinux/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ config BR2_PACKAGE_LIBSELINUX
bool "libselinux"
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsepol
select BR2_PACKAGE_LIBSEPOL
select BR2_PACKAGE_PCRE
select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
Expand All @@ -16,5 +17,6 @@ config BR2_PACKAGE_LIBSELINUX

http://selinuxproject.org/page/Main_Page

comment "libselinux needs a toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
comment "libselinux needs a toolchain w/ threads, dynamic library, gcc >= 5"
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_5
6 changes: 4 additions & 2 deletions package/libsepol/Config.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config BR2_PACKAGE_LIBSEPOL
bool "libsepol"
depends on BR2_TOOLCHAIN_HAS_THREADS # pthread
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
help
Libsepol is the binary policy manipulation library. It doesn't
depend upon or use any of the other SELinux components.
Expand Down Expand Up @@ -35,5 +36,6 @@ config BR2_PACKAGE_LIBSEPOL_POLICY_VERSION

endif

comment "libsepol needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
comment "libsepol needs a toolchain w/ threads, gcc >= 5"
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_5
2 changes: 1 addition & 1 deletion package/libsepol/libsepol.hash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# From: https://github.com/SELinuxProject/selinux/wiki/Releases
sha256 dfc7f662af8000116e56a01de6a0394ed79be1b34b999e551346233c5dd19508 libsepol-3.2.tar.gz
sha256 2d97df3eb8466169b389c3660acbb90c54200ac96e452eca9f41a9639f4f238b libsepol-3.3.tar.gz

# Hash for license file
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 COPYING
2 changes: 1 addition & 1 deletion package/libsepol/libsepol.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
################################################################################

LIBSEPOL_VERSION = 3.2
LIBSEPOL_VERSION = 3.3
LIBSEPOL_SITE = https://github.com/SELinuxProject/selinux/releases/download/$(LIBSEPOL_VERSION)
LIBSEPOL_LICENSE = LGPL-2.1+
LIBSEPOL_LICENSE_FILES = COPYING
Expand Down
6 changes: 4 additions & 2 deletions package/refpolicy/Config.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config BR2_PACKAGE_REFPOLICY
bool "refpolicy"
depends on BR2_TOOLCHAIN_HAS_THREADS # libsepol
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsepol
# Even though libsepol is not necessary for building, we get
# the policy version from libsepol, so we select it, and treat
# it like a runtime dependency.
Expand Down Expand Up @@ -113,5 +114,6 @@ endif

endif

comment "refpolicy needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
comment "refpolicy needs a toolchain w/ threads, gcc >= 5"
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_5
5 changes: 3 additions & 2 deletions package/restorecond/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ config BR2_PACKAGE_RESTORECOND
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on !BR2_STATIC_LIBS # libselinux
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsepol
select BR2_PACKAGE_DBUS
select BR2_PACKAGE_DBUS_GLIB
select BR2_PACKAGE_LIBGLIB2
Expand All @@ -15,7 +16,7 @@ config BR2_PACKAGE_RESTORECOND

https://github.com/SELinuxProject/selinux/wiki/Releases

comment "restorecond needs a toolchain w/ wchar, threads, dynamic library"
comment "restorecond needs a toolchain w/ wchar, threads, dynamic library, gcc >= 5"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
BR2_STATIC_LIBS
BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_5
8 changes: 8 additions & 0 deletions package/selinux-python/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if BR2_PACKAGE_SELINUX_PYTHON

config BR2_PACKAGE_SELINUX_PYTHON_AUDIT2ALLOW
bool "audit2allow"
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # semodule-utils -> libsepol
select BR2_PACKAGE_CHECKPOLICY
select BR2_PACKAGE_SELINUX_PYTHON_SEPOLGEN
select BR2_PACKAGE_SEMODULE_UTILS
Expand All @@ -29,13 +30,20 @@ config BR2_PACKAGE_SELINUX_PYTHON_AUDIT2ALLOW
audit2why - translates SELinux audit messages into a
description of why the access was denied (audit2allow -w)

comment "audit2allow needs a toolchain w/ gcc 5"
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5

config BR2_PACKAGE_SELINUX_PYTHON_SEPOLGEN
bool "sepolgen"
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # semodule-utils -> libsepol
select BR2_PACKAGE_SEMODULE_UTILS
help
This package contains a Python module that allows you to
generate an initial SELinux policy module template.

comment "sepolgen needs a toolchain w/ gcc 5"
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5

endif

comment "selinux-python needs python3"
Expand Down
6 changes: 4 additions & 2 deletions package/semodule-utils/Config.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config BR2_PACKAGE_SEMODULE_UTILS
bool "semodule-utils"
depends on BR2_TOOLCHAIN_HAS_THREADS # libsepol
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsepol
select BR2_PACKAGE_LIBSEPOL
help
semodule-utils is a package that contains tools for handling
Expand All @@ -15,5 +16,6 @@ config BR2_PACKAGE_SEMODULE_UTILS

https://github.com/SELinuxProject/selinux/wiki/Releases

comment "semodule-utils needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
comment "semodule-utils needs a toolchain w/ threads, gcc >= 5"
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_5
5 changes: 3 additions & 2 deletions package/setools/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ config BR2_PACKAGE_SETOOLS
depends on BR2_USE_WCHAR
depends on BR2_USE_MMU
depends on BR2_PACKAGE_PYTHON3
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libselinux -> libsepol
select BR2_PACKAGE_PYTHON_NETWORKX # runtime
select BR2_PACKAGE_PYTHON_SETUPTOOLS
select BR2_PACKAGE_LIBSELINUX
Expand All @@ -19,10 +20,10 @@ config BR2_PACKAGE_SETOOLS

https://github.com/SELinuxProject/setools/

comment "setools needs a toolchain w/ threads, wchar, dynamic library"
comment "setools needs a toolchain w/ threads, wchar, dynamic library, gcc >= 5"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
!BR2_USE_WCHAR
!BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_5

comment "setools needs python3"
depends on BR2_USE_MMU
Expand Down

0 comments on commit 56d9b88

Please sign in to comment.