Re: [PATCH v3 2/3] qemu: tpm: Get swtpm pid without binary validation

2022-02-03 Thread Michal Prívozník
On 2/2/22 17:28, Vasiliy Ulyanov wrote: > Access to /proc/[pid]/exe may be restricted in certain environments (e.g. > in containers) and any attempt to stat(2) or readlink(2) the file will > result in 'permission denied' error if the calling process does not have > CAP_SYS_PTRACE capability.

[PATCH v3 2/3] qemu: tpm: Get swtpm pid without binary validation

2022-02-02 Thread Vasiliy Ulyanov
Access to /proc/[pid]/exe may be restricted in certain environments (e.g. in containers) and any attempt to stat(2) or readlink(2) the file will result in 'permission denied' error if the calling process does not have CAP_SYS_PTRACE capability. According to proc(5) manpage: Permission to