[OE-core] HA: HA: [PATCH] util-linux: fix owner and group for binaries in resulting image

Popov Anton Anton.Popov at t-platforms.ru
Wed May 8 12:53:44 UTC 2019


Good day!

Sorry guys, It looks like that the problem is not in recipe but somehow conected with host distro:
we can not reproduce problem on linux mint 19.1 host distro
but steel face problem with permissions on CentOS Linux release 7.6.1810 (Core)

requested output of package content:
dpkg -c util-linux-mount_2.30-r0_mipsel.deb 
drwxrwxrwx root/root         0 2019-05-08 14:58 ./
drwxr-xr-x root/root         0 2019-05-08 14:58 ./bin/
-rwsr-xr-x 1000/1000     27956 2019-05-08 14:58 ./bin/mount.util-linux



With best regards,
Popov Anton

________________________________________
От: Burton, Ross [ross.burton at intel.com]
Отправлено: 7 мая 2019 г. 23:08
Кому: Popov Anton
Копия: Jacob Kroon; openembedded-core at lists.openembedded.org
Тема: Re: [OE-core] HA: [PATCH] util-linux: fix owner and group for binaries in resulting image

On Tue, 7 May 2019 at 13:47, Popov Anton <Anton.Popov at t-platforms.ru> wrote:
> I don't think so. At the moment we are using rocko release and found this problem in util-linux-2.30 recipe.
>
> the problem is that util-linux builds with regular user permissions and result files are owned by user with uid 1000 in our case. for most of binaries in /bin and /sbin generated by util-linux this permissions issue is not a problem (Because all binaries has o+x set). But for those of them who have suid bit setted it became a real trouble.

Can you give an example of a concrete filename and demonstrate this by
e.g. listing the contents of a package from deploy?  For example with
master:

$ dpkg-deb  -c util-linux-mount_2.32.1-r0_corei7-64.ipk
-rwsr-xr-x root/root     47152 2019-05-07 14:40 ./bin/mount.util-linux

Permissions look right to me.

Ross


More information about the Openembedded-core mailing list