Re: [systemd-devel] [PATCH 1/3] metadata: document creds_item_off and auxgrps_item_off fields

2014-08-19 Thread Daniel Mack
On 08/19/2014 03:43 AM, Djalal Harouni wrote: Signed-off-by: Djalal Harouni tix...@opendz.org --- metadata.c | 3 ++- metadata.h | 8 +++- 2 files changed, 9 insertions(+), 2 deletions(-) Applied, thanks! diff --git a/metadata.c b/metadata.c index eb286aa..3dff9ac 100644 ---

Re: [systemd-devel] [PATCH 3/3] kdbus: get some creds during meta append for optimization

2014-08-19 Thread Daniel Mack
Hi Djalal, On 08/19/2014 03:43 AM, Djalal Harouni wrote: Some creds can be gathered during kdbus_meta_append() instead of kdbus_conn_queue_alloc() where they will be gathered for all the receivers and saved into each receivers queue before installing on the slices. By moving to

[systemd-devel] start / stop daemon

2014-08-19 Thread Bonno Bloksma
Hi,   I do not know whether this is something systemd should handle or if it is something that belongs to the kernel, so let me ask this first:   Is starting and stopping a daemon part of something systemd is / becomes responsible for?   If so I have something I want to say about that for future

Re: [systemd-devel] start / stop daemon

2014-08-19 Thread Mantas Mikulėnas
On Tue, Aug 19, 2014 at 12:12 PM, Bonno Bloksma b.blok...@tio.nl wrote: Hi, I do not know whether this is something systemd should handle or if it is something that belongs to the kernel, so let me ask this first: Is starting and stopping a daemon part of something systemd is / becomes

[systemd-devel] [PATCH] journalctl: add -t --identifier=STRING option

2014-08-19 Thread harald
From: Harald Hoyer har...@redhat.com This turns journalctl to the counterpart of systemd-cat. Messages sent with systemd-cat --identifier foo --prioritiy debug can now be shown with journalctl --identifier foo --prioritiy debug --identifier is not merged with --unit to make a clear

[systemd-devel] Machines, VMs, Container listing

2014-08-19 Thread Roger Qiu
Hello all, What is the difference between: systemctl list-machines versus machinectl list It seems that systemctl list-machines shows my current machine. But nothing on machinectl. Are they going to merged together any time soon? Thanks, Roger

Re: [systemd-devel] Logind error - Failed to abandon session scope: Connection reset

2014-08-19 Thread Colin Guthrie
Roger Qiu wrote on 19/08/14 01:42: Hello Lennart, I'm not familiar with the SystemD codebase FYI, it's systemd not SystemD or systemD. Hardly a big deal, but figured I'd correct while nitpicking other bits. https://github.com/systemd/systemd so I don't where I could patch the error

Re: [systemd-devel] Logind error - Failed to abandon session scope: Connection reset

2014-08-19 Thread Lennart Poettering
On Tue, 19.08.14 10:42, Roger Qiu (roger@polycademy.com) wrote: Heya, I'm not familiar with the SystemD codebase https://github.com/systemd/systemd so I don't where I could patch the error message. On the other hand, is the kdbus production ready even though it hasn't been merged into

Re: [systemd-devel] Machines, VMs, Container listing

2014-08-19 Thread Lennart Poettering
On Tue, 19.08.14 21:02, Roger Qiu (roger@polycademy.com) wrote: Hello all, What is the difference between: systemctl list-machines This lists the locally running containers, and the state of systemd in them. It basically tells you about which contaienrs are healthy and which ones

[systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Greg KH
Hi all, Now that memfd is merged into 3.17-rc1, should we merge the 3.17 branch in the kdbus tree into master as well? Right now, the test directory on master doesn't build properly on older kernels due to linux/memfd.h not being present, so it seems that we are already thinking the code is

[systemd-devel] Shutdown notify

2014-08-19 Thread Michal Witanowski
Hi all, I would like to know if there is a possibility to get notified about upcoming shutdown/restart. For example: . Somebody executes systemctl reboot / systemctl poweroff . A callback function is called in my service before SIGTERM is triggered on ANY service. .

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread David Herrmann
Hi Greg On Tue, Aug 19, 2014 at 1:29 PM, Greg KH gre...@linuxfoundation.org wrote: Hi all, Now that memfd is merged into 3.17-rc1, should we merge the 3.17 branch in the kdbus tree into master as well? Right now, the test directory on master doesn't build properly on older kernels due to

Re: [systemd-devel] Shutdown notify

2014-08-19 Thread Lennart Poettering
On Tue, 19.08.14 13:34, Michal Witanowski (m.witanow...@samsung.com) wrote: Hi all, I would like to know if there is a possibility to get notified about upcoming shutdown/restart. For example: . Somebody executes systemctl reboot / systemctl poweroff . A callback

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Daniel Mack
On 08/19/2014 01:39 PM, David Herrmann wrote: Hi Greg On Tue, Aug 19, 2014 at 1:29 PM, Greg KH gre...@linuxfoundation.org wrote: Hi all, Now that memfd is merged into 3.17-rc1, should we merge the 3.17 branch in the kdbus tree into master as well? Right now, the test directory on master

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Greg KH
On Tue, Aug 19, 2014 at 01:45:29PM +0200, Daniel Mack wrote: Yes, I already merged the patches I've been holding back until 3.17-rc1 was released. Ah, sorry, missed that. However, there was one missing detail to fix the build in test/ which I pushed now. Does it work for you? Nope, build is

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Greg KH
On Tue, Aug 19, 2014 at 07:37:12AM -0500, Greg KH wrote: I'll reboot into 3.17-rc1 and see if that solves this... Nope, same error as before: make[1]: Entering directory '/home/gregkh/linux/kdbus/test' TARGET_CC kdbus-enum.o In file included from ../kdbus.h:23:0, from

Re: [systemd-devel] Shutdown notify

2014-08-19 Thread Michal Witanowski
What if I'm using systemd built without logind? -Original Message- From: Lennart Poettering [mailto:lenn...@poettering.net] Sent: Tuesday, August 19, 2014 1:40 PM To: Michal Witanowski Cc: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] Shutdown notify On Tue, 19.08.14

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Daniel Mack
On 08/19/2014 02:37 PM, Greg KH wrote: $ KERNELDIR=../gregkh/ make make -C ../gregkh/ M=/home/gregkh/linux/kdbus make[1]: Entering directory '/home/gregkh/linux/gregkh' Building modules, stage 2. MODPOST 1 modules make[1]: Leaving directory '/home/gregkh/linux/gregkh' make -C test

Re: [systemd-devel] Shutdown notify

2014-08-19 Thread Lennart Poettering
On Tue, 19.08.14 14:49, Michal Witanowski (m.witanow...@samsung.com) wrote: What if I'm using systemd built without logind? Not available then. Sorry. You only have the time between SIGTERM and your processes' exit(). It's pretty much logind's job to implement things like these inhibitors. If

Re: [systemd-devel] compile with clang broken

2014-08-19 Thread Dan McGee
On Sat, Aug 16, 2014 at 5:35 AM, David Herrmann dh.herrm...@gmail.com wrote: Hi On Fri, Aug 15, 2014 at 5:22 PM, Daniele Nicolodi dani...@grinta.net wrote: On 15/08/2014 16:30, David Herrmann wrote: Ok, took me a while, but I now figured out how to cause compilation to fail even in

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Daniel Mack
On 08/19/2014 02:47 PM, Greg KH wrote: In file included from /lib/modules/3.17.0-rc1+/build/include/uapi/linux/posix_types.h:4:0, from /lib/modules/3.17.0-rc1+/build/include/uapi/linux/types.h:13, from ../kdbus.h:23, Ok, got it now. No idea why it worked

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Greg KH
On Tue, Aug 19, 2014 at 03:24:39PM +0200, Daniel Mack wrote: On 08/19/2014 02:47 PM, Greg KH wrote: In file included from /lib/modules/3.17.0-rc1+/build/include/uapi/linux/posix_types.h:4:0, from /lib/modules/3.17.0-rc1+/build/include/uapi/linux/types.h:13,

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Daniel Mack
On 08/19/2014 03:56 PM, Greg KH wrote: On Tue, Aug 19, 2014 at 03:24:39PM +0200, Daniel Mack wrote: On 08/19/2014 02:47 PM, Greg KH wrote: In file included from /lib/modules/3.17.0-rc1+/build/include/uapi/linux/posix_types.h:4:0, from

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Djalal Harouni
On Tue, Aug 19, 2014 at 08:56:14AM -0500, Greg KH wrote: On Tue, Aug 19, 2014 at 03:24:39PM +0200, Daniel Mack wrote: On 08/19/2014 02:47 PM, Greg KH wrote: In file included from /lib/modules/3.17.0-rc1+/build/include/uapi/linux/posix_types.h:4:0, from

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Djalal Harouni
On Tue, Aug 19, 2014 at 04:08:15PM +0200, Daniel Mack wrote: On 08/19/2014 03:56 PM, Greg KH wrote: On Tue, Aug 19, 2014 at 03:24:39PM +0200, Daniel Mack wrote: On 08/19/2014 02:47 PM, Greg KH wrote: In file included from

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Greg KH
On Tue, Aug 19, 2014 at 04:08:15PM +0200, Daniel Mack wrote: On 08/19/2014 03:56 PM, Greg KH wrote: On Tue, Aug 19, 2014 at 03:24:39PM +0200, Daniel Mack wrote: On 08/19/2014 02:47 PM, Greg KH wrote: In file included from

Re: [systemd-devel] kdbus: merge 3.17 branch into master?

2014-08-19 Thread Daniel Mack
On 08/19/2014 04:21 PM, Greg KH wrote: On Tue, Aug 19, 2014 at 04:08:15PM +0200, Daniel Mack wrote: Could you please try if temporarily reverting my top-most commit and then doing a 'make headers_install' in your kernel repo (before you build kdbus) fixes it? Yes, that works. And we can

Re: [systemd-devel] start / stop daemon

2014-08-19 Thread Bonno Bloksma
Hi, I do not know whether this is something systemd should handle or if it is something that belongs to the kernel, so let me ask this first: Is starting and stopping a daemon part of something systemd is / becomes responsible for? Well, yes, starting stopping daemons is pretty much

Re: [systemd-devel] start / stop daemon

2014-08-19 Thread Colin Guthrie
Bonno Bloksma wrote on 19/08/14 15:44: In that case I would like to ask if the developers have already considered a development in the Windows world considering the stopping of services that may take a LOOONG time stopping, for instance some databases. I wonder if the people developing

Re: [systemd-devel] [systemd-commits] man/systemd.socket.xml src/core src/shared

2014-08-19 Thread Lennart Poettering
On Tue, 19.08.14 09:57, Michal Sekletar (msekl...@kemper.freedesktop.org) wrote: Hi! Hmm, can we please have patches like this sent to the ML? I am not sure I like the SELinuxLabelViaNet= name. Can we name this SELinuxContextFromNet= at least? We currently have SELinuxContext=, and afaik

Re: [systemd-devel] Networkd fails to activate the device on boot

2014-08-19 Thread Thomas Bächler
Am 18.08.2014 um 12:41 schrieb Tom Gundersen: 1) The enp3s0 interface does not activate on boot. I need to restart networkd manually to make it work. Hm, that is decidedly uncool. It seems we are not aware of the link. Could you try with Environment=SYSTEMD_LOG_LEVEL=debug in your service

