#1043462 ltrace: breaks suid/sgid semantics in forked processes without -f (works with strace)

Package:
ltrace
Source:
ltrace
Description:
Tracks runtime library calls in dynamically linked programs
Submitter:
наб
Date:
2024-11-30 17:57:01 UTC
Severity:
normal
Tags:
#1043462#5
Date:
2023-08-11 15:15:28 UTC
From:
To:
Dear Maintainer,

If program does a fork+exec of a sgid executable, then:
(a) ltrace -f program and strace -f program expectedly
    don't let the child gain new provileges.
(b) strace program does, since it's not tracing the child
(c) ltrace program doesn't

This makes ltrace borderline useless for debugging stuff like
crontab(1).

Best,
наб