TLDR: when using the --id=NNN parameter, logger sends random UID and GID along with the PID you specify on the command line.
Those UID/GID probably don't exist on your machine/container and you are probably using some LSM module (like AppArmor, SELinux, etc) that checks the validity of the credentials sent through the sendmsg() syscall and thus denies the call with EINVAL.
You might want to test the patch I posted on github.
I'm pretty sure this bug is caused by this issue: https:/ /github. com/util- linux/util- linux/issues/ 2336
TLDR: when using the --id=NNN parameter, logger sends random UID and GID along with the PID you specify on the command line.
Those UID/GID probably don't exist on your machine/container and you are probably using some LSM module (like AppArmor, SELinux, etc) that checks the validity of the credentials sent through the sendmsg() syscall and thus denies the call with EINVAL.
You might want to test the patch I posted on github.