Re: [systemd-devel] start / stop daemon

2014-08-19 Thread Mantas Mikulėnas
On Tue, Aug 19, 2014 at 5:44 PM, Bonno Bloksma b.blok...@tio.nl wrote: Hi, I do not know whether this is something systemd should handle or if it is something that belongs to the kernel, so let me ask this first: Is starting and stopping a daemon part of something systemd is / becomes

[systemd-devel] Using path name in instantiated units

2014-08-19 Thread Florian Lindner
Hello, I have a systemd unit that should do a commit on a specific path. Since there are more then one path / repos, I want to use an instantiated unit for that (the stuff with @ in the unit name): ~/.config/systemd/user % cat git-commit@.service [Unit] Description=Auto commit for instance.

Re: [systemd-devel] Using path name in instantiated units

2014-08-19 Thread Andrei Borzenkov
В Tue, 19 Aug 2014 19:34:46 +0200 Florian Lindner mailingli...@xgm.de пишет: It seems that using %i or %I to set the working directory does not work. bor@opensuse:~ sudo systemctl start foo@/home/bor.service bor@opensuse:~ cat /tmp/foo /home/bor %i=-home-bor %I=/home/bor bor@opensuse:~ cat

Re: [systemd-devel] Using path name in instantiated units

2014-08-19 Thread Florian Lindner
Andrei Borzenkov wrote: В Tue, 19 Aug 2014 19:34:46 +0200 Florian Lindner mailingli...@xgm.de пишет: It seems that using %i or %I to set the working directory does not work. bor@opensuse:~ sudo systemctl start foo@/home/bor.service bor@opensuse:~ cat /tmp/foo /home/bor %i=-home-bor

Re: [systemd-devel] Using path name in instantiated units

