Re: [systemd-devel] rdrand generated with march=winchip-c6 in systemd-241

2019-05-13 Thread Mike Gilbert
On Sat, May 11, 2019 at 1:19 PM tedheadster wrote: > > On Sat, May 11, 2019 at 12:30 PM Florian Weimer wrote: > > Can you capture register contents at the point of the crash? > > > > Does this reproduce in a chroot? Maybe you can trace the whole thing > > with a debugger. Does the crash

Re: [systemd-devel] [PATCH] ask-password: prevent buffer overrow when reading from keyring

2019-05-13 Thread systemd github import bot
Patchset imported to github. To create a pull request, one of the main developers has to initiate one via: -- Generated by https://github.com/haraldh/mail2git

[systemd-devel] [PATCH] ask-password: prevent buffer overrow when reading from keyring

2019-05-13 Thread Thadeu Lima de Souza Cascardo
When we read from keyring, a temporary buffer is allocated in order to determine the size needed for the entire data. However, when zeroing that area, we use the data size returned by the read instead of the lesser size allocate for the buffer. That will cause memory corruption that causes

Re: [systemd-devel] logind-dbus-session question

2019-05-13 Thread Damian Ivanov
> > The methods in question are TakeControl/ReleaseControl for grabbing > > the input via busctl. > > ReleaseControl => You are not in control of this session > > TakeControl b true => Access denied > > if "force" is true you have to be root. Pass false and have the EUID > of the session owner if

[systemd-devel] Password agent for user services

2019-05-13 Thread Michal Koutný
Hello, I was pondering a user service that would ask for password via the password agent infrastructure (as there is systemd-gnome-ask-password-agent it could be quite integrated with the desktop environment) as an alternative to saving it in (Gnome) keyring. Naïve experiment with > [Service] >

Re: [systemd-devel] sd-bus dynamic property table

2019-05-13 Thread Simon McVittie
On Mon, 13 May 2019 at 08:25:03 -0700, Stephen Hemminger wrote: > The next step is to add ethtool statistics. Each type of network device will > have > different set of named properties. This is really a D-Bus API design query, not a systemd query. The standard D-Bus Properties interface is not

Re: [systemd-devel] Antw: Re: Arbitrary restrictions (e.g. for RuntimeDirectory)

2019-05-13 Thread František Šumšal
On 5/13/19 8:20 AM, Ulrich Windl wrote: >> "systemd‑analyze verify" exists. Since a long long time. > > Not really: You can't verify a unit file while it's not "installed". Comare it > to validating an XML file, for example. > That's actually not true. The argument for `systemd-analyze verify`

[systemd-devel] sd-bus dynamic property table

2019-05-13 Thread Stephen Hemminger
I have a simple application that does provides property table for network devices (maybe it would be useful for a more complete example somewhere). The app is more to show how to use sdbus, not to replace network manager. The next step is to add ethtool statistics. Each type of network device

Re: [systemd-devel] Antw: Re: rdrand generated with march=winchip-c6 in systemd-241

2019-05-13 Thread Reindl Harald
Am 13.05.19 um 09:10 schrieb Ulrich Windl: tedheadster schrieb am 11.05.2019 um 19:19 in Nachricht > : >> On Sat, May 11, 2019 at 12:30 PM Florian Weimer wrote: >>> Can you capture register contents at the point of the crash? >>> >>> Does this reproduce in a chroot? Maybe you can

Re: [systemd-devel] Antw: Re: Antw: Re: rdrand generated with march=winchip-c6 in systemd-241

2019-05-13 Thread Reindl Harald
Am 13.05.19 um 09:18 schrieb Ulrich Windl: >>> I didn't see the start of this thread, but is it another attempt to >> re-implement /proc/cpuinfo's flags? >> >> can you please stop all that trolling? > > Actually the number of unfriendly words from your side beat mine by an order > of

Re: [systemd-devel] Antw: Re: Arbitrary restrictions (e.g. for RuntimeDirectory)

