From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6786988350059315200 X-Gmail-Labels: Topic type: DISCUSSION Date: Wed, 29 Jan 2020 07:12:44 -0800 (PST) From: Shrikant Bobade To: isar-users Message-Id: In-Reply-To: <7c722c28-9562-4d6d-c967-b292ff996f34@siemens.com> References: <464051e7-0b21-4c14-93a5-2db0a6cf1c01@googlegroups.com> <7c722c28-9562-4d6d-c967-b292ff996f34@siemens.com> Subject: Re: Regarding IMAGE_PREINSTALL of package "selinux-policy-default" fails on buster qemuarm build MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1073_622967796.1580310764295" X-Google-Token: EOzBxvEF16wFrtNMZCg0 X-Google-IP: 139.181.36.34 X-TUID: 2lrxPnyMR0AW ------=_Part_1073_622967796.1580310764295 Content-Type: multipart/alternative; boundary="----=_Part_1074_1773822526.1580310764295" ------=_Part_1074_1773822526.1580310764295 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Wednesday, 29 January 2020 03:41:05 UTC+5:30, Jan Kiszka wrote: > > On 28.01.20 14:41, Shrikant Bobade wrote: > > Hi All, > > > > Please have a look, using isar master branch I am trying to build > > "mc:qemuarm-buster:isar-image-base", > > To enable selinux support added selinux policy package > > https://packages.debian.org/buster/selinux-policy-default > > but getting "Value too large for defined data type error" during build. > > > > Build Details: https://github.com/ilbers/isar "master" branch > > Build Host: Buster Debian 10 > > Machine Name: qemuarm > > > > Below are my local.conf contents. > > DISTRO ??= "debian-buster" > > MACHINE ??= "qemuarm" > > DISTRO_ARCH ??= "armhf" > > > > # selinx policy packages > > IMAGE_PREINSTALL_append = " \ > > . > > . > > selinux-policy-default \ > > " > > > > Error log: > > Setting up selinux-policy-default (2:2.20190201-2) ... > > Updating selinux default policy (this step might take a > > moment)...libsemanage.semanage_direct_list_all: Error while scanning > > directory /var/lib/selinux/default/active/modules. (Value too large for > > defined data type). > > /usr/sbin/semodule: Failed on full! > > Could not read the contents of /var/lib/selinux/default/active: Value > > too large for defined data type > > libsemanage.semanage_make_sandbox: Could not copy files to sandbox > > /var/lib/selinux/default/tmp. (Value too large for defined data type). > > /usr/sbin/semodule: Failed on /usr/share/selinux/default/abrt.pp.bz2! > > failed. > > dpkg: error processing package selinux-policy-default (--configure): > > installed selinux-policy-default package post-installation script > > subprocess returned error exit status 1 > > > > > > Debugging further, meanwhile I would like to check if anyone else also > > faced similar issue > > Any pointers will be a great help!. This issue only reproducible on non > > amd64. > > > > I've reproduced here as well. Maybe it's an issue of the qemu-user > environment, and that's why we don't see it on x86. > Thanks for checking and pointers.! -Best Regards Shrikant > Jan > > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > Corporate Competence Center Embedded Linux > ------=_Part_1074_1773822526.1580310764295 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Wednesday, 29 January 2020 03:41:05 UTC+5:30, J= an Kiszka wrote:
On 28.01.20 1= 4:41, Shrikant Bobade wrote:
> Hi All,
>=20
> Please have a look, using isar master branch I am trying to build= =20
> "mc:qemuarm-buster:isar-image-base",
> To enable selinux support added selinux policy package=20
> https://packages.debian.org/buster/selinux-po= licy-default
> but getting "Value too large for defined data type error"= ; during=C2=A0 build.
>=20
> Build Details:=C2=A0 https://github.com/ilbers/isar = "master" branch
> Build Host: Buster Debian 10
> Machine Name: qemuarm
>=20
> Below are my local.conf contents.
> DISTRO ??=3D "debian-buster"
> MACHINE ??=3D "qemuarm"
> DISTRO_ARCH ??=3D "armhf"
>=20
> # selinx policy packages
> IMAGE_PREINSTALL_append =3D " \
> =C2=A0=C2=A0=C2=A0=C2=A0 .
> =C2=A0=C2=A0=C2=A0=C2=A0 .
> =C2=A0=C2=A0=C2=A0=C2=A0 selinux-policy-default =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \
> "
>=20
> Error log:
> Setting up selinux-policy-default (2:2.20190201-2) ...
> Updating selinux default policy (this step might take a=20
> moment)...libsemanage.semanage_direct_list_all: Error while s= canning=20
> directory /var/lib/selinux/default/active/modules. (Value too= large for=20
> defined data type).
> /usr/sbin/semodule:=C2=A0 Failed on full!
> Could not read the contents of /var/lib/selinux/default/activ= e: Value=20
> too large for defined data type
> libsemanage.semanage_make_sandbox: Could not copy files to sa= ndbox=20
> /var/lib/selinux/default/tmp. (Value too large for defined data ty= pe).
> /usr/sbin/semodule:=C2=A0 Failed on /usr/share/selinux/default/abrt.pp.bz2!
> =C2=A0=C2=A0failed.
> dpkg: error processing package selinux-policy-default (--configure= ):
> =C2=A0=C2=A0installed selinux-policy-default package post-installa= tion script=20
> subprocess returned error exit status 1
>=20
>=20
> Debugging further, meanwhile I would like to check if anyone else = also=20
> faced similar issue
> Any pointers will be a great help!. This issue only reproducible o= n non=20
> amd64.
>=20

I've reproduced here as well. Maybe it's an issue of the qemu-u= ser=20
environment, and that's why we don't see it on x86.

Thanks for checking and pointers.!

-Best Regards
Shrikant


Jan

--=20
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
------=_Part_1074_1773822526.1580310764295-- ------=_Part_1073_622967796.1580310764295--