Proposing SELinux support in strace

Renaud Métrich rmetrich at redhat.com
Fri Mar 26 09:16:27 UTC 2021


Thanks, fixed. I additionally handled the buffer too small case, just in 
case ...

I didn't merge de commits yet, to keep track of changes, will do once 
ready to merge.

On 3/26/21 2:07 AM, Dmitry V. Levin wrote:
> Hi Dmitry,
>
> On Thu, Mar 25, 2021 at 01:51:09PM +0100, Renaud Métrich wrote:
>> Hi Dmitry,
>>
>> I reworked all the tests to stop having getcwd() calls.
>>
>> This means realpath() cannot be used.
>>
>> Please check the PR, tests/ only, rest was already reviewed (since it's
>> basically *your* code ...)
> I've just got two comments about get_curdir_fd:
> - when using readlink, please make sure the returned string is
>    NUL-terminated, see e.g. getfdpath_pid;
> - the most likely reason why readlink of /proc/self/cwd could fail is that
>    /proc is not mounted, let's use perror_msg_and_skip instead of
>    perror_msg_and_fail in that case.
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20210326/3e8a84f7/attachment.bin>


More information about the Strace-devel mailing list