Re: [systemd-devel] nss-myhostname: why don't loopback interfaces appear?

2015-06-10 Thread Simon McVittie
On 10/06/15 03:18, Daurnimator wrote: example use case, I'm testing a client/server protocol: - the server is running locally; and because it shouldn't be exposed to the internet, it is bound to localhost. - I start the client and tell it to connect to $HOSTNAME Why wouldn't you tell the

Re: [systemd-devel] nss-myhostname: why don't loopback interfaces appear?

2015-06-10 Thread Dimitri John Ledkov
On 3 June 2015 at 06:40, Daurnimator q...@daurnimator.com wrote: I was playing around with nss, and found that my loopback interface ip doesn't appear from nss-myhostname. Rather, my other ones do. Furthermore, unless I request IPv4, link-local IPv6 addresses are returned. Is this expected?

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Jóhann B. Guðmundsson
On 06/09/2015 10:21 PM, Lennart Poettering wrote: On Tue, 09.06.15 19:33, Jakub Skořepa (ja...@skorepa.info) wrote: Hello, My name is Jakub Skořepa and I'm working on Cockpit UI for Systemd Timers. For that I need to create and modify systemd unit files. Cockpit uses D -Bus for everything

Re: [systemd-devel] Calling shutdown while executing a service

2015-06-10 Thread Christoph Pleger
Hello, /usr/local/sbin/local is a bash script which calls several functions. When one of these functions fails, i.e. returns another value than zero, the script calls this function: die() { STRING=$1 echo 2 Error occured in function ${STRING} echo Press any key to reboot (sorry for

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Lennart Poettering
On Wed, 10.06.15 06:44, Martin Pitt (martin.p...@ubuntu.com) wrote: Filipe Brandenburger [2015-06-09 12:55 -0700]: I think a more productive advice would be for reviewers to avoid using line comments for anything that is wanted for posterity and instead only use them to say typo or comment

Re: [systemd-devel] Messed up PR references on Github

2015-06-10 Thread Daniel Mack
On 06/10/2015 09:23 AM, Jan Synáček wrote: See https://github.com/systemd/systemd/pull/5. There are multiple references to this PR that say user referenced this pull request from a commit in commit, which is hilarious, as those clearly are not references to this PR. Their commit messages

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Simon McVittie
On 10/06/15 11:46, Jóhann B. Guðmundsson wrote: I hate to say this since I'm against litter unit files across the entire filesystem like infective disease and administrator then have to run around trying to chase them down but is it not better to store this under /srv somewhere [1], not etc,

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Martin Jansa
On Wed, Jun 10, 2015 at 12:01:18AM +0200, Lennart Poettering wrote: On Tue, 09.06.15 14:54, Filipe Brandenburger (filbran...@google.com) wrote: On Tue, Jun 9, 2015 at 2:37 PM, Lennart Poettering lenn...@poettering.net wrote: On Tue, 09.06.15 13:04, Filipe Brandenburger

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Andrei Borzenkov
On Wed, Jun 10, 2015 at 3:35 PM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 10.06.15 14:04, Martin Jansa (martin.ja...@gmail.com) wrote: WHat really surprises me about the whole discussion is that we cannot be the first ones running into this. Given the success of github this

[systemd-devel] question about BUS_MATCH_ARG_PATH

2015-06-10 Thread eshark77
Hi, All, According to the DBus protocol, http://dbus.freedesktop.org/doc/dbus-specification.html An example argument path match is arg0path='/aa/bb/'. This would match messages with first arguments of '/', '/aa/', '/aa/bb/', '/aa/bb/cc/' and '/aa/bb/cc'. It would not match

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Lennart Poettering
B1;4002;0cOn Wed, 10.06.15 13:25, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: On 10/06/15 11:46, Jóhann B. Guðmundsson wrote: I hate to say this since I'm against litter unit files across the entire filesystem like infective disease and administrator then have to run around

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Jóhann B. Guðmundsson
On 06/10/2015 12:30 PM, Stephen Gallagher wrote: A good overview of what we're aiming to accomplish can be found here: h ttps://github.com/cockpit-project/cockpit/wiki/Feature:-Systemd -timers#stories Though at the end of the day, it might be fair to say that systemd timers are cool and very

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Stephen Gallagher
On Wed, 2015-06-10 at 10:46 +, On 06/09/2015 10:21 PM, Lennart Poettering wrote: On Tue, 09.06.15 19:33, Jakub Skořepa (ja...@skorepa.info) wrote: Hello, My name is Jakub Skořepa and I'm working on Cockpit UI for Systemd Timers. For that I need to create and modify

Re: [systemd-devel] question about BUS_MATCH_ARG_PATH

2015-06-10 Thread eshark
Sorry for forgetting attach the C file. Best Regards, Li Cheng At 2015-06-10 20:35:11, eshar...@163.com wrote: Hi, All, According to the DBus protocol, http://dbus.freedesktop.org/doc/dbus-specification.html An example argument path match is arg0path='/aa/bb/'. This would

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Lennart Poettering
On Wed, 10.06.15 14:04, Martin Jansa (martin.ja...@gmail.com) wrote: WHat really surprises me about the whole discussion is that we cannot be the first ones running into this. Given the success of github this must be a common issue. And if it is, then either github is actually prety bad,

[systemd-devel] Messed up PR references on Github

2015-06-10 Thread Jan Synáček
See https://github.com/systemd/systemd/pull/5. There are multiple references to this PR that say user referenced this pull request from a commit in commit, which is hilarious, as those clearly are not references to this PR. Their commit messages contain the string #5 and Github thinks it means a

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Alban Crequy
On Tue, Jun 9, 2015 at 11:37 PM, Lennart Poettering lenn...@poettering.net wrote: On Tue, 09.06.15 13:04, Filipe Brandenburger (filbran...@google.com) wrote: On Tue, Jun 9, 2015 at 12:59 PM, Lennart Poettering lenn...@poettering.net wrote: [...] so we comment and ask for a new PR, and close

Re: [systemd-devel] Use a specific device ?

2015-06-10 Thread Dan Williams
On Tue, 2015-06-09 at 21:22 +0200, Jean-Christian de Rivaz wrote: Le 09. 06. 15 19:52, Dan Williams a écrit : On Tue, 2015-06-09 at 19:34 +0200, Jean-Christian de Rivaz wrote: Le 09. 06. 15 17:43, Dan Williams a écrit : On Fri, 2015-06-05 at 16:16 +0200, Jean-Christian de Rivaz wrote: Le

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Stephen Gallagher
On Wed, 2015-06-10 at 13:21 +, On 06/10/2015 12:30 PM, Stephen Gallagher wrote: A good overview of what we're aiming to accomplish can be found here: h ttps://github.com/cockpit-project/cockpit/wiki/Feature:-Systemd -timers#stories Though at the end of the day, it might be

Re: [systemd-devel] [PATCH v2] selinux: fix missing SELinux unit access check

2015-06-10 Thread systemd github import bot
Patchset imported to github. To create a pull request, one of the main developers has to initiate one via: https://github.com/systemd/systemd/compare/master...systemd-mailing-devs:20150610.144033.42163196.d.hatayama%40jp.fujitsu.com -- Generated by https://github.com/haraldh/mail2git

Re: [systemd-devel] Is SystemCallFilter working for you?

2015-06-10 Thread Martin Pitt
Hello again, Martin Pitt [2015-06-09 13:00 +0200]: I was about to (re-)enable seccomp support in our systemd packages, and to write an integration test for it. However, it seems that this currently does not seem to work at all. For the archives: Not sure what went wrong yesterday, today it

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Jóhann B. Guðmundsson
On 06/10/2015 03:09 PM, Lennart Poettering wrote: On Wed, 10.06.15 14:53, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: WHat really surprises me about the whole discussion is that we cannot be the first ones running into this. Given the success of github this must be a common issue. And

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Lennart Poettering
On Wed, 10.06.15 16:20, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: Without proper infrastructure ( or at least the wills to acquire such ) how can you ( or any of us for that matter ) with a straight face advocate for consolidation and call systemd the modern building block of an OS (

Re: [systemd-devel] Creating units using D-Bus

2015-06-10 Thread Jóhann B. Guðmundsson
On 06/10/2015 03:02 PM, Stephen Gallagher wrote: You make some good points Jóhann. It probably does make sense to focus (at least at first) on managing timer units shipped alongside services as opposed to trying to develop a UI for managing arbitrary timer units. I'll discuss this with some of

Re: [systemd-devel] [PATCH v2] selinux: fix missing SELinux unit access check

2015-06-10 Thread Harald Hoyer
Am 10.06.2015 um 08:05 schrieb systemd github import bot: Patchset imported to github. To create a pull request, one of the main developers has to initiate one via: https://github.com/systemd/systemd/compare/master...systemd-mailing-devs:20150610.144033.42163196.d.hatayama%40jp.fujitsu.com

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Filipe Brandenburger
On Wed, Jun 10, 2015 at 5:04 AM, Martin Jansa martin.ja...@gmail.com wrote: If you want good review tool, why not use gerrit? +1 for Gerrit as a code review tool. It's not perfect, but from all of them that I've used it seems to get the most right: - Review *commits* and not PRs (tends to

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Lennart Poettering
B1;4002;0cOn Wed, 10.06.15 08:25, Filipe Brandenburger (filbran...@google.com) wrote: On Wed, Jun 10, 2015 at 6:31 AM, Alban Crequy al...@endocode.com wrote: Instead, just reuse the same PR and use `git push -f` to ship new versions of the commits to the same branch... Yes it's awful but

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Mihamina Rakotomandimby
On 06/10/2015 05:53 PM, Jóhann B. Guðmundsson wrote: On 06/10/2015 12:35 PM, Lennart Poettering wrote: On Wed, 10.06.15 14:04, Martin Jansa (martin.ja...@gmail.com) wrote: WHat really surprises me about the whole discussion is that we cannot be the first ones running into this. Given the

Re: [systemd-devel] Messed up PR references on Github

2015-06-10 Thread Daniel Mack
On 06/10/2015 07:04 PM, Filipe Brandenburger wrote: On Wed, Jun 10, 2015 at 12:23 AM, Jan Synáček jsyna...@redhat.com wrote: See https://github.com/systemd/systemd/pull/5. There are multiple references to this PR that say user referenced this pull request from a commit in commit, which is

Re: [systemd-devel] Messed up PR references on Github

2015-06-10 Thread Daniel Mack
On 06/10/2015 07:04 PM, Filipe Brandenburger wrote: On Wed, Jun 10, 2015 at 12:23 AM, Jan Synáček jsyna...@redhat.com wrote: See https://github.com/systemd/systemd/pull/5. There are multiple references to this PR that say user referenced this pull request from a commit in commit, which is

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Greg KH
On Wed, Jun 10, 2015 at 05:38:30PM +, Jóhann B. Guðmundsson wrote: On 06/10/2015 04:35 PM, Lennart Poettering wrote: On Wed, 10.06.15 16:20, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: Without proper infrastructure ( or at least the wills to acquire such ) how can you ( or

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Greg KH
On Wed, Jun 10, 2015 at 07:04:17PM +, Jóhann B. Guðmundsson wrote: On 06/10/2015 05:46 PM, Greg KH wrote: There's also no real need for it, I don't understand why you keep insisting there is given how well things have been working so far. I do understand and am aware of the complication

[systemd-devel] [PATCH] ima-setup: write policy one line at a time

2015-06-10 Thread Zbigniew Jędrzejewski-Szmek
ima_write_policy() expects data to be written as one or more rules, no more than PAGE_SIZE at a time. Easiest way to ensure that we are not splitting rules is to read and write on line at a time. https://bugzilla.redhat.com/show_bug.cgi?id=1226948 --- src/core/ima-setup.c | 39

Re: [systemd-devel] Use a specific device ?

2015-06-10 Thread Dan Williams
On Wed, 2015-06-10 at 20:52 +0200, Jean-Christian de Rivaz wrote: Le 10. 06. 15 16:36, Dan Williams a écrit : On Tue, 2015-06-09 at 21:22 +0200, Jean-Christian de Rivaz wrote: This black list, grey list, and white list system is a mess and have to die. No other application do that way

Re: [systemd-devel] [PATCH] ima-setup: write policy one line at a time

2015-06-10 Thread systemd github import bot
Patchset imported to github. To create a pull request, one of the main developers has to initiate one via: https://github.com/systemd/systemd/compare/master...systemd-mailing-devs:1433965127-19648-1-git-send-email-zbyszek%40in.waw.pl -- Generated by https://github.com/haraldh/mail2git

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Lennart Poettering
On Wed, 10.06.15 17:38, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: Without proper infrastructure ( or at least the wills to acquire such ) how can you ( or any of us for that matter ) with a straight face advocate for consolidation and call systemd the modern building block of an OS

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Greg KH
On Wed, Jun 10, 2015 at 05:38:30PM +, Jóhann B. Guðmundsson wrote: On 06/10/2015 04:35 PM, Lennart Poettering wrote: On Wed, 10.06.15 16:20, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: Without proper infrastructure ( or at least the wills to acquire such ) how can you ( or

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Greg KH
On Wed, Jun 10, 2015 at 05:38:30PM +, Jóhann B. Guðmundsson wrote: On 06/10/2015 04:35 PM, Lennart Poettering wrote: On Wed, 10.06.15 16:20, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: Without proper infrastructure ( or at least the wills to acquire such ) how can you ( or

Re: [systemd-devel] Messed up PR references on Github

2015-06-10 Thread Filipe Brandenburger
On Wed, Jun 10, 2015 at 12:23 AM, Jan Synáček jsyna...@redhat.com wrote: See https://github.com/systemd/systemd/pull/5. There are multiple references to this PR that say user referenced this pull request from a commit in commit, which is hilarious, as those clearly are not references to this

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Jóhann B. Guðmundsson
On 06/10/2015 05:46 PM, Greg KH wrote: There's also no real need for it, I don't understand why you keep insisting there is given how well things have been working so far. I do understand and am aware of the complication ( legal and otherwise social aspect of it etc ) involved with bringing

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Jóhann B. Guðmundsson
On 06/10/2015 04:35 PM, Lennart Poettering wrote: On Wed, 10.06.15 16:20, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: Without proper infrastructure ( or at least the wills to acquire such ) how can you ( or any of us for that matter ) with a straight face advocate for consolidation

Re: [systemd-devel] nss-myhostname: why don't loopback interfaces appear?

2015-06-10 Thread Lennart Poettering
On Wed, 10.06.15 11:17, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: On 10/06/15 03:18, Daurnimator wrote: example use case, I'm testing a client/server protocol: - the server is running locally; and because it shouldn't be exposed to the internet, it is bound to localhost.

Re: [systemd-devel] nss-myhostname: why don't loopback interfaces appear?

2015-06-10 Thread Lennart Poettering
On Wed, 10.06.15 12:18, Daurnimator (q...@daurnimator.com) wrote: On 9 June 2015 at 20:36, Lennart Poettering lenn...@poettering.net wrote: On Wed, 03.06.15 16:31, Daurnimator (q...@daurnimator.com) wrote: On 3 June 2015 at 16:01, Lennart Poettering lenn...@poettering.net wrote: On Wed,

Re: [systemd-devel] [PATCH] shared: do not include aux_h if it is off

2015-06-10 Thread Lennart Poettering
On Fri, 29.05.15 11:47, Umut Tezduyar Lindskog (umut.tezdu...@axis.com) wrote: For the sake of the archives: this was merged as: https://github.com/systemd/systemd/pull/8 --- src/shared/random-util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/random-util.c

Re: [systemd-devel] Use a specific device ?

2015-06-10 Thread Dan Williams
On Thu, 2015-06-11 at 00:40 +0200, Jean-Christian de Rivaz wrote: Le 10. 06. 15 23:37, Bjørn Mork a écrit : Jean-Christian de Rivaz j...@eclis.ch writes: There is not so much modem manufacturers and each of them don't even release a new product range per year. Ehh... I don't think we

Re: [systemd-devel] [PATCH] ima-setup: write policy one line at a time

2015-06-10 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jun 11, 2015 at 01:16:47AM +0200, Lennart Poettering wrote: On Wed, 10.06.15 15:38, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: ima_write_policy() expects data to be written as one or more rules, no more than PAGE_SIZE at a time. Easiest way to ensure that we are not

Re: [systemd-devel] [PATCH 0/7] Make journalctl -M work with journals inside overlayfs

2015-06-10 Thread Lennart Poettering
On Mon, 01.06.15 17:28, Krzesimir Nowak (krzesi...@endocode.com) wrote: For the sake of the archives: further discussion on this patch set now takes place on gihub: https://github.com/systemd/systemd/pull/49 Hi, When having a container that keeps its journal inside overlayfs, journalctl

Re: [systemd-devel] [PATCH] ima-setup: write policy one line at a time

2015-06-10 Thread Lennart Poettering
On Wed, 10.06.15 15:38, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: ima_write_policy() expects data to be written as one or more rules, no more than PAGE_SIZE at a time. Easiest way to ensure that we are not splitting rules is to read and write on line at a time.

Re: [systemd-devel] [PATCH] shared: Drop 'name=' prefix from SYSTEMD_CGROUP_CONTROLLER define.

2015-06-10 Thread Lennart Poettering
On Mon, 01.06.15 13:56, Dimitri John Ledkov (dimitri.j.led...@intel.com) wrote: In cgtop,mount-setup,nspawn the name= prefix is hard-coded in the mount options, and the define is not used. Everywhere else, we explicitly white-list allow 'name=' prefix to be used with all controllers, and

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Jóhann B. Guðmundsson
On 06/10/2015 07:36 PM, Greg KH wrote: On Wed, Jun 10, 2015 at 07:04:17PM +, Jóhann B. Guðmundsson wrote: On 06/10/2015 05:46 PM, Greg KH wrote: There's also no real need for it, I don't understand why you keep insisting there is given how well things have been working so far. I do

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Greg KH
On Thu, Jun 11, 2015 at 02:01:06AM +, Jóhann B. Guðmundsson wrote: On 06/10/2015 07:36 PM, Greg KH wrote: On Wed, Jun 10, 2015 at 07:04:17PM +, Jóhann B. Guðmundsson wrote: On 06/10/2015 05:46 PM, Greg KH wrote: There's also no real need for it, I don't understand why you keep

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Lennart Poettering
On Wed, 10.06.15 14:53, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: WHat really surprises me about the whole discussion is that we cannot be the first ones running into this. Given the success of github this must be a common issue. And if it is, then either github is actually prety bad,

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-10 Thread Filipe Brandenburger
On Wed, Jun 10, 2015 at 6:31 AM, Alban Crequy al...@endocode.com wrote: Instead, just reuse the same PR and use `git push -f` to ship new versions of the commits to the same branch... Yes it's awful but unfortunately that's how GitHub works... Yeah, it is awful, and loses all the comments, as