Re: [systemd-devel] Why don't remote file systems wait for network-online.target?

2015-03-10 Thread Christian Seiler
Am 2015-03-10 12:40, schrieb Martin Pitt: we got a report [1] that NFS fstab mounts (sometimes) aren't being mounted at boot as the network is still down: | mount[866]: mount.nfs: Network is unreachable | systemd[1]: mnt-server.mount mount process exited, code=exited status=32 | systemd[1]:

Re: [systemd-devel] Why don't remote file systems wait for network-online.target?

2015-03-10 Thread Andrei Borzenkov
В Tue, 10 Mar 2015 12:40:40 +0100 Martin Pitt martin.p...@ubuntu.com пишет: Hello all, we got a report [1] that NFS fstab mounts (sometimes) aren't being mounted at boot as the network is still down: | mount[866]: mount.nfs: Network is unreachable | systemd[1]: mnt-server.mount mount

[systemd-devel] [PATCH 1/5] fsckd: Don't use strjoina on gettext() call

2015-03-10 Thread Didier Roche
Le 09/03/2015 19:11, Lennart Poettering a écrit : So I fixed a number of issues, but there are some bits I am not really keen to fix, mostly because it's hard for me to test as I don't use a file system that still requires fsck... - /dev/console needs to be opened only on demand but not

Re: [systemd-devel] [PATCH] path_is_mount_point: handle false positive on some fs

2015-03-10 Thread Karel Zak
On Mon, Mar 09, 2015 at 11:27:09AM +0100, Didier Roche wrote: Also we could on the longer term maybe getting the whole path_is_mount_point() logic into libmount from util-linux, using mnt_get_mountpoint() (but this one only use st_dev comparison presently)? mnt_table_find_mountpoint()

Re: [systemd-devel] [PATCH] add REMOTE_ADDR and REMOTE_PORT for Accept=yes

2015-03-10 Thread Ronny Chevalier
2015-03-10 12:41 GMT+01:00 Shawn Landden sh...@churchofgit.com: --- TODO | 2 - man/systemd.socket.xml | 7 ++- src/core/service.c | 41 - src/libsystemd/sd-resolve/test-resolve.c | 2 +-

[systemd-devel] [PATCH 2/5] fsckd: Fix some error return values

2015-03-10 Thread Didier Roche
From 689c3c1808bd286ed96d36e4fc7ff875e2477697 Mon Sep 17 00:00:00 2001 From: Didier Roche didro...@ubuntu.com Date: Tue, 10 Mar 2015 09:01:11 +0100 Subject: [PATCH 2/5] fsckd: Fix some error return values Change slightly recent changes introduced by 0b02c7c36dbb6f2ec7434eb8d18e0410ee1cc74c and

[systemd-devel] Why don't remote file systems wait for network-online.target?

2015-03-10 Thread Martin Pitt
Hello all, we got a report [1] that NFS fstab mounts (sometimes) aren't being mounted at boot as the network is still down: | mount[866]: mount.nfs: Network is unreachable | systemd[1]: mnt-server.mount mount process exited, code=exited status=32 | systemd[1]: Failed to mount /mnt/server. |

[systemd-devel] [PATCH 3/5] fsckd: Reduce the SAK window when writing to console

2015-03-10 Thread Didier Roche
From 3e877d1d493476f63fa6af7997914f93b50218bd Mon Sep 17 00:00:00 2001 From: Didier Roche didro...@ubuntu.com Date: Tue, 10 Mar 2015 09:57:38 +0100 Subject: [PATCH 3/5] fsckd: Reduce the SAK window when writing to console We don't want to keep /dev/console open all the time, but only open it

[systemd-devel] [PATCH 5/5] fsckd: clean up log messages

2015-03-10 Thread Didier Roche
From 32c1aec9bddf21b1380eb8f7b801468d3875e2a9 Mon Sep 17 00:00:00 2001 From: Didier Roche didro...@ubuntu.com Date: Tue, 10 Mar 2015 10:18:00 +0100 Subject: [PATCH 5/5] fsckd: clean up log messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoid

[systemd-devel] [PATCH 4/5] fsckd: check if plymouth is running before attempting connection

2015-03-10 Thread Didier Roche
From fd28f24d9eaa16737cbc8f33b8fe1a806dc291b1 Mon Sep 17 00:00:00 2001 From: Didier Roche didro...@ubuntu.com Date: Tue, 10 Mar 2015 10:05:19 +0100 Subject: [PATCH 4/5] fsckd: check if plymouth is running before attempting connection --- src/fsckd/fsckd.c | 6 ++ 1 file changed, 6

[systemd-devel] [PATCH] add REMOTE_ADDR and REMOTE_PORT for Accept=yes

2015-03-10 Thread Shawn Landden
--- TODO | 2 - man/systemd.socket.xml | 7 ++- src/core/service.c | 41 - src/libsystemd/sd-resolve/test-resolve.c | 2 +- src/shared/socket-util.c | 76 +++-

[systemd-devel] Specification for org.freedesktop.DisplayManager DBus API?

2015-03-10 Thread Mathieu Parent
(Note 1: please CC me) (Note 2: I have CC-ed two contacts from gnome-shell, one from gdm, one from lightdm, and the system-logind ML) Hello, There are currently several ways to ask the DM to switch to the login screen: - gdm3 uses org.gnome.DisplayManager.LocalDisplayFactory

Re: [systemd-devel] Real-time permission affected by root login on other tty

2015-03-10 Thread Lars Christensen
On Sun, Mar 8, 2015 at 11:27 PM, Lennart Poettering lenn...@poettering.net wrote: Most likely you have RT cgroup scheduling enabled in the kernel, and some unit uses CPUShares=, CPUAccounting=, CPUQuota*= in the unit file. If a unit does that this will move the unit's cgroup into the cpu

Re: [systemd-devel] Why don't remote file systems wait for network-online.target?

2015-03-10 Thread Michael Biebl
2015-03-10 12:40 GMT+01:00 Martin Pitt martin.p...@ubuntu.com: Hello all, we got a report [1] that NFS fstab mounts (sometimes) aren't being mounted at boot as the network is still down: | mount[866]: mount.nfs: Network is unreachable | systemd[1]: mnt-server.mount mount process exited,

Re: [systemd-devel] [PATCH] add REMOTE_ADDR and REMOTE_PORT for Accept=yes

2015-03-10 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Mar 10, 2015 at 01:21:27PM +0100, Ronny Chevalier wrote: 2015-03-10 12:41 GMT+01:00 Shawn Landden sh...@churchofgit.com: --- TODO | 2 - man/systemd.socket.xml | 7 ++- src/core/service.c | 41

Re: [systemd-devel] Why don't remote file systems wait for network-online.target?

2015-03-10 Thread Martin Pitt
Hey Andrei, Andrei Borzenkov [2015-03-10 15:12 +0300]: Dependency on network-online.target is supposed to be implicitly added (oh, those implicit undocumented dependencies ...) src/core/mount.c:mount_add_default_dependencies() Ah, thanks for pointing out. Indeed, I was confused by them not

[systemd-devel] [PATCH] fix strict aliasing issue in src/libsystemd-network/sd-dhcp-client.c

2015-03-10 Thread Shawn Landden
--- src/libsystemd-network/sd-dhcp-client.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c index 4224e01..a477ccc 100644 --- a/src/libsystemd-network/sd-dhcp-client.c +++

Re: [systemd-devel] [PATCH] [PATCH v2] util: add rename_noreplace