2019-05-13 Thread Reindl Harald
Am 13.05.19 um 08:20 schrieb Ulrich Windl: >> Note that "/var/run" is a legacy alias for "/run". It's highly >> recommended not to use the former anymore. > > It it because you don't like sub-directories, or is it to save four bytes? > ;-) stop it - if you would have read IT news

Re: [systemd-devel] rdrand generated with march=winchip-c6 in systemd-241

2019-05-13 Thread tedheadster
On Mon, May 13, 2019 at 3:10 AM Ulrich Windl wrote: > > >>> tedheadster schrieb am 11.05.2019 um 19:19 in > >>> Nachricht > : > > On Sat, May 11, 2019 at 12:30 PM Florian Weimer wrote: > >> Can you capture register contents at the point of the crash? > >> > >> Does this reproduce in a chroot?

Re: [systemd-devel] systemd-nspawn and cgroup hybrid mode

2019-05-13 Thread Antoine Pietri
On Mon, May 13, 2019 at 10:42 AM Lennart Poettering wrote: > you can use it to lock up the machine, hence we generally don't do it. Thanks, got it. For my usecase though, security isn't much of a concern and I don't necessarily have the time/bandwidth to migrate the software to cgroupsv2

Re: [systemd-devel] sd-bus: Enabling free-standing, bus-independent plain messages

2019-05-13 Thread Simon McVittie
On Mon, 13 May 2019 at 10:38:38 +0200, Lennart Poettering wrote: > On So, 12.05.19 13:06, Stanislav Angelovič (angelovi...@gmail.com) wrote: > > Quick question: Would it be possible to extend sd-bus to also allow > > creating messages without requiring a bus? > > This used to be available but we

Re: [systemd-devel] systemd-nspawn and cgroup hybrid mode

2019-05-13 Thread Lennart Poettering
On So, 12.05.19 14:09, Antoine Pietri (antoine.piet...@gmail.com) wrote: > Hi, > > I have a probably dumb question for which I couldn't find an answer in > the docs. I'm trying to make a program that uses the cgroupv1 API run > into a systemd-nspawn container. In the host, I know that I can just

Re: [systemd-devel] sd-bus: Enabling free-standing, bus-independent plain messages

2019-05-13 Thread Lennart Poettering
On So, 12.05.19 13:06, Stanislav Angelovič (angelovi...@gmail.com) wrote: > Hi (Lennart :) > > Quick question: Would it be possible to extend sd-bus to also allow > creating messages without requiring a bus? This used to be available but we dropped it, since the serialization depends on the bus

Re: [systemd-devel] logind-dbus-session question

2019-05-13 Thread Lennart Poettering
On Sa, 11.05.19 16:29, Damian Ivanov (damianator...@gmail.com) wrote: > Hello folks. > > Thank you for being pioneers in the field! > > I am trying to get responses from the login1 system bus, but I get > Access Denied messages. > I am calling it as normal user (the user of the session - as root

Re: [systemd-devel] systemctl list all possible (including unloaded) services

2019-05-13 Thread Lennart Poettering
On Fr, 10.05.19 13:27, Roger Pack (rogerdpa...@gmail.com) wrote: > > Seems to work here. I have just one sysvinit script: > > $ ls /etc/init.d/ > > functions network README > > $ systemctl list-unit-files 'network*' > > UNIT FILE STATE > > network.service generated > > ... > >

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-13 Thread Lennart Poettering
On Mi, 08.05.19 14:37, Germano Massullo (germano.massu...@gmail.com) wrote: > Hi, I am doing some practice with writing software using GDBus API. I > need it to implement on BOINC client, user(s) idle time detection by > retrieving such info from logind. > In order to retrieve user idle time I

Re: [systemd-devel] Antw: Re: Explain status "Loaded: not-found (Reason: No such file or directory)"

2019-05-13 Thread Lennart Poettering
On Mo, 13.05.19 08:08, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > > Typically, when you see "not-found" as "Loaded" value, you'll also see > > "No such file or directory" as "Reason" value, but there are some > > other cases, since units are not always synthesized from unit files

Re: [systemd-devel] Antw: Re: Antw: Re: rdrand generated with march=winchip-c6 in systemd-241

2019-05-13 Thread Lennart Poettering
On Mo, 13.05.19 09:18, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: Please guys, stop it. > > cpuid has *nothing* to do with /proc/cpuinfo > > > > https://en.wikipedia.org/wiki/CPUID > > The CPUID instruction (identified by a CPUID opcode) is a processor > > supplementary instruction

Re: [systemd-devel] Antw: Re: Explain status "Loaded: not-found (Reason: No such file or directory)"

2019-05-13 Thread Lennart Poettering
On Mo, 13.05.19 07:48, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > >> I guess it's not a file named "Reason" that's missing. Despite of my > >> recommendation to create helpful error messages, can you explain what it > > means? > >> Even after an strace I could not find out what is

Re: [systemd-devel] Antw: Re: Can I enable/disable a target?

2019-05-13 Thread Lennart Poettering
On Mo, 13.05.19 08:25, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > >> Whenever I try to enable or disable a target (that exists), I get > >> "Failed to execute operation: No such file or directory". What file > >> or directory, please? Or what is the command trying to say? > > > >

[systemd-devel] Antw: Re: Antw: Re: rdrand generated with march=winchip-c6 in systemd-241

2019-05-13 Thread Ulrich Windl
>>> Reindl Harald schrieb am 13.05.2019 um 09:14 in Nachricht : > > Am 13.05.19 um 09:10 schrieb Ulrich Windl: > tedheadster schrieb am 11.05.2019 um 19:19 in > Nachricht >> : >>> On Sat, May 11, 2019 at 12:30 PM Florian Weimer wrote: Can you capture register contents at the point

[systemd-devel] Antw: Re: rdrand generated with march=winchip-c6 in systemd-241

2019-05-13 Thread Ulrich Windl
>>> tedheadster schrieb am 11.05.2019 um 19:19 in >>> Nachricht : > On Sat, May 11, 2019 at 12:30 PM Florian Weimer wrote: >> Can you capture register contents at the point of the crash? >> >> Does this reproduce in a chroot? Maybe you can trace the whole thing >> with a debugger. Does the

[systemd-devel] Antw: Re: Can I enable/disable a target?

2019-05-13 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 09.05.2019 um 17:24 in Nachricht <20190509152440.GC5854@gardel-login>: > On Do, 09.05.19 12:27, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> Hi! >> >> Whenever I try to enable or disable a target (that exists), I get >> "Failed to execute

[systemd-devel] Antw: Re: Wtrlt: Antw: Re: Arbitrary restrictions (e.g. for RuntimeDirectory)

2019-05-13 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 09.05.2019 um 17:28 in Nachricht <20190509152826.GD5854@gardel-login>: > On Do, 09.05.19 15:52, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> (Sorry, I didn't sent to the list before) >> >>> Ulrich Windl schrieb am 09.05.2019 um > 14:25 >> in

[systemd-devel] Antw: Re: Arbitrary restrictions (e.g. for RuntimeDirectory)

2019-05-13 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 09.05.2019 um 17:20 in Nachricht <20190509152036.GB5854@gardel-login>: > On Do, 09.05.19 12:22, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> Hi! >> >> I had to subscribe to this list, even though I'm no systemd >> fan. Still I'll have to deal

[systemd-devel] Antw: Re: Explain status "Loaded: not-found (Reason: No such file or directory)"

2019-05-13 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 09.05.2019 um 17:08 in Nachricht <20190509150818.GA5854@gardel-login>: > On Do, 09.05.19 12:25, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) > wrote: > >> Hi! >> >> I'm developing a service and getting the status of my target gives: >> ● iotwatch.target >>