2014-08-19 Thread Andrei Borzenkov
В Tue, 19 Aug 2014 20:59:55 +0200 Florian Lindner mailingli...@xgm.de пишет: I also try to set up a matching timer: systemctl --user start git-commit@/home/florian/timer.test.timer works fine, but: systemctl --user enable git-commit@/home/florian/timer.test.timer Failed to execute

Re: [systemd-devel] [PATCH] journalctl: add -t --identifier=STRING option

2014-08-19 Thread Ronny Chevalier
2014-08-19 12:12 GMT+02:00 har...@redhat.com: From: Harald Hoyer har...@redhat.com This turns journalctl to the counterpart of systemd-cat. Messages sent with systemd-cat --identifier foo --prioritiy debug can now be shown with journalctl --identifier foo --prioritiy debug

[systemd-devel] Suppressing automounting

2014-08-19 Thread Dale R. Worley
(This is more proper for a systemd-users mailing list, but I can't find one.) I'd like to customize my systemd. (I'm running Fedora Linux 19, with systemd-204-20.fc19.x86_64.) I have a line in /etc/fstab like this, which refers to a logical volume on a USB storage device: /dev/Freeze02/Store2

Re: [systemd-devel] Using path name in instantiated units

2014-08-19 Thread Florian Lindner
Andrei Borzenkov wrote: В Tue, 19 Aug 2014 20:59:55 +0200 Florian Lindner mailingli...@xgm.de пишет: I also try to set up a matching timer: systemctl --user start git-commit@/home/florian/timer.test.timer works fine, but: systemctl --user enable

Re: [systemd-devel] Using path name in instantiated units

2014-08-19 Thread Anthony Messina
On Tuesday, August 19, 2014 07:34:46 PM Florian Lindner wrote: Any ideas how I can change the working directory to the directory given by the instance name? I do something like this to rebuild Jekyll sites based on a git commit. Maybe this will help you. 1. A path unit watches for changes to

Re: [systemd-devel] Suppressing automounting

2014-08-19 Thread Lennart Poettering
On Tue, 19.08.14 15:56, Dale R. Worley (wor...@alum.mit.edu) wrote: (This is more proper for a systemd-users mailing list, but I can't find one.) I'd like to customize my systemd. (I'm running Fedora Linux 19, with systemd-204-20.fc19.x86_64.) I have a line in /etc/fstab like this,

Re: [systemd-devel] start / stop daemon

2014-08-19 Thread Lennart Poettering
On Tue, 19.08.14 14:44, Bonno Bloksma (b.blok...@tio.nl) wrote: I wonder if the people developing systemd are paying attention to a development in de Windows environment where the latest thing is that de service can report back that it is indeed still trying to stop and not just hung or not

Re: [systemd-devel] Using path name in instantiated units

2014-08-19 Thread Lennart Poettering
On Tue, 19.08.14 19:34, Florian Lindner (mailingli...@xgm.de) wrote: Hello, I have a systemd unit that should do a commit on a specific path. Since there are more then one path / repos, I want to use an instantiated unit for that (the stuff with @ in the unit name):

[systemd-devel] [PATCH] man: fix typos

2014-08-19 Thread Ronny Chevalier
--- man/journalctl.xml| 6 +++--- man/systemctl.xml | 2 +- man/systemd-firstboot.xml | 4 ++-- man/systemd.network.xml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/man/journalctl.xml b/man/journalctl.xml index bf18756..e10918a 100644 ---

[systemd-devel] [PATCH] Do not mount /run a second time when using smack

2014-08-19 Thread Philippe De Swert
From: Philippe De Swert philippedesw...@gmail.com Hi, Going through the code trying to learn how systemd exactly works and try to understand the mounting better, hunting down some weird mount related bug I came across something that did not look right. If I understood things right, basic

[systemd-devel] [PATCH] [mount] Do not try to mount /run a second time when using smack

2014-08-19 Thread Philippe De Swert
From: Philippe De Swert philippedesw...@gmail.com Smack mounts /run with some different parameters, we definitely do not want to have a second mount over it afterwards Signed-off-by: Philippe De Swert philippedesw...@gmail.com --- src/core/mount-setup.c | 3 ++- 1 file changed, 2 insertions(+),

Re: [systemd-devel] [PATCH v2] bootchart: use NSEC_PER_SEC

2014-08-19 Thread Thomas H.P. Andersen
Maybe these are candidates for this as well? src/bootchart/bootchart.c:355:interval = (1.0 / arg_hz) * 10.0; src/bootchart/bootchart.c:413:elapsed = (sample_stop - sampledata-sampletime) * 10.0; src/bootchart/bootchart.c:416:newint_s =

Re: [systemd-devel] [PATCH] man: fix typos

2014-08-19 Thread Daniel Mack
On 08/19/2014 11:21 PM, Ronny Chevalier wrote: --- man/journalctl.xml| 6 +++--- man/systemctl.xml | 2 +- man/systemd-firstboot.xml | 4 ++-- man/systemd.network.xml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) Applied, thanks! diff --git

Re: [systemd-devel] [PATCH v2] bootchart: use NSEC_PER_SEC

2014-08-19 Thread Lennart Poettering
On Tue, 19.08.14 23:31, Thomas H.P. Andersen (pho...@gmail.com) wrote: Maybe these are candidates for this as well? src/bootchart/bootchart.c:355:interval = (1.0 / arg_hz) * 10.0; src/bootchart/bootchart.c:413:elapsed = (sample_stop -

Re: [systemd-devel] [PATCH] [mount] Do not try to mount /run a second time when using smack

2014-08-19 Thread Lennart Poettering
On Wed, 20.08.14 00:29, Philippe De Swert (philippedesw...@gmail.com) wrote: From: Philippe De Swert philippedesw...@gmail.com Smack mounts /run with some different parameters, we definitely do not want to have a second mount over it afterwards Nah, it's not actually mounted twice. The idea

[systemd-devel] [ANNOUNCE] systemd 216

2014-08-19 Thread Lennart Poettering
Heya! This is a major new release. Among many other changes systemd-resolved is now a pretty complete caching DNS and LLMNR stub resolver. http://www.freedesktop.org/software/systemd/systemd-216.tar.xz CHANGES WITH 216: * timedated no longer reads NTP implementation unit names from

Re: [systemd-devel] Using path name in instantiated units

2014-08-19 Thread Andrei Borzenkov
В Tue, 19 Aug 2014 22:54:04 +0200 Lennart Poettering lenn...@poettering.net пишет: On Tue, 19.08.14 19:34, Florian Lindner (mailingli...@xgm.de) wrote: Hello, I have a systemd unit that should do a commit on a specific path. Since there are more then one path / repos, I want to use an

Re: [systemd-devel] Using path name in instantiated units

2014-08-19 Thread Andrei Borzenkov
В Tue, 19 Aug 2014 22:08:26 +0200 Florian Lindner mailingli...@xgm.de пишет: Andrei Borzenkov wrote: В Tue, 19 Aug 2014 20:59:55 +0200 Florian Lindner mailingli...@xgm.de пишет: I also try to set up a matching timer: systemctl --user start

Re: [systemd-devel] [ANNOUNCE] systemd 216

2014-08-19 Thread Dave Reisner
Hi, On Wed, Aug 20, 2014 at 02:59:52AM +0200, Lennart Poettering wrote: Heya! This is a major new release. Among many other changes systemd-resolved is now a pretty complete caching DNS and LLMNR stub resolver. http://www.freedesktop.org/software/systemd/systemd-216.tar.xz CHANGES WITH

Re: [systemd-devel] [ANNOUNCE] systemd 216

2014-08-19 Thread Andrei Borzenkov
В Wed, 20 Aug 2014 02:59:52 +0200 Lennart Poettering lenn...@poettering.net пишет: Heya! This is a major new release. Among many other changes systemd-resolved is now a pretty complete caching DNS and LLMNR stub resolver. http://www.freedesktop.org/software/systemd/systemd-216.tar.xz

[systemd-devel] [PATCH 2/2] udev: do NOT re-label smack

2014-08-19 Thread WaLyong Cho
If selinux is disabled and smack is only enabled, smack label is re-lable-ed by label_fix. To avoid, make only be labeled for selinux. --- src/udev/udev-node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c index

[systemd-devel] [PATCH 1/2] label: rearrange security label apis

2014-08-19 Thread WaLyong Cho
use {selinux/smack}-label.ch instread of {selinux/smack}-util.ch move selinux label APIs to selinux-label.ch use label_{selinxu/smack}_ prefix --- Makefile.am | 8 +- src/core/condition.c | 4 +- src/core/execute.c| 2 +- src/core/main.c

Re: [systemd-devel] start / stop daemon

2014-08-19 Thread Bonno Bloksma
Hi, [] I wonder if the people developing systemd are paying attention to a development in de Windows environment where the latest thing is that de service can report back that it is indeed still trying to stop and not just hung or not reporting back. Windows will now kill a service