[systemd-devel] Unit reported as failed despite exit code from SuccessExitStatus

2015-04-16 Thread Nikolaus Rath
Hello, I don't quite understand this: $ systemctl --user status autocommit-org.service ● autocommit-org.service - Auto-commits changes to orgmode files. Loaded: loaded (/home/nikratio/.config/systemd/user/autocommit-org.service; static) Active: inactive (dead) since Wed 2015-04-15

[systemd-devel] black screen on startx exit

2015-04-16 Thread Felix Miata
I asked the following on freedesktop list a month ago and got no response. As there was quite some time between this showing up in Fedora and Tumbleweed, and Tumbleweed only lately upgraded systemd from 210 to 219, it looks like systemd could be playing at least some part in this. I first noticed

[systemd-devel] Looping too fast. Throttling execution a little

2015-04-16 Thread Florian Bruhin
Hi, I've just seen a bug happen similiar to [1] and [2]. My machine was out of memory (and qemu launched via libvirt was killed by the OOM killer), and since then I got Cannot use systemctl after heavy swapping a lot in my journal. strace'ing PID 1 showed this repeating pattern:

Re: [systemd-devel] CAD often useless

2015-04-16 Thread Lennart Poettering
On Wed, 15.04.15 14:48, Felix Miata (mrma...@earthlink.net) wrote: Zbigniew Jędrzejewski-Szmek composed on 2015-04-15 18:11 (UTC): On Wed, Apr 15, 2015 at 13:31:38 -0400, Felix Miata wrote: This isn't the first time or the only system. This particular one is an old Athlon booted to F22

Re: [systemd-devel] Unit reported as failed despite exit code from SuccessExitStatus

2015-04-16 Thread Lennart Poettering
On Wed, 15.04.15 22:45, Nikolaus Rath (nikol...@rath.org) wrote: Hello, I don't quite understand this: $ systemctl --user status autocommit-org.service ● autocommit-org.service - Auto-commits changes to orgmode files. Loaded: loaded

Re: [systemd-devel] CAD often useless

2015-04-16 Thread Lennart Poettering
On Thu, 16.04.15 07:55, Andrei Borzenkov (arvidj...@gmail.com) wrote: This isn't the first time or the only system. This particular one is an old Athlon booted to F22 just updated last night. In order to try some follow-up on a bug, I booted with drm.debug=14 log_buf_len=16M on

[systemd-devel] [PATCH] cryptsetup: Implement offset and skip options

2015-04-16 Thread Martin Pitt
Hello all, we get bug reports that the switch to systemd destroyed the underlying partitions of encrypted swap partitions which were using offset=. As this is silently ignored right now, the cryptsetup plain device always starts at the beginning of the device, deleting everything which was before

Re: [systemd-devel] black screen on startx exit

2015-04-16 Thread Lennart Poettering
On Thu, 16.04.15 05:43, Felix Miata (mrma...@earthlink.net) wrote: I asked the following on freedesktop list a month ago and got no response. As there was quite some time between this showing up in Fedora and Tumbleweed, and Tumbleweed only lately upgraded systemd from 210 to 219, it looks

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Tom Gundersen
Hi Andy, On Thu, Apr 16, 2015 at 2:55 AM, Andy Lutomirski l...@amacapital.net wrote: Yesterday, I discovered SD_BUS_VTABLE_CAPABILITY. Are there any examples in which it does anything? Please note that you need to be using kdbus to get any capabilities transported, so in dbus1 this does

Re: [systemd-devel] CAD often useless

2015-04-16 Thread Lennart Poettering
On Wed, 15.04.15 18:29, Felix Miata (mrma...@earthlink.net) wrote: Felix Miata composed on 2015-04-15 14:48 (UTC-0400): Zbigniew Jędrzejewski-Szmek composed on 2015-04-15 18:11 (UTC): On Wed, Apr 15, 2015 at 13:31:38 -0400, Felix Miata wrote: This isn't the first time or the only

Re: [systemd-devel] [GitHub] Patchset imported to github

2015-04-16 Thread Tomasz Torcz
On Thu, Apr 16, 2015 at 01:17:13PM -, systemd github import bot wrote: Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:20150416115501.GB3890%40piware.de -- Generated by https://github.com/haraldh/mail2git Are

Re: [systemd-devel] [GitHub] Patchset imported to github

2015-04-16 Thread Harald Hoyer
Am 16.04.2015 um 16:28 schrieb Tomasz Torcz: On Thu, Apr 16, 2015 at 01:17:13PM -, systemd github import bot wrote: Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:20150416115501.GB3890%40piware.de -- Generated by

[systemd-devel] [GitHub] Patchset imported to github

2015-04-16 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1428923628-21315-1-git-send-email-alban%40endocode.com -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing

[systemd-devel] [GitHub] Patchset imported to github

2015-04-16 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1428947219-26176-1-git-send-email-lkundrak%40v3.sk -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing

[systemd-devel] [GitHub] Patchset imported to github

2015-04-16 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:20150416115501.GB3890%40piware.de -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing list

[systemd-devel] [GitHub] Patchset imported to github

2015-04-16 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1429041708-32268-1-git-send-email-m.olbrich%40pengutronix.de -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Andy Lutomirski
On Thu, Apr 16, 2015 at 3:23 AM, Tom Gundersen t...@jklm.no wrote: Hi Andy, On Thu, Apr 16, 2015 at 2:55 AM, Andy Lutomirski l...@amacapital.net wrote: Yesterday, I discovered SD_BUS_VTABLE_CAPABILITY. Are there any examples in which it does anything? Please note that you need to be using

[systemd-devel] Problem with intermediate target

2015-04-16 Thread Christoph Pleger
Hello, I wrote: Sounds like you want to create intermediate.target, change default.target to point at it, boot all the way up to intermediate.target, and at that point isolate or start multi-user.target. I chose that solution, because from all possible solutions for the desired boot

[systemd-devel] Failed to create directory or subvolume /var/lib/machines: Invalid argument

2015-04-16 Thread Andrey Wagin
Hello Lennart, I read the v218-283-gd7b8eec commit and found that you expected that BTRFS_IOC_SUBVOL_CREATE returns ENOTTY if sub-volumes are not supported. But in the compat-mode this ioctl returns EINVAL. For example: ext4_compat_ioctl returns ENOIOCTLCMD, then vfs_ioctl() convert it into

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Lennart Poettering
On Thu, 16.04.15 07:52, Andy Lutomirski (l...@amacapital.net) wrote: I'm looking at sd_bus_query_sender_privilege, which does: r = sd_bus_query_sender_creds(call, SD_BUS_CREDS_UID|SD_BUS_CREDS_EUID|SD_BUS_CREDS_EFFECTIVE_CAPS, creds); That, in turn, does: if (!c || !(c-mask

Re: [systemd-devel] [PATCH] option to ignore ENOMEDIUM in blkid

2015-04-16 Thread Colin Guthrie
Hans Scholze wrote on 19/02/15 07:51: On Tue, Feb 17, 2015 at 12:06 AM, Oliver Neukum oneu...@suse.de wrote: On Mon, 2015-02-16 at 14:52 -0800, Hans Scholze wrote: Hi, I'm not sure if this is considered a problem but I noticed some spurious error messages during boot. The source appears

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Andy Lutomirski
On Thu, Apr 16, 2015 at 8:59 AM, Lennart Poettering lenn...@poettering.net wrote: On Thu, 16.04.15 07:52, Andy Lutomirski (l...@amacapital.net) wrote: I'm looking at sd_bus_query_sender_privilege, which does: r = sd_bus_query_sender_creds(call,

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Tom Gundersen
On Thu, Apr 16, 2015 at 4:52 PM, Andy Lutomirski l...@amacapital.net wrote: Unshare your user namespace, set things up right, and systemd or any other server will see you as having all capabilities. You've fixed that in kdbus, but you haven't (and probably can't!) fix it in the legacy code,

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Andy Lutomirski
On Thu, Apr 16, 2015 at 9:43 AM, Tom Gundersen t...@jklm.no wrote: On Thu, Apr 16, 2015 at 4:52 PM, Andy Lutomirski l...@amacapital.net wrote: Unshare your user namespace, set things up right, and systemd or any other server will see you as having all capabilities. You've fixed that in kdbus,

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Andy Lutomirski
On Thu, Apr 16, 2015 at 10:43 AM, Tom Gundersen t...@jklm.no wrote: On Thu, Apr 16, 2015 at 5:57 PM, Andy Lutomirski l...@amacapital.net wrote: We have several uses of this, see my mail to Jiri regarding CAP_SYS_BOOT for instance: https://lkml.org/lkml/2015/4/16/219 I read that, but I

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Andy Lutomirski
On Thu, Apr 16, 2015 at 10:30 AM, Lennart Poettering lenn...@poettering.net wrote: On Thu, 16.04.15 09:53, Andy Lutomirski (l...@amacapital.net) wrote: It's a noop, unless people OR in SD_BUS_CREDS_AUGMENT into the flags of creds they want. Doing this basically voids your warranty: it means

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Lennart Poettering
On Thu, 16.04.15 09:53, Andy Lutomirski (l...@amacapital.net) wrote: It's a noop, unless people OR in SD_BUS_CREDS_AUGMENT into the flags of creds they want. Doing this basically voids your warranty: it means that the creds data shall be augmented with data from /proc, which are good

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Tom Gundersen
On Thu, Apr 16, 2015 at 5:57 PM, Andy Lutomirski l...@amacapital.net wrote: We have several uses of this, see my mail to Jiri regarding CAP_SYS_BOOT for instance: https://lkml.org/lkml/2015/4/16/219 I read that, but I disagree with you. CAP_SYS_BOOT is the privilege to directly

[systemd-devel] [PATCH v2] cryptsetup: Implement offset and skip options

2015-04-16 Thread Martin Pitt
Hello again, Martin Pitt [2015-04-16 6:55 -0500]: This simple patch adds offset=. While I was at it I also added skip=. I attached my script for testing this to the fd.o bug. Zbigniew reviewed it on https://bugs.freedesktop.org/show_bug.cgi?id=87717 , thanks! This updated patch makes

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Cameron Norman
On Thu, Apr 16, 2015 at 9:43 AM, Tom Gundersen t...@jklm.no wrote: On Thu, Apr 16, 2015 at 4:52 PM, Andy Lutomirski l...@amacapital.net wrote: The ratio of complexity of capability code the kdbus folks have already written (hundreds of lines across multiple files) to its utility (very near

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Andy Lutomirski
On Thu, Apr 16, 2015 at 11:23 AM, Lennart Poettering lenn...@poettering.net wrote: On Thu, 16.04.15 10:52, Andy Lutomirski (l...@amacapital.net) wrote: It would be very helpful if you could go into details on why you think more care is needed here than for other things. Is there anything

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Colin Walters
On Thu, Apr 16, 2015, at 02:23 PM, Lennart Poettering wrote: Now, to put together a more complex scenario for you: consider a small web UI that can be used to set the system time. It should realy run at minimal privileges, after all it has a surface to the web. Hence you write it as daemon,

[systemd-devel] udev leaves dangling symlinks

2015-04-16 Thread Mantas Mikulėnas
So recently I noticed that udev no longer deletes /dev symlinks for removed devices, leaving quite a few dangling links over time (and greatly confusing udisks as a side effect). This was broken by: commit 3c0bab4aaf70b2383aa4cbabf6059c48744e8960 Author: Tom Gundersen t...@jklm.no Date: Fri Mar

Re: [systemd-devel] Unit reported as failed despite exit code from SuccessExitStatus

2015-04-16 Thread Nikolaus Rath
On Apr 16 2015, Lennart Poettering lenn...@poettering.net wrote: On Wed, 15.04.15 22:45, Nikolaus Rath (nikol...@rath.org) wrote: I don't quite understand this: $ systemctl --user status autocommit-org.service ● autocommit-org.service - Auto-commits changes to orgmode files. Loaded:

Re: [systemd-devel] Check if systems is container in systemd-remount-fs.service

2015-04-16 Thread Peter Paule
Excerpts from Lennart Poettering's message of 2015-04-08 23:55:31 +0200: On Tue, 17.03.15 10:54, Peter Paule (systemd-de...@fedux.org) wrote: Hi, does it make sense to check if the system is started as a container in systemd-remount-fs.service and only start the service if the system

[systemd-devel] systemd-stable repo missing some tags

2015-04-16 Thread Steven Noonan
http://cgit.freedesktop.org/systemd/systemd-stable/ The last tag in the repo is v215. Can someone push the v216 through v219? - Steven ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] [PATCH v2] cryptsetup: Implement offset and skip options

2015-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Apr 16, 2015 at 02:56:39PM -0500, Martin Pitt wrote: +} else if (startswith(option, offset=)) { + +if (safe_atou64(option+7, arg_offset) 0) { +log_error(offset= parse failure, refusing.); +return -EINVAL; +

Re: [systemd-devel] [PATCH] option to ignore ENOMEDIUM in blkid

2015-04-16 Thread Hans Scholze
I have been running Arch package version 218-2 with the patches applied and have not noticed any problems. Haven't tried applying them to anything newer though. Hans On Thu, Apr 16, 2015 at 9:04 AM, Colin Guthrie co...@mageia.org wrote: Hans Scholze wrote on 19/02/15 07:51: On Tue, Feb 17,

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-16 Thread Lennart Poettering
On Thu, 16.04.15 10:52, Andy Lutomirski (l...@amacapital.net) wrote: It would be very helpful if you could go into details on why you think more care is needed here than for other things. Is there anything non-trivial going on here that I'm missing? The way capabilites are exposed