2015-03-10 Thread Lennart Poettering
On Tue, 10.03.15 17:34, Alban Crequy (alban.cre...@gmail.com) wrote: -r = renameat2(AT_FDCWD, i-temp_path, AT_FDCWD, i-final_path, RENAME_NOREPLACE); +r = rename_noreplace(AT_FDCWD, i-temp_path, AT_FDCWD, i-final_path); if (r 0) {

Re: [systemd-devel] [PATCH 2/5] fsckd: Fix some error return values

2015-03-10 Thread Didier Roche
Le 10/03/2015 11:41, Lennart Poettering a écrit : On Tue, 10.03.15 11:33, Didier Roche (didro...@ubuntu.com) wrote: diff --git a/src/fsckd/fsckd.c b/src/fsckd/fsckd.c index 3fc923b..9393379 100644 --- a/src/fsckd/fsckd.c +++ b/src/fsckd/fsckd.c @@ -220,7 +220,7 @@ static int

[systemd-devel] [PATCH] [PATCH v3] util: add rename_noreplace

2015-03-10 Thread Alban Crequy
From: Alban Crequy al...@endocode.com renameat2() exists since Linux 3.15 but btrfs support for the flag RENAME_NOREPLACE was added later. This patch implements a fallback when renameat2() returns EINVAL. EINVAL is the error returned when the filesystem does not support one of the flags. ---

Re: [systemd-devel] [PATCH] path_is_mount_point: handle false positive on some fs

2015-03-10 Thread Lennart Poettering
On Tue, 10.03.15 18:01, Didier Roche (didro...@ubuntu.com) wrote: The context is bug https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1411140, where systemd-machine-id-commit unit is entering in failed state (the binary handles gracefully the fact that it can't unmount the file) on a

Re: [systemd-devel] [PATCH V3] path-util.c: fix path_is_mount_point() for symlinks

2015-03-10 Thread Lennart Poettering
On Tue, 10.03.15 17:29, Lennart Poettering (lenn...@poettering.net) wrote: On Tue, 10.03.15 17:26, Lennart Poettering (lenn...@poettering.net) wrote: On Fri, 20.02.15 13:25, har...@redhat.com (har...@redhat.com) wrote: Sorry for the late review! --- a/src/shared/path-util.c +++

Re: [systemd-devel] [PATCH 4/5] fsckd: check if plymouth is running before attempting connection

2015-03-10 Thread Didier Roche
Le 10/03/2015 11:44, Lennart Poettering a écrit : On Tue, 10.03.15 11:34, Didier Roche (didro...@ubuntu.com) wrote: I think it would make more sense to return 0 when ply isn't running, and 1 if it is, no? Did this in the attached patch. Due to this, I needed then to return 1 even if we did

Re: [systemd-devel] [systemd-commits] 9 commits - configure.ac .gitignore Makefile.am Makefile-man.am man/systemd-fsckd.service.xml man/systemd-f...@.service.xml po/de.po po/el.po po/fr.po po/hu.po po

2015-03-10 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Mar 10, 2015 at 11:49:05AM +0100, Lennart Poettering wrote: On Tue, 10.03.15 08:21, Martin Pitt (martin.p...@ubuntu.com) wrote: Please, be more careful with complex code like this, this needs more rounds of review before something like this can be merged... Okay. It went

Re: [systemd-devel] How to factory reset?

2015-03-10 Thread Tobias Hunger
Hi Lennart, thanks for taking the time to answer! It is highly appreciated. On Tue, Mar 10, 2015 at 5:01 PM, Lennart Poettering lenn...@poettering.net wrote: So you want not just factory reset, but actually a stateless system, where every single boot is basically a factory reset? Yes, but I

Re: [systemd-devel] How to factory reset?

2015-03-10 Thread Lennart Poettering
On Tue, 10.03.15 18:13, Tobias Hunger (tobias.hun...@gmail.com) wrote: So you want not just factory reset, but actually a stateless system, where every single boot is basically a factory reset? Yes, but I do have a state that I want to be applied by default at all times. Well, you want

Re: [systemd-devel] [PATCH 1/5] fsckd: Don't use strjoina on gettext() call

2015-03-10 Thread Didier Roche
Le 10/03/2015 11:36, Lennart Poettering a écrit : On Tue, 10.03.15 11:32, Didier Roche (didro...@ubuntu.com) wrote: static int manager_send_plymouth_message(Manager *m, const char *message) { -const char *plymouth_cancel_message = NULL; +_cleanup_free_ const char

Re: [systemd-devel] [PATCH] [PATCH v2] util: add rename_noreplace

2015-03-10 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Mar 10, 2015 at 05:34:07PM +0100, Alban Crequy wrote: From: Alban Crequy al...@endocode.com renameat2() exists since Linux 3.15 but btrfs support for the flag RENAME_NOREPLACE was added later. This patch implements a fallback when renameat2() returns EINVAL. EINVAL is the error

Re: [systemd-devel] [PATCH] [PATCH v3] util: add rename_noreplace

2015-03-10 Thread Lennart Poettering
On Tue, 10.03.15 18:15, Alban Crequy (alban.cre...@gmail.com) wrote: From: Alban Crequy al...@endocode.com renameat2() exists since Linux 3.15 but btrfs support for the flag RENAME_NOREPLACE was added later. This patch implements a fallback when renameat2() returns EINVAL. EINVAL is the

[systemd-devel] [PATCH] fix strict aliasing violations in src/udev/udev-builtin-usb_id.c

2015-03-10 Thread Shawn Landden
also switch to inttypes.h --- src/udev/udev-builtin-usb_id.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/udev/udev-builtin-usb_id.c b/src/udev/udev-builtin-usb_id.c index ab0d96e..b42b32e 100644 --- a/src/udev/udev-builtin-usb_id.c

[systemd-devel] [PATCH] build: generate pkg-config files during configure

2015-03-10 Thread Jeff Waugh
Generate pkg-config files during configure as God (Havoc) intended. This fixes all of systemd's pkg-config files when cross-compiling (and possibly other use cases). (Note: I might've missed some things to tidy up in Makefile.am, but not 100% sure.) Signed-off-by: Jeff Waugh j...@bethesignal.org

[systemd-devel] [PATCH] fix compiler warning

2015-03-10 Thread Shawn Landden
warning: pointer/integer type mismatch in conditional expression --- src/shared/socket-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c index 5820279..73e1177 100644 --- a/src/shared/socket-util.c +++

[systemd-devel] [PATCH] fix strict aliasing issues in src/udev/udev-ctrl.c

2015-03-10 Thread Shawn Landden
it is ironic that The only purpose of this structure is to cast the structure pointer passed in addr in order to avoid compiler warnings. See EXAMPLE below. from bind(2) --- src/udev/udev-ctrl.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git

Re: [systemd-devel] sd_journal_add_match if not using the form of FIELD=value

2015-03-10 Thread Lennart Poettering
On Mon, 09.03.15 07:44, Mantas Mikulėnas (graw...@gmail.com) wrote: On Mon, Mar 9, 2015 at 12:53 AM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 06.03.15 21:28, Chris Morgan (chmor...@gmail.com) wrote:

Re: [systemd-devel] logind: lid switch action not executed on small open/close delays

2015-03-10 Thread Alad Wenter
On 03/06/2015 02:47 PM, David Herrmann wrote: Hi On Wed, Jan 28, 2015 at 8:31 PM, Lennart Poettering lenn...@poettering.net wrote: On Sat, 17.01.15 18:36, David Herrmann (dh.herrm...@gmail.com) wrote: I think it's reasonable to allow setting the base-timeout in /etc/systemd/logind.conf, but

Re: [systemd-devel] [PATCH V3] path-util.c: fix path_is_mount_point() for symlinks

2015-03-10 Thread Lennart Poettering
On Fri, 20.02.15 13:25, har...@redhat.com (har...@redhat.com) wrote: Sorry for the late review! --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -456,9 +456,9 @@ int path_is_mount_point(const char *t, bool allow_symlink) { union file_handle_union h =

[systemd-devel] [PATCHv3] bus-proxy: add support for GetConnectionCredentials method

2015-03-10 Thread Lukasz Skalski
GetConnectionCredentials method was added to dbus-1 specification more than one year ago. This method should return [...] as many credentials as possible for the process connected to the server, but at this moment only UnixUserID, LinuxSecurityLabel and ProcessID are defined by the specification.

Re: [systemd-devel] tmpfiles.d specifier support on argument when operating on files

2015-03-10 Thread Lennart Poettering
On Wed, 18.02.15 18:17, Cristian Rodríguez (crrodrig...@opensuse.org) wrote: From ee8e4f440def745b6f0655b897e65d48321e46c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= crrodrig...@opensuse.org Date: Wed, 18 Feb 2015 18:09:16 -0300 Subject: [PATCH] tmpfiles: implement

[systemd-devel] [PATCH] util: add rename_noreplace

2015-03-10 Thread Alban Crequy
From: Alban Crequy al...@endocode.com renameat2() exists since Linux 3.15 but btrfs support for the flag RENAME_NOREPLACE was added later. This patch implements a fallback when renameat2() returns EINVAL. EINVAL is the error returned when the filesystem does not support one of the flags. ---

Re: [systemd-devel] [PATCH v2] tmpfiles: port to unquote_many_words()

2015-03-10 Thread Lennart Poettering
On Mon, 09.03.15 15:11, daurnimator (q...@daurnimator.com) wrote: Applied! Thanks! (Usually we prefer commits with proper real name attributions, though...) --- TODO| 2 -- man/tmpfiles.d.xml | 2 ++ src/tmpfiles/tmpfiles.c | 21 +++-- 3 files

Re: [systemd-devel] [systemd-commits] 9 commits - configure.ac .gitignore Makefile.am Makefile-man.am man/systemd-fsckd.service.xml man/systemd-f...@.service.xml po/de.po po/el.po po/fr.po po/hu.po po

2015-03-10 Thread Lennart Poettering
On Tue, 10.03.15 08:33, Martin Pitt (martin.p...@ubuntu.com) wrote: Lennart Poettering [2015-03-09 19:11 +0100]: Anyway, please look into fixing this, I am kinda relying on patches for this, as I don't use this myself. Fedora isn't set up for it, nor do I use a file system that still

Re: [systemd-devel] [PATCH 4/5] fsckd: check if plymouth is running before attempting connection

2015-03-10 Thread Lennart Poettering
On Tue, 10.03.15 11:34, Didier Roche (didro...@ubuntu.com) wrote: I think it would make more sense to return 0 when ply isn't running, and 1 if it is, no? From fd28f24d9eaa16737cbc8f33b8fe1a806dc291b1 Mon Sep 17 00:00:00 2001 From: Didier Roche didro...@ubuntu.com Date: Tue, 10 Mar 2015

Re: [systemd-devel] [PATCH] add REMOTE_ADDR and REMOTE_PORT for Accept=yes

2015-03-10 Thread Lennart Poettering
On Mon, 09.03.15 23:18, Ronny Chevalier (chevalier.ro...@gmail.com) wrote: +if (!(our_env[n_env++] = strappend(REMOTE_ADDR=, addr))) { In newer code we try to avoid making assignments and doing if checks in the same line. Taking this out would be pretty

Re: [systemd-devel] [PATCH 2/5] fsckd: Fix some error return values

2015-03-10 Thread Lennart Poettering
On Tue, 10.03.15 11:33, Didier Roche (didro...@ubuntu.com) wrote: diff --git a/src/fsckd/fsckd.c b/src/fsckd/fsckd.c index 3fc923b..9393379 100644 --- a/src/fsckd/fsckd.c +++ b/src/fsckd/fsckd.c @@ -220,7 +220,7 @@ static int manager_connect_plymouth(Manager *m) { goto

Re: [systemd-devel] [PATCH] path_is_mount_point: handle false positive on some fs

2015-03-10 Thread Lennart Poettering
On Mon, 09.03.15 11:27, Didier Roche (didro...@ubuntu.com) wrote: However, some file systems (seems overlayfs at least) would report a major(st_dev) as 0 on directories and not on files. The current path_is_mount_point() fallback logic would thus reports that every files is a mount point. The

Re: [systemd-devel] [PATCH V3] path-util.c: fix path_is_mount_point() for symlinks

2015-03-10 Thread Lennart Poettering
On Tue, 10.03.15 17:26, Lennart Poettering (lenn...@poettering.net) wrote: On Fri, 20.02.15 13:25, har...@redhat.com (har...@redhat.com) wrote: Sorry for the late review! --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -456,9 +456,9 @@ int path_is_mount_point(const char

Re: [systemd-devel] How to factory reset?

2015-03-10 Thread Tobias Hunger
On Tue, Mar 10, 2015 at 6:38 PM, Lennart Poettering lenn...@poettering.net wrote: On Tue, 10.03.15 18:13, Tobias Hunger (tobias.hun...@gmail.com) wrote: So you want not just factory reset, but actually a stateless system, where every single boot is basically a factory reset? Yes, but I do

[systemd-devel] [PATCH 3/4] Update the man page of tmpfiles.d(5), to document the new h/H command.

2015-03-10 Thread Goffredo Baroncelli
Update the man page of tmpfiles.d(5), to document the new h/H command. --- man/tmpfiles.d.xml | 32 1 file changed, 32 insertions(+) diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml index 8815bf9..469deeb 100644 --- a/man/tmpfiles.d.xml +++

Re: [systemd-devel] [PATCH V2] Allow systemd-tmpfiles to set file/directory attributes

2015-03-10 Thread Goffredo Baroncelli
Please, forgot these patches: there is a bug inside. Sorry for the noise. BR G.Baroncelli On 2015-03-10 20:36, Goffredo Baroncelli wrote: Hi all, This set of patches add two new line types to the tmpfiles files format. These new types of line are 'h' and 'H' (the recursively version), and

[systemd-devel] [PATCH V3] Allow systemd-tmpfiles to set file/directory attributes

2015-03-10 Thread Goffredo Baroncelli
Hi all, This set of patches add two new line types to the tmpfiles files format. These new types of line are 'h' and 'H' (the recursively version), and allow to change the file/directory attributes, like chattr(1) does. One of the motivation of these patches is to get rid of the commit 11689d2a

Re: [systemd-devel] Deadlocks with reloading jobs which are part of current transaction

2015-03-10 Thread Uoti Urpala
On Wed, 2015-02-04 at 23:48 +0200, Uoti Urpala wrote: On Wed, 2015-02-04 at 21:57 +0100, Lennart Poettering wrote: currently being started. You are suggesting that the reload can suppressed when a start is already enqueued, but that's really not the case, because you first have to run

[systemd-devel] [PATCH 1/4] Add change_attr_fd()

2015-03-10 Thread Goffredo Baroncelli
Add change_attr_fd() function to modify the file/directory attribute. --- src/shared/util.c | 22 ++ src/shared/util.h | 1 + 2 files changed, 23 insertions(+) diff --git a/src/shared/util.c b/src/shared/util.c index ba035ca..56097ec 100644 --- a/src/shared/util.c +++

[systemd-devel] [PATCH V2] Allow systemd-tmpfiles to set file/directory attributes

2015-03-10 Thread Goffredo Baroncelli
Hi all, This set of patches add two new line types to the tmpfiles files format. These new types of line are 'h' and 'H' (the recursively version), and allow to change the file/directory attributes, like chattr(1) does. One of the motivation of these patches is to get rid of the commit 11689d2a

[systemd-devel] [PATCH 1/4] Add change_attr_fd()

2015-03-10 Thread Goffredo Baroncelli
Add change_attr_fd() function to modify the file/directory attribute. --- src/shared/util.c | 22 ++ src/shared/util.h | 1 + 2 files changed, 23 insertions(+) diff --git a/src/shared/util.c b/src/shared/util.c index ba035ca..56097ec 100644 --- a/src/shared/util.c +++

[systemd-devel] [PATCH 4/4] Add a new tmpfiles.d snippets to set the NOCOW the journal.

2015-03-10 Thread Goffredo Baroncelli
Add a new tmpfiles.d snippets to set the NOCOW attributes for the journal files. This allow better perfomance when the root file system is BTRFS. Pay attention that the NOCOW flags disables the checksum and prevent scrub to rebuild a corrupted journal. --- tmpfiles.d/journal-nocow.conf | 12

Re: [systemd-devel] [PATCH 1/3] Allow systemd-tmpfiles to set the file/directory attributes

2015-03-10 Thread Goffredo Baroncelli
On 2015-03-08 23:06, Lennart Poettering wrote: On Sun, 08.03.15 12:48, Goffredo Baroncelli (kreij...@libero.it) wrote: dev_t major_minor; +int attrib_value; +int attrib_mask; int appears to be a strange choice for a bitmask. The existing chattr_fd() and

[systemd-devel] [PATCH 2/4] Allow systemd-tmpfiles to set the file/directory attributes

2015-03-10 Thread Goffredo Baroncelli
Allow systemd-tmpfiles to set the file/directory attributes, like chattr(1) does. Two more commands are added: 'H' and 'h' to set the attributes, recursively and not. --- src/tmpfiles/tmpfiles.c | 140 1 file changed, 140 insertions(+) diff --git

Re: [systemd-devel] [systemd-commits] 9 commits - configure.ac .gitignore Makefile.am Makefile-man.am man/systemd-fsckd.service.xml man/systemd-f...@.service.xml po/de.po po/el.po po/fr.po po/hu.po po

2015-03-10 Thread Martin Pitt
Lennart Poettering [2015-03-09 19:11 +0100]: Anyway, please look into fixing this, I am kinda relying on patches for this, as I don't use this myself. Fedora isn't set up for it, nor do I use a file system that still requires fsck at boot... Yep, we'll fix those. But for the record, this can

Re: [systemd-devel] [systemd-commits] 9 commits - configure.ac .gitignore Makefile.am Makefile-man.am man/systemd-fsckd.service.xml man/systemd-f...@.service.xml po/de.po po/el.po po/fr.po po/hu.po po

2015-03-10 Thread Martin Pitt
Hey Lennart, Lennart Poettering [2015-03-09 18:39 +0100]: I looked in more detail at the fsckd code that was commited a few weeks ago, and I cannot say I liked what I saw. The code still has all kinds of issues, including memory corruptions, fd handling errors, and tons and tons of incorrect

Re: [systemd-devel] [systemd-commits] 9 commits - configure.ac .gitignore Makefile.am Makefile-man.am man/systemd-fsckd.service.xml man/systemd-f...@.service.xml po/de.po po/el.po po/fr.po po/hu.po po

2015-03-10 Thread Didier Roche
Le 10/03/2015 08:33, Martin Pitt a écrit : Lennart Poettering [2015-03-09 19:11 +0100]: Oh, and I am only realizing now that the whole thing doesn't do *at all* what we discussed. The idea was to invoke the actual fsck tools with their stdout connected directly to fsckd. Instead the old

Re: [systemd-devel] How to factory reset?

2015-03-10 Thread Tobias Hunger
On Tue, Mar 10, 2015 at 9:33 PM, Tobias Hunger tobias.hun...@gmail.com wrote: presets and machined ID are applied by PID 1, before it begins with starting any units, hence *really* early on. Note though that actually /etc/machine-id is used as flag for is /etc empty. If the file exists it is

Re: [systemd-devel] How to factory reset?

2015-03-10 Thread Chris Murphy
On Tue, Mar 10, 2015 at 11:13 AM, Tobias Hunger tobias.hun...@gmail.com wrote: Even if all filesystems are encrypted you could factory-reset random computers you have access to, simply by editing the bootloader configuration file usually found in the poorly protected EFI partition! If you're

Re: [systemd-devel] SELinux labels on unix sockets

2015-03-10 Thread Jan Synacek
Lennart Poettering lenn...@poettering.net writes: On Fri, 06.03.15 13:04, Jan Synáček (jsyna...@redhat.com) wrote: Hello, when systemd creates a socket file, it explicitly calls a selinux procedure to label it. I don't think that is needed, as the kernel does the right thing when the