gitignore: add it
PATCH 1/17 gitignore: add it
--- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitignore
.gitignore new file +7 -0
@@ -0,0 +1,7 @@ +*.pyc +*.pyo +/*.patch +*.swp +*.orig +*.rej +*~
Signature · 1 line
2.25.1
PATCH 2/17 refpolicy: update to latest git rev
Drop 0003-refpolicy-minimum-make-dbus-module-optional.patch as the issue has been fixed upstream.
--- .../refpolicy/refpolicy-minimum_git.bb | 1 - ...cy-minimum-make-dbus-module-optional.patch | 36 ------------------- recipes-security/refpolicy/refpolicy_git.inc | 2 +- 3 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 recipes-security/refpolicy/refpolicy/0003-refpolicy-minimum-make-dbus-module-optional.patch
recipes-security/refpolicy/refpolicy-minimum_git.bb +0 -1
@@ -14,7 +14,6 @@ domains are unconfined. \ SRC_URI += " \ file://0001-refpolicy-minimum-make-sysadmin-module-optional.patch \ file://0002-refpolicy-minimum-make-xdg-module-optional.patch \ - file://0003-refpolicy-minimum-make-dbus-module-optional.patch \ " POLICY_NAME = "minimum"
recipes-security/refpolicy/refpolicy/0003-refpolicy-minimum-make-dbus-module-optional.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From e28807393f105a16528cb5304283bde0b771fc4e Mon Sep 17 00:00:00 2001 -From: Yi Zhao <[email protected]> -Date: Wed, 9 Nov 2022 10:53:26 +0800 -Subject: [PATCH] refpolicy-minimum: make dbus module optional - -The mount module invokes interface -dbus_dontaudit_write_system_bus_runtime_named_sockets which is from dbus -module. Since dbus is not a core moudle in sysvinit system, we could -make this interface optional in mount module by optional_policy. Then we -could make the minimum policy without dbus module. - -Upstream-Status: Inappropriate [embedded specific] - -Signed-off-by: Yi Zhao <[email protected]> ---- - policy/modules/system/mount.te | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/policy/modules/system/mount.te b/policy/modules/system/mount.te -index 97f49e58e..b59529a01 100644 ---- a/policy/modules/system/mount.te -+++ b/policy/modules/system/mount.te -@@ -146,7 +146,9 @@ selinux_getattr_fs(mount_t) - - userdom_use_all_users_fds(mount_t) - --dbus_dontaudit_write_system_bus_runtime_named_sockets(mount_t) -+optional_policy(` -+ dbus_dontaudit_write_system_bus_runtime_named_sockets(mount_t) -+') - - ifdef(`distro_redhat',` - optional_policy(` --- -2.25.1 -
recipes-security/refpolicy/refpolicy_git.inc +1 -1
@@ -2,7 +2,7 @@ PV = "2.20221101+git${SRCPV}" SRC_URI = "git://github.com/SELinuxProject/refpolicy.git;protocol=https;branch=master;name=refpolicy;destsuffix=refpolicy" -SRCREV_refpolicy ?= "03d486e306555da161b653c88e804ce23f3a0ea4" +SRCREV_refpolicy ?= "f625d5b78832dc699e2b8aed74eb53c826372a0f" UPSTREAM_CHECK_GITTAGREGEX = "RELEASE_(?P<pver>\d+_\d+)"
Signature · 1 line
2.25.1
PATCH 3/17 selinux: upgrade 3.4 -> 3.5
In reply to Yi ZhaoChangeLog:
https://github.com/SELinuxProject/selinux/releases/tag/3.5
--- recipes-security/selinux/selinux_common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-security/selinux/selinux_common.inc +1 -1
@@ -1,7 +1,7 @@ HOMEPAGE = "https://github.com/SELinuxProject" SRC_URI = "git://github.com/SELinuxProject/selinux.git;branch=master;protocol=https" -SRCREV = "0a8c177dacdc1df96ea11bb8aa75e16c4fa82285" +SRCREV = "d6e96c5929a3f1aa1dce93505edd9f0158757ac2" UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
Signature · 1 line
2.25.1
PATCH 4/17 libsepol: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
* Drop backport patch.
---
...idation-of-user-declarations-in-modu.patch | 80 -------------------
.../{libsepol_3.4.bb => libsepol_3.5.bb} | 4 +-
2 files changed, 1 insertion(+), 83 deletions(-)
delete mode 100644 recipes-security/selinux/libsepol/0001-libsepol-fix-validation-of-user-declarations-in-modu.patch
rename recipes-security/selinux/{libsepol_3.4.bb => libsepol_3.5.bb} (78%)recipes-security/selinux/libsepol/0001-libsepol-fix-validation-of-user-declarations-in-modu.patch deleted +0 -80
@@ -1,80 +0,0 @@ -From 4831f73dd356fd72916f594dbeae44d26c93bb6b Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <[email protected]> -Date: Tue, 7 Jun 2022 17:01:45 +0200 -Subject: [PATCH] libsepol: fix validation of user declarations in modules -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Users are allowed to be declared in modules. Modules do not get expanded -leaving the `struct user_datum` members `exp_range` and `exp_dfltlevel` -empty. -Do no validate the expanded range and level for modular polices. - -Reported-by: bauen1 <[email protected]> -Signed-off-by: Christian Göttsche <[email protected]> -Acked-by: James Carter <[email protected]> - -Upstream-Status: Backport -[https://github.com/SELinuxProject/selinux/commit/88a703399f3f44be2502fd4ecd22ac3d3c560694] - -Signed-off-by: Yi Zhao <[email protected]> ---- - src/policydb_validate.c | 12 ++++++------ - 1 file changed, 6 insertions(+), 6 deletions(-) - -diff --git a/src/policydb_validate.c b/src/policydb_validate.c -index da18282..99d4eb7 100644 ---- a/src/policydb_validate.c -+++ b/src/policydb_validate.c -@@ -18,7 +18,7 @@ typedef struct validate { - typedef struct map_arg { - validate_t *flavors; - sepol_handle_t *handle; -- int mls; -+ policydb_t *policy; - } map_arg_t; - - static int create_gap_ebitmap(char **val_to_name, uint32_t nprim, ebitmap_t *gaps) -@@ -571,7 +571,7 @@ static int validate_mls_range(mls_range_t *range, validate_t *sens, validate_t * - return -1; - } - --static int validate_user_datum(sepol_handle_t *handle, user_datum_t *user, validate_t flavors[], int mls) -+static int validate_user_datum(sepol_handle_t *handle, user_datum_t *user, validate_t flavors[], policydb_t *p) - { - if (validate_value(user->s.value, &flavors[SYM_USERS])) - goto bad; -@@ -581,9 +581,9 @@ static int validate_user_datum(sepol_handle_t *handle, user_datum_t *user, valid - goto bad; - if (validate_mls_semantic_level(&user->dfltlevel, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) - goto bad; -- if (mls && validate_mls_range(&user->exp_range, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) -+ if (p->mls && p->policy_type != POLICY_MOD && validate_mls_range(&user->exp_range, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) - goto bad; -- if (mls && validate_mls_level(&user->exp_dfltlevel, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) -+ if (p->mls && p->policy_type != POLICY_MOD && validate_mls_level(&user->exp_dfltlevel, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) - goto bad; - if (user->bounds && validate_value(user->bounds, &flavors[SYM_USERS])) - goto bad; -@@ -599,7 +599,7 @@ static int validate_user_datum_wrapper(__attribute__((unused)) hashtab_key_t k, - { - map_arg_t *margs = args; - -- return validate_user_datum(margs->handle, d, margs->flavors, margs->mls); -+ return validate_user_datum(margs->handle, d, margs->flavors, margs->policy); - } - - static int validate_bool_datum(sepol_handle_t *handle, cond_bool_datum_t *boolean, validate_t flavors[]) -@@ -689,7 +689,7 @@ static int validate_datum(__attribute__ ((unused))hashtab_key_t k, hashtab_datum - - static int validate_datum_array_entries(sepol_handle_t *handle, policydb_t *p, validate_t flavors[]) - { -- map_arg_t margs = { flavors, handle, p->mls }; -+ map_arg_t margs = { flavors, handle, p }; - - if (hashtab_map(p->p_commons.table, validate_common_datum_wrapper, &margs)) - goto bad; --- -2.25.1 -
recipes-security/selinux/libsepol_3.5.bb renamed from recipes-security/selinux/libsepol_3.4.bb +1 -3
@@ -5,14 +5,12 @@ as by programs like load_policy that need to perform specific transformations \ on binary policies such as customizing policy boolean settings." SECTION = "base" LICENSE = "LGPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343" require selinux_common.inc inherit lib_package -SRC_URI += "file://0001-libsepol-fix-validation-of-user-declarations-in-modu.patch" - S = "${WORKDIR}/git/libsepol" DEPENDS = "flex-native"
Signature · 1 line
2.25.1
PATCH 5/17 libselinux: upgrade 3.4 -> 3.5
In reply to Yi Zhao---
recipes-security/selinux/{libselinux_3.4.bb => libselinux_3.5.bb} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename recipes-security/selinux/{libselinux_3.4.bb => libselinux_3.5.bb} (100%)recipes-security/selinux/libselinux_3.5.bb renamed from recipes-security/selinux/libselinux_3.4.bb +0 -0
Signature · 1 line
2.25.1
PATCH 6/17 libselinux-python: upgrade 3.4 -> 3.5
In reply to Yi Zhao* Add dependency python3-setuptools-scm-native to fix build error.
* Refresh patches.
---
...inux-python_3.4.bb => libselinux-python_3.5.bb} | 14 +++++++++-----
...x-python-modules-install-path-for-multili.patch | 10 +++++-----
...PYCEXT-and-rely-on-the-installed-file-nam.patch | 10 +++++-----
3 files changed, 19 insertions(+), 15 deletions(-)
rename recipes-security/selinux/{libselinux-python_3.4.bb => libselinux-python_3.5.bb} (76%)recipes-security/selinux/libselinux-python_3.5.bb renamed from recipes-security/selinux/libselinux-python_3.4.bb +9 -5
@@ -18,7 +18,7 @@ SRC_URI += "\ S = "${WORKDIR}/git/libselinux" -DEPENDS = "libsepol libpcre2 swig-native" +DEPENDS = "libsepol libpcre2 swig-native python3-setuptools-scm-native" DEPENDS:append:libc-musl = " fts" RDEPENDS:${PN} = "libselinux python3-core python3-shell"
@@ -33,12 +33,12 @@ def get_policyconfigarch(d): EXTRA_OEMAKE = "${@get_policyconfigarch(d)}" EXTRA_OEMAKE:append:libc-musl = " FTS_LDLIBS=-lfts" -FILES:${PN} = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" +FILES:${PN} = "${PYTHON_SITEPACKAGES_DIR}/*" INSANE_SKIP:${PN} = "dev-so" do_compile() { oe_runmake pywrap -j1 \ - PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ + PYLIBVER='python${PYTHON_BASEVERSION}' \ PYINC='-I${STAGING_INCDIR}/${PYLIBVER}' \ PYLIBS='-L${STAGING_LIBDIR}/${PYLIBVER} -l${PYLIBVER}' }
@@ -46,6 +46,10 @@ do_compile() { do_install() { oe_runmake install-pywrap \ DESTDIR=${D} \ - PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ - PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' + PYLIBVER='python${PYTHON_BASEVERSION}' \ + PYTHONLIBDIR='${PYTHON_SITEPACKAGES_DIR}' + + # Fix buildpaths issue + sed -i -e 's,${WORKDIR},,g' \ + ${D}${PYTHON_SITEPACKAGES_DIR}/selinux-${PV}.dist-info/direct_url.json }
recipes-security/selinux/libselinux/0001-Makefile-fix-python-modules-install-path-for-multili.patch +5 -5
@@ -1,4 +1,4 @@ -From 1ff60a36bb0bfc95ce33cf950f58e121548a3c8a Mon Sep 17 00:00:00 2001 +From 57a087de68d6f7fe955268ee36b523cbe7c0c6db Mon Sep 17 00:00:00 2001 From: Yi Zhao <[email protected]> Date: Mon, 13 Apr 2020 12:44:23 +0800 Subject: [PATCH] Makefile: fix python modules install path for multilib
@@ -11,15 +11,15 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 04bf4f2..81ae6a2 100644 +index 36d5712..983f8af 100644 --- a/src/Makefile +++ b/src/Makefile -@@ -181,7 +181,7 @@ install: all +@@ -187,7 +187,7 @@ install: all ln -sf --relative $(DESTDIR)$(SHLIBDIR)/$(LIBSO) $(DESTDIR)$(LIBDIR)/$(TARGET) install-pywrap: pywrap -- $(PYTHON) setup.py install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` $(PYTHON_SETUP_ARGS) -+ $(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) --install-lib=$(PYTHONLIBDIR) $(PYTHON_SETUP_ARGS) +- $(PYTHON) -m pip install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` $(PYTHON_SETUP_ARGS) . ++ $(PYTHON) -m pip install --prefix=$(PREFIX) --root $(DESTDIR) --ignore-installed --no-deps $(PYTHON_SETUP_ARGS) . install -m 644 $(SWIGPYOUT) $(DESTDIR)$(PYTHONLIBDIR)/selinux/__init__.py ln -sf --relative $(DESTDIR)$(PYTHONLIBDIR)/selinux/_selinux$(PYCEXT) $(DESTDIR)$(PYTHONLIBDIR)/_selinux$(PYCEXT)
recipes-security/selinux/libselinux/0002-Do-not-use-PYCEXT-and-rely-on-the-installed-file-nam.patch +5 -5
@@ -1,4 +1,4 @@ -From dae53d7cd4d7875f7fb7aba016a0331559044eea Mon Sep 17 00:00:00 2001 +From 1454521f2b9f2cbc3c40177aae9c260ec8966ae0 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Fri, 25 Oct 2019 13:37:14 +0200 Subject: [PATCH] Do not use PYCEXT, and rely on the installed file name
@@ -27,20 +27,20 @@ Signed-off-by: Changqing Li <[email protected]> 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile -index 81ae6a2..37399e1 100644 +index 983f8af..3d777bb 100644 --- a/src/Makefile +++ b/src/Makefile @@ -15,7 +15,6 @@ INCLUDEDIR ?= $(PREFIX)/include PYINC ?= $(shell $(PKG_CONFIG) --cflags $(PYPREFIX)) PYLIBS ?= $(shell $(PKG_CONFIG) --libs $(PYPREFIX)) - PYTHONLIBDIR ?= $(shell $(PYTHON) -c "from distutils.sysconfig import *; print(get_python_lib(plat_specific=1, prefix='$(PREFIX)'))") + PYTHONLIBDIR ?= $(shell $(PYTHON) -c "import sysconfig; print(sysconfig.get_path('platlib', vars={'platbase': '$(PREFIX)', 'base': '$(PREFIX)'}))") -PYCEXT ?= $(shell $(PYTHON) -c 'import importlib.machinery;print(importlib.machinery.EXTENSION_SUFFIXES[0])') RUBYINC ?= $(shell $(RUBY) -e 'puts "-I" + RbConfig::CONFIG["rubyarchhdrdir"] + " -I" + RbConfig::CONFIG["rubyhdrdir"]') RUBYLIBS ?= $(shell $(RUBY) -e 'puts "-L" + RbConfig::CONFIG["libdir"] + " -L" + RbConfig::CONFIG["archlibdir"] + " " + RbConfig::CONFIG["LIBRUBYARG_SHARED"]') RUBYINSTALL ?= $(shell $(RUBY) -e 'puts RbConfig::CONFIG["vendorarchdir"]') -@@ -183,7 +182,7 @@ install: all +@@ -189,7 +188,7 @@ install: all install-pywrap: pywrap - $(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) --install-lib=$(PYTHONLIBDIR) $(PYTHON_SETUP_ARGS) + $(PYTHON) -m pip install --prefix=$(PREFIX) --root $(DESTDIR) --ignore-installed --no-deps $(PYTHON_SETUP_ARGS) . install -m 644 $(SWIGPYOUT) $(DESTDIR)$(PYTHONLIBDIR)/selinux/__init__.py - ln -sf --relative $(DESTDIR)$(PYTHONLIBDIR)/selinux/_selinux$(PYCEXT) $(DESTDIR)$(PYTHONLIBDIR)/_selinux$(PYCEXT) + ln -sf --relative $(DESTDIR)$(PYTHONLIBDIR)/selinux/_selinux*.so $(DESTDIR)$(PYTHONLIBDIR)/
Signature · 1 line
2.25.1
PATCH 7/17 libsemanage: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
---
.../{libsemanage_3.4.bb => libsemanage_3.5.bb} | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
rename recipes-security/selinux/{libsemanage_3.4.bb => libsemanage_3.5.bb} (78%)recipes-security/selinux/libsemanage_3.5.bb renamed from recipes-security/selinux/libsemanage_3.4.bb +7 -6
@@ -5,7 +5,7 @@ as by programs like load_policy that need to perform specific transformations \ on binary policies such as customizing policy boolean settings." SECTION = "base" LICENSE = "LGPL-2.1-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343" require selinux_common.inc
@@ -29,23 +29,24 @@ PACKAGES =+ "${PN}-python" # For /usr/libexec/selinux/semanage_migrate_store RDEPENDS:${PN}-python = "python3-core" -FILES:${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ +FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/* \ ${libexecdir}/selinux/semanage_migrate_store" -FILES:${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*" +FILES:${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/*" FILES:${PN} += "${libexecdir}" do_compile:append() { oe_runmake pywrap \ - PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ + PYLIBVER='python${PYTHON_BASEVERSION}' \ PYINC='-I${STAGING_INCDIR}/${PYLIBVER}' \ PYLIBS='-L${STAGING_LIBDIR}/${PYLIBVER} -l${PYLIBVER}' } do_install:append() { oe_runmake install-pywrap \ + DESTDIR=${D} \ PYCEXT='.so' \ - PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ - PYTHONLIBDIR='${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages' + PYLIBVER='python${PYTHON_BASEVERSION}' \ + PYTHONLIBDIR='${PYTHON_SITEPACKAGES_DIR}' # Update "policy-version" for semanage.conf sed -i 's/^#\s*\(policy-version\s*=\).*$/\1 33/' \
Signature · 1 line
2.25.1
PATCH 8/17 checkpolicy: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
---
.../selinux/{checkpolicy_3.4.bb => checkpolicy_3.5.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename recipes-security/selinux/{checkpolicy_3.4.bb => checkpolicy_3.5.bb} (91%)recipes-security/selinux/checkpolicy_3.5.bb renamed from recipes-security/selinux/checkpolicy_3.4.bb +1 -1
@@ -7,7 +7,7 @@ with low level details of the policy that have not been \ encapsulated/abstracted by a proper shared library interface." SECTION = "base" LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=393a5ca445f6965873eca0259a17f833" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=393a5ca445f6965873eca0259a17f833" require selinux_common.inc
Signature · 1 line
2.25.1
PATCH 9/17 secilc: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
---
recipes-security/selinux/{secilc_3.4.bb => secilc_3.5.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename recipes-security/selinux/{secilc_3.4.bb => secilc_3.5.bb} (84%)recipes-security/selinux/secilc_3.5.bb renamed from recipes-security/selinux/secilc_3.4.bb +1 -1
@@ -4,7 +4,7 @@ This package contains secilc, the SELinux Common Intermediate \ Language (CIL) compiler." SECTION = "base" LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=c7e802b9a3b0c2c852669864c08b9138" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=c7e802b9a3b0c2c852669864c08b9138" require selinux_common.inc
Signature · 1 line
2.25.1
PATCH 10/17 policycoreutils: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
* Refresh patch.
---
.../policycoreutils-fixfiles-de-bashify.patch | 8 ++++----
.../{policycoreutils_3.4.bb => policycoreutils_3.5.bb} | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
rename recipes-security/selinux/{policycoreutils_3.4.bb => policycoreutils_3.5.bb} (97%)recipes-security/selinux/policycoreutils/policycoreutils-fixfiles-de-bashify.patch +4 -4
@@ -1,4 +1,4 @@ -From cdc8f6e887d9ab8944e3ae89dd18bf55edf080c4 Mon Sep 17 00:00:00 2001 +From 624d6231ca9daf494e33352d562ff97cb0219f2d Mon Sep 17 00:00:00 2001 From: Joe MacDonald <[email protected]> Date: Fri, 20 Feb 2015 17:00:19 -0500 Subject: [PATCH] fixfiles: de-bashify
@@ -19,7 +19,7 @@ Signed-off-by: Wenzong Fan <[email protected]> 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/scripts/fixfiles b/scripts/fixfiles -index c72ca0e..143cc2e 100755 +index 166af6f..a23cdc6 100755 --- a/scripts/fixfiles +++ b/scripts/fixfiles @@ -1,4 +1,4 @@
@@ -74,8 +74,8 @@ index c72ca0e..143cc2e 100755 + fi } - # -@@ -295,7 +300,7 @@ relabel() { + # unmount tmp bind mount before exit +@@ -315,7 +320,7 @@ relabel() { exit 1 fi
recipes-security/selinux/policycoreutils_3.5.bb renamed from recipes-security/selinux/policycoreutils_3.4.bb +2 -2
@@ -6,7 +6,7 @@ to switch roles, and run_init to run /etc/init.d scripts in the proper \ context." SECTION = "base" LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=393a5ca445f6965873eca0259a17f833" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=393a5ca445f6965873eca0259a17f833" require selinux_common.inc
@@ -136,7 +136,7 @@ do_compile:prepend() { export PYLIBVER='python${PYTHON_BASEVERSION}' export PYTHON_CPPFLAGS="-I${STAGING_INCDIR}/${PYLIBVER}" export PYTHON_LDFLAGS="${STAGING_LIBDIR}/lib${PYLIBVER}.so" - export PYTHON_SITE_PKG="${libdir}/${PYLIBVER}/site-packages" + export PYTHON_SITE_PKG="${PYTHON_SITEPACKAGES_DIR}" } do_compile:class-native() {
Signature · 1 line
2.25.1
PATCH 11/17 mcstrans: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
---
recipes-security/selinux/{mcstrans_3.4.bb => mcstrans_3.5.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename recipes-security/selinux/{mcstrans_3.4.bb => mcstrans_3.5.bb} (96%)recipes-security/selinux/mcstrans_3.5.bb renamed from recipes-security/selinux/mcstrans_3.4.bb +1 -1
@@ -5,7 +5,7 @@ mcstrans provides an translation daemon to translate SELinux categories \ from internal representations to user defined representation." SECTION = "base" LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f" require selinux_common.inc
Signature · 1 line
2.25.1
PATCH 12/17 restorecond: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
---
.../selinux/{restorecond_3.4.bb => restorecond_3.5.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename recipes-security/selinux/{restorecond_3.4.bb => restorecond_3.5.bb} (94%)recipes-security/selinux/restorecond_3.5.bb renamed from recipes-security/selinux/restorecond_3.4.bb +1 -1
@@ -6,7 +6,7 @@ will make sure they have the correct file context associated with \ the policy." SECTION = "base" LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=393a5ca445f6965873eca0259a17f833" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=393a5ca445f6965873eca0259a17f833" require selinux_common.inc
Signature · 1 line
2.25.1
PATCH 13/17 selinux-python: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
* Refresh patch.
* Drop backport patch.
* Add dependency python3-setuptools-scm-native to fix build error.
---
...andle-unsupported-languages-properly.patch | 173 ------------------
.../fix-sepolicy-install-path.patch | 8 +-
...ux-python_3.4.bb => selinux-python_3.5.bb} | 24 ++-
3 files changed, 19 insertions(+), 186 deletions(-)
delete mode 100644 recipes-security/selinux/selinux-python/0001-gettext-handle-unsupported-languages-properly.patch
rename recipes-security/selinux/{selinux-python_3.4.bb => selinux-python_3.5.bb} (79%)recipes-security/selinux/selinux-python/0001-gettext-handle-unsupported-languages-properly.patch deleted +0 -173
@@ -1,173 +0,0 @@ -From 4693794ff8c52f87a4abdb68fe9dae6618023c03 Mon Sep 17 00:00:00 2001 -From: Vit Mojzis <[email protected]> -Date: Fri, 24 Jun 2022 16:24:25 +0200 -Subject: [PATCH] gettext: handle unsupported languages properly - -With "fallback=True" gettext.translation behaves the same as -gettext.install and uses NullTranslations in case the -translation file for given language was not found (as opposed to -throwing an exception). - -Fixes: - # LANG is set to any "unsupported" language, e.g. en_US.UTF-8 - $ chcat --help - Traceback (most recent call last): - File "/usr/bin/chcat", line 39, in <module> - t = gettext.translation(PROGNAME, - File "/usr/lib64/python3.9/gettext.py", line 592, in translation - raise FileNotFoundError(ENOENT, - FileNotFoundError: [Errno 2] No translation file found for domain: 'selinux-python' - -Signed-off-by: Vit Mojzis <[email protected]> -Reviewed-by: Daniel Burgener <[email protected]> -Acked-by: Petr Lautrbach <[email protected]> - -Upstream-Status: Backport -[https://github.com/SELinuxProject/selinux/commit/344463076b2a91e1d2c7f5cc3835dc1a53a05e88] - -Signed-off-by: Yi Zhao <[email protected]> ---- - chcat/chcat | 5 +++-- - semanage/semanage | 3 ++- - semanage/seobject.py | 3 ++- - sepolgen/src/sepolgen/sepolgeni18n.py | 4 +++- - sepolicy/sepolicy.py | 3 ++- - sepolicy/sepolicy/__init__.py | 3 ++- - sepolicy/sepolicy/generate.py | 3 ++- - sepolicy/sepolicy/gui.py | 3 ++- - sepolicy/sepolicy/interface.py | 3 ++- - 9 files changed, 20 insertions(+), 10 deletions(-) - -diff --git a/chcat/chcat b/chcat/chcat -index e779fcc..952cb81 100755 ---- a/chcat/chcat -+++ b/chcat/chcat -@@ -38,9 +38,10 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext --except ImportError: -+except: - try: - import builtins - builtins.__dict__['_'] = str -diff --git a/semanage/semanage b/semanage/semanage -index 8f4e44a..f45061a 100644 ---- a/semanage/semanage -+++ b/semanage/semanage -@@ -38,7 +38,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/semanage/seobject.py b/semanage/seobject.py -index ff8f4e9..0782c08 100644 ---- a/semanage/seobject.py -+++ b/semanage/seobject.py -@@ -42,7 +42,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/sepolgen/src/sepolgen/sepolgeni18n.py b/sepolgen/src/sepolgen/sepolgeni18n.py -index 56ebd80..1ff307d 100644 ---- a/sepolgen/src/sepolgen/sepolgeni18n.py -+++ b/sepolgen/src/sepolgen/sepolgeni18n.py -@@ -19,7 +19,9 @@ - - try: - import gettext -- t = gettext.translation( 'selinux-python' ) -+ t = gettext.translation("selinux-python", -+ localedir="/usr/share/locale", -+ fallback=True) - _ = t.gettext - except: - def _(str): -diff --git a/sepolicy/sepolicy.py b/sepolicy/sepolicy.py -index 7ebe0ef..c7a70e0 100755 ---- a/sepolicy/sepolicy.py -+++ b/sepolicy/sepolicy.py -@@ -36,7 +36,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/sepolicy/sepolicy/__init__.py b/sepolicy/sepolicy/__init__.py -index 7208234..9c3caa0 100644 ---- a/sepolicy/sepolicy/__init__.py -+++ b/sepolicy/sepolicy/__init__.py -@@ -31,7 +31,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/sepolicy/sepolicy/generate.py b/sepolicy/sepolicy/generate.py -index 67189fc..3717d5d 100644 ---- a/sepolicy/sepolicy/generate.py -+++ b/sepolicy/sepolicy/generate.py -@@ -56,7 +56,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/sepolicy/sepolicy/gui.py b/sepolicy/sepolicy/gui.py -index b026374..5bdbfeb 100644 ---- a/sepolicy/sepolicy/gui.py -+++ b/sepolicy/sepolicy/gui.py -@@ -49,7 +49,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/sepolicy/sepolicy/interface.py b/sepolicy/sepolicy/interface.py -index 599f97f..43f8644 100644 ---- a/sepolicy/sepolicy/interface.py -+++ b/sepolicy/sepolicy/interface.py -@@ -38,7 +38,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: --- -2.25.1 -
recipes-security/selinux/selinux-python/fix-sepolicy-install-path.patch +4 -4
@@ -1,4 +1,4 @@ -From d43220e336edf8ccaaa7bd3eb9c13874ed34d468 Mon Sep 17 00:00:00 2001 +From 2a0c2489e9d245502e7a9dc5878da01f9d64db2a Mon Sep 17 00:00:00 2001 From: Xin Ouyang <[email protected]> Date: Mon, 23 Sep 2013 21:17:59 +0800 Subject: [PATCH] sepolicy: fix install path for new pymodule sepolicy
@@ -13,15 +13,15 @@ Signed-off-by: Yi Zhao <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sepolicy/Makefile b/sepolicy/Makefile -index 3361be4..5842321 100644 +index 4e9e93d..512aab5 100644 --- a/sepolicy/Makefile +++ b/sepolicy/Makefile @@ -27,7 +27,7 @@ test: @$(PYTHON) test_sepolicy.py -v install: -- $(PYTHON) setup.py install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` $(PYTHON_SETUP_ARGS) -+ $(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR) --install-lib=$(PYTHONLIBDIR) --no-compile $(PYTHON_SETUP_ARGS) +- $(PYTHON) -m pip install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` $(PYTHON_SETUP_ARGS) . ++ $(PYTHON) -m pip install --prefix=$(PREFIX) --root $(DESTDIR) --ignore-installed --no-deps $(PYTHON_SETUP_ARGS) . [ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR) install -m 755 sepolicy.py $(DESTDIR)$(BINDIR)/sepolicy (cd $(DESTDIR)$(BINDIR); ln -sf sepolicy sepolgen)
recipes-security/selinux/selinux-python_3.5.bb renamed from recipes-security/selinux/selinux-python_3.4.bb +15 -9
@@ -4,19 +4,18 @@ This package contains Python modules sepolgen, sepolicy; And the \ SELinux utilities audit2allow, chcat, semanage ..." SECTION = "base" LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=393a5ca445f6965873eca0259a17f833" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=393a5ca445f6965873eca0259a17f833" require selinux_common.inc -inherit python3native +inherit python3targetconfig SRC_URI += "file://fix-sepolicy-install-path.patch \ - file://0001-gettext-handle-unsupported-languages-properly.patch \ " S = "${WORKDIR}/git/python" -DEPENDS = "libsepol libselinux gettext-native" +DEPENDS = "libsepol libselinux gettext-native python3-setuptools-scm-native" RDEPENDS:${PN} = "\ python3-core \
@@ -96,19 +95,26 @@ FILES:${PN}-sepolgen-ifgen = "\ ${bindir}/sepolgen-ifgen-attr-helper \ " FILES:${PN}-sepolgen = "\ - ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolgen* \ + ${PYTHON_SITEPACKAGES_DIR}/sepolgen* \ ${localstatedir}/lib/sepolgen/perm_map \ " FILES:${PN} += "\ - ${libdir}/python${PYTHON_BASEVERSION}/site-packages/seobject.py* \ - ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolicy*.egg-info \ - ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolicy/* \ + ${PYTHON_SITEPACKAGES_DIR}/seobject.py* \ + ${PYTHON_SITEPACKAGES_DIR}/sepolicy*.dist-info \ + ${PYTHON_SITEPACKAGES_DIR}/sepolicy/* \ " do_install() { oe_runmake DESTDIR="${D}" \ PYLIBVER='python${PYTHON_BASEVERSION}' \ - PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ + PYTHONLIBDIR='${PYTHON_SITEPACKAGES_DIR}' \ install + + # Remove .pyc files + find ${D} -name *.pyc -delete + + # Fix buildpaths issue + sed -i -e 's,${WORKDIR},,g' \ + ${D}${PYTHON_SITEPACKAGES_DIR}/sepolicy-${PV}.dist-info/direct_url.json }
Signature · 1 line
2.25.1
PATCH 14/17 selinux-dbus: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
---
.../selinux/{selinux-dbus_3.4.bb => selinux-dbus_3.5.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename recipes-security/selinux/{selinux-dbus_3.4.bb => selinux-dbus_3.5.bb} (88%)recipes-security/selinux/selinux-dbus_3.5.bb renamed from recipes-security/selinux/selinux-dbus_3.4.bb +1 -1
@@ -3,7 +3,7 @@ DESCRIPTION = "\ Provide SELinux dbus service files and scripts." SECTION = "base" LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=393a5ca445f6965873eca0259a17f833" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=393a5ca445f6965873eca0259a17f833" require selinux_common.inc
Signature · 1 line
2.25.1
PATCH 15/17 selinux-gui: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
* Drop backport patch.
---
...andle-unsupported-languages-properly.patch | 199 ------------------
...{selinux-gui_3.4.bb => selinux-gui_3.5.bb} | 4 +-
2 files changed, 1 insertion(+), 202 deletions(-)
delete mode 100644 recipes-security/selinux/selinux-gui/0001-gettext-handle-unsupported-languages-properly.patch
rename recipes-security/selinux/{selinux-gui_3.4.bb => selinux-gui_3.5.bb} (77%)recipes-security/selinux/selinux-gui/0001-gettext-handle-unsupported-languages-properly.patch deleted +0 -199
@@ -1,199 +0,0 @@ -From a0a67119412622141a7f8365eff10de6395be7ca Mon Sep 17 00:00:00 2001 -From: Vit Mojzis <[email protected]> -Date: Fri, 24 Jun 2022 16:24:25 +0200 -Subject: [PATCH] gettext: handle unsupported languages properly - -With "fallback=True" gettext.translation behaves the same as -gettext.install and uses NullTranslations in case the -translation file for given language was not found (as opposed to -throwing an exception). - -Fixes: - # LANG is set to any "unsupported" language, e.g. en_US.UTF-8 - $ chcat --help - Traceback (most recent call last): - File "/usr/bin/chcat", line 39, in <module> - t = gettext.translation(PROGNAME, - File "/usr/lib64/python3.9/gettext.py", line 592, in translation - raise FileNotFoundError(ENOENT, - FileNotFoundError: [Errno 2] No translation file found for domain: 'selinux-python' - -Signed-off-by: Vit Mojzis <[email protected]> -Reviewed-by: Daniel Burgener <[email protected]> -Acked-by: Petr Lautrbach <[email protected]> - -Upstream-Status: Backport -[https://github.com/SELinuxProject/selinux/commit/344463076b2a91e1d2c7f5cc3835dc1a53a05e88] - -Signed-off-by: Yi Zhao <[email protected]> ---- - booleansPage.py | 3 ++- - domainsPage.py | 3 ++- - fcontextPage.py | 3 ++- - loginsPage.py | 3 ++- - modulesPage.py | 3 ++- - polgengui.py | 3 ++- - portsPage.py | 3 ++- - semanagePage.py | 3 ++- - statusPage.py | 3 ++- - system-config-selinux.py | 3 ++- - usersPage.py | 3 ++- - 11 files changed, 22 insertions(+), 11 deletions(-) - -diff --git a/booleansPage.py b/booleansPage.py -index 5beec58..ad11a9b 100644 ---- a/booleansPage.py -+++ b/booleansPage.py -@@ -46,7 +46,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/domainsPage.py b/domainsPage.py -index e08f34b..e6eadd6 100644 ---- a/domainsPage.py -+++ b/domainsPage.py -@@ -38,7 +38,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/fcontextPage.py b/fcontextPage.py -index bac2bec..767664f 100644 ---- a/fcontextPage.py -+++ b/fcontextPage.py -@@ -55,7 +55,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/loginsPage.py b/loginsPage.py -index 18b93d8..7e08232 100644 ---- a/loginsPage.py -+++ b/loginsPage.py -@@ -37,7 +37,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/modulesPage.py b/modulesPage.py -index c546d45..02b79f1 100644 ---- a/modulesPage.py -+++ b/modulesPage.py -@@ -38,7 +38,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/polgengui.py b/polgengui.py -index a18f1cb..7a3ecd5 100644 ---- a/polgengui.py -+++ b/polgengui.py -@@ -71,7 +71,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/portsPage.py b/portsPage.py -index 54aa80d..bee2bdf 100644 ---- a/portsPage.py -+++ b/portsPage.py -@@ -43,7 +43,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/semanagePage.py b/semanagePage.py -index 1371d4e..efad14d 100644 ---- a/semanagePage.py -+++ b/semanagePage.py -@@ -30,7 +30,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/statusPage.py b/statusPage.py -index c241ef8..832849e 100644 ---- a/statusPage.py -+++ b/statusPage.py -@@ -43,7 +43,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/system-config-selinux.py b/system-config-selinux.py -index 1b460c9..9f53b7f 100644 ---- a/system-config-selinux.py -+++ b/system-config-selinux.py -@@ -53,7 +53,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: -diff --git a/usersPage.py b/usersPage.py -index d51bd96..9acd3b8 100644 ---- a/usersPage.py -+++ b/usersPage.py -@@ -37,7 +37,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: --- -2.25.1 -
recipes-security/selinux/selinux-gui_3.5.bb renamed from recipes-security/selinux/selinux-gui_3.4.bb +1 -3
@@ -4,12 +4,10 @@ Provide SELinux Management tool (system-config-selinux) and SELinux \ Policy Generation Tool (selinux-polgengui)" SECTION = "base" LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=393a5ca445f6965873eca0259a17f833" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=393a5ca445f6965873eca0259a17f833" require selinux_common.inc -SRC_URI += "file://0001-gettext-handle-unsupported-languages-properly.patch" - S = "${WORKDIR}/git/gui" DEPENDS = "gettext-native"
Signature · 1 line
2.25.1
PATCH 16/17 selinux-sandbox: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
* Drop backport patch.
---
...andle-unsupported-languages-properly.patch | 49 -------------------
...-sandbox_3.4.bb => selinux-sandbox_3.5.bb} | 3 +-
2 files changed, 1 insertion(+), 51 deletions(-)
delete mode 100644 recipes-security/selinux/selinux-sandbox/0001-gettext-handle-unsupported-languages-properly.patch
rename recipes-security/selinux/{selinux-sandbox_3.4.bb => selinux-sandbox_3.5.bb} (84%)recipes-security/selinux/selinux-sandbox/0001-gettext-handle-unsupported-languages-properly.patch deleted +0 -49
@@ -1,49 +0,0 @@ -From 70602601ac1cfc4399430ef8609b96fc224d1e25 Mon Sep 17 00:00:00 2001 -From: Vit Mojzis <[email protected]> -Date: Fri, 24 Jun 2022 16:24:25 +0200 -Subject: [PATCH] gettext: handle unsupported languages properly - -With "fallback=True" gettext.translation behaves the same as -gettext.install and uses NullTranslations in case the -translation file for given language was not found (as opposed to -throwing an exception). - -Fixes: - # LANG is set to any "unsupported" language, e.g. en_US.UTF-8 - $ chcat --help - Traceback (most recent call last): - File "/usr/bin/chcat", line 39, in <module> - t = gettext.translation(PROGNAME, - File "/usr/lib64/python3.9/gettext.py", line 592, in translation - raise FileNotFoundError(ENOENT, - FileNotFoundError: [Errno 2] No translation file found for domain: 'selinux-python' - -Signed-off-by: Vit Mojzis <[email protected]> -Reviewed-by: Daniel Burgener <[email protected]> -Acked-by: Petr Lautrbach <[email protected]> - -Upstream-Status: Backport -[https://github.com/SELinuxProject/selinux/commit/344463076b2a91e1d2c7f5cc3835dc1a53a05e88] - -Signed-off-by: Yi Zhao <[email protected]> ---- - sandbox | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/sandbox b/sandbox -index cd5709f..789621e 100644 ---- a/sandbox -+++ b/sandbox -@@ -45,7 +45,8 @@ try: - kwargs['unicode'] = True - t = gettext.translation(PROGNAME, - localedir="/usr/share/locale", -- **kwargs) -+ **kwargs, -+ fallback=True) - _ = t.gettext - except: - try: --- -2.25.1 -
recipes-security/selinux/selinux-sandbox_3.5.bb renamed from recipes-security/selinux/selinux-sandbox_3.4.bb +1 -2
@@ -5,12 +5,11 @@ sandbox domain only allows applications the ability to read and write \ stdin, stdout and any other file descriptors handed to it." SECTION = "base" LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=393a5ca445f6965873eca0259a17f833" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=393a5ca445f6965873eca0259a17f833" require selinux_common.inc SRC_URI += "file://sandbox-de-bashify.patch \ - file://0001-gettext-handle-unsupported-languages-properly.patch \ " S = "${WORKDIR}/git/sandbox"
Signature · 1 line
2.25.1
PATCH 17/17 semodule-utils: upgrade 3.4 -> 3.5
In reply to Yi ZhaoLicense-Update: Rename COPYING to LICENSE. No content changes.
---
.../selinux/{semodule-utils_3.4.bb => semodule-utils_3.5.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename recipes-security/selinux/{semodule-utils_3.4.bb => semodule-utils_3.5.bb} (91%)recipes-security/selinux/semodule-utils_3.5.bb renamed from recipes-security/selinux/semodule-utils_3.4.bb +1 -1
@@ -4,7 +4,7 @@ The utilities to create, expand, link and show the dependencies between \ the SELinux policy module packages." SECTION = "base" LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=393a5ca445f6965873eca0259a17f833" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=393a5ca445f6965873eca0259a17f833" require selinux_common.inc
Signature · 1 line
2.25.1