[PATCH v2] Implement a %creds trace class

Dmitry V. Levin ldv at altlinux.org
Tue Jan 7 00:22:52 UTC 2020


On Sat, Dec 21, 2019 at 02:37:39PM +0200, Andrey Zax wrote:
> This patch implements a new trace class (%creds) to trace syscalls
> related to process credentials.
> 
> syscallent headers updated using this command:
> 
> sed -i -r -e '/((set|get)[^p]*(uid|gid|groups))|cap(get|set)|prctl/s/(\[.*[[:digit:]]+\] = \{ [[:digit:]],\t)([A-Z|]+)/\1CD|\2/' \
>     -e '/((set|get)[^p]*(uid|gid|groups))|cap(get|set)|prctl/s/(\[.*[[:digit:]]+\] = \{ [[:digit:]],\t)0/\1CD/' \
>     -e '/arch_prctl/s/CD\|//' \
>      linux/*/syscallent*.h
> 
> * basic_filters.c (lookup_class): add %creds member to syscall_class[]
> * sysent.h: define new TRACE_CREDS flag
> * sysent_shorthand_defs.h: define CD alias for TRACE_CREDS
> * strace.1.in (.SS Filtering): add description for `-e trace=%creds`
> * linux/32/syscallent.h: add CD flag to credentials syscalls
> * linux/64/syscallent.h: Likewise.
> * linux/alpha/syscallent.h: Likewise.
> * linux/arm/syscallent.h: Likewise.
> * linux/avr32/syscallent.h: Likewise.
> * linux/bfin/syscallent.h: Likewise.
> * linux/hppa/syscallent.h: Likewise.
> * linux/i386/syscallent.h: Likewise.
> * linux/ia64/syscallent.h: Likewise.
> * linux/m68k/syscallent.h: Likewise.
> * linux/microblaze/syscallent.h: Likewise.
> * linux/mips/syscallent-compat.h: Likewise.
> * linux/mips/syscallent-n32.h: Likewise.
> * linux/mips/syscallent-n64.h: Likewise.
> * linux/mips/syscallent-o32.h: Likewise.
> * linux/powerpc/syscallent.h: Likewise.
> * linux/powerpc64/syscallent.h: Likewise.
> * linux/s390/syscallent.h: Likewise.
> * linux/s390x/syscallent.h: Likewise.
> * linux/sh/syscallent.h: Likewise.
> * linux/sh64/syscallent.h: Likewise.
> * linux/sparc/syscallent.h: Likewise.
> * linux/sparc64/syscallent.h: Likewise.
> * linux/x32/syscallent.h: Likewise.
> * linux/x86_64/syscallent.h: Likewise.
> * linux/xtensa/syscallent.h: Likewise.

This had to wait until some tests for the new feature were added.
It's all merged now, thanks!


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20200107/cfdf2008/attachment.bin>


More information about the Strace-devel mailing list