lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 24 May 2024 10:59:03 +0000
From: Khannanov Lenar <Lenar.Khannanov@...otecs.ru>
To: "naresh.kamboju@...aro.org" <naresh.kamboju@...aro.org>
CC: "brauner@...nel.org" <brauner@...nel.org>, "fweimer@...hat.com"
	<fweimer@...hat.com>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "linux-kselftest@...r.kernel.org"
	<linux-kselftest@...r.kernel.org>, "lkft-triage@...ts.linaro.org"
	<lkft-triage@...ts.linaro.org>, "shuah@...nel.org" <shuah@...nel.org>,
	Gavrilov Ilia <Ilia.Gavrilov@...otecs.ru>
Subject: Re: selftests: clone3: clone3_cap_checkpoint_restore fails - Could
 not set CAP_CHECKPOINT_RESTORE


I presume that test fails because of the difference between definition of struct _cap_struct (struct libcap in test). Commit aca076443591 (Make cap_t operations thread safe.) introduces mutex field at the beginning of the structure. Test uses own definition to set CAP_CHECKPOINT_RESTORE. As data member of these two versions of structures is at the different offsets, CAP_CHECKPOINT_RESTORE is lost and that's why cap_set_proc returns EPERM.


С уважением,
Ленар Ханнанов
Программист
Отдел разработки
АО "ИнфоТеКС" в г. Санкт-Петербург
190000, г. Санкт-Петербург, ул. Артиллерийская, д. 1, литер А, БЦ «Европа Хаус»
T: +7 495 737-61-92 ( доб. 7196)
Ф: +7 495 737-72-78


Lenar.Khannanov@...otecs.ru
www.infotecs.ru


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