Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-15 Thread Luca Boccassi
On Wed, 15 Mar 2023 at 12:23, Stephan Bergmann wrote: > > On 15/03/2023 13:18, Luca Boccassi wrote: > > The hard part is adding the note correctly, with the right size, > > alignment, flags, etc. You can use the linker to add a placeholder > > value, eg --package-metadata='{"name":"LO-testcase-xxx

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-15 Thread Stephan Bergmann
On 15/03/2023 13:18, Luca Boccassi wrote: The hard part is adding the note correctly, with the right size, alignment, flags, etc. You can use the linker to add a placeholder value, eg --package-metadata='{"name":"LO-testcase-"}' and then simply edit in place before each test, as long as y

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-15 Thread Luca Boccassi
On Wed, 15 Mar 2023 at 10:43, Stephan Bergmann wrote: > > On 15/03/2023 11:29, Luca Boccassi wrote: > > Use the elf metadata spec: https://systemd.io/ELF_PACKAGE_METADATA/ > > > > I need to update that, as these days it's no longer necessary to use a > > custom linker script, but with binutils 2.3

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-15 Thread Stephan Bergmann
On 15/03/2023 11:29, Luca Boccassi wrote: Use the elf metadata spec: https://systemd.io/ELF_PACKAGE_METADATA/ I need to update that, as these days it's no longer necessary to use a custom linker script, but with binutils 2.39 (or mold 1.3.0 or lld 15.0) it's as easy as passing as a linker flag:

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-15 Thread Luca Boccassi
On Wed, 15 Mar 2023 at 08:43, Stephan Bergmann wrote: > > Hi all, > > I have a question about coredumpctl core dump matching, maybe somebody > has an idea: The LibreOffice build system's `make check` machinery has > some logic to identify core files generated by crashed tests and to use > gdb to

Re: [systemd-devel] systemd-devel Digest, Vol 155, Issue 8

2023-03-15 Thread Lal, Arun
Hi Lennart, Adding to previous mail, to double confirm my understanding. I have an application running in root which has an interface xyz.openbmc_project.CPU.GetData I have a non-root user called nonrootuser Right now systemd reject method call from nonrootuser to interface xyz.openbmc_projec

Re: [systemd-devel] systemd-devel Digest, Vol 155, Issue 8

2023-03-15 Thread Lal, Arun
Hi Lennart, This makes lot of sense. 😊 The main objective I am looking for is to let the non-root user make a dbus-call to an application running in root. And as per your last mail it seems possible through polkit. Will it be possible for you to show me a reference to how this can be done usi

[systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-15 Thread Stephan Bergmann
Hi all, I have a question about coredumpctl core dump matching, maybe somebody has an idea: The LibreOffice build system's `make check` machinery has some logic to identify core files generated by crashed tests and to use gdb to automatically obtain backtraces from them (similar to `coredump