[systemd-devel] /dev/log tends to block on socket based activation ...

2014-08-06 Thread Hoyer, Marko (ADITG/SW2)
Good morning everyone, I'm playing around a bit with systemd's socket based activation of systemd-journald. My intention is to shift back in time the actual startup of systemd-journald.service to save resources (CPU) for early applications during startup. The respective socket is activated as

[systemd-devel] [PATCH] Fix off-by-one error in Missed X kernel messages warning

2014-08-06 Thread Eelco Dolstra
On receiving a message, kernel_seqnum is set to serial + 1. So subtracting 1 will cause messages like Missed 0 kernel messages, which should be Missed 1 kernel messages. --- src/journal/journald-kmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journald-kmsg.c

[systemd-devel] Work on adding polkit support to systemd1

2014-08-06 Thread Stef Walter
I've done initial work on adding polkit support to systemd1 DBus methods. You can see it here: https://github.com/stefwalter/systemd/commits/polkit-systemd1 Basic rules: * Read access for everyone * Methods that modifies running unit state is controlled by a polkit action:

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-08-06 Thread Colin Guthrie
Stef Walter wrote on 06/08/14 12:23: I've done initial work on adding polkit support to systemd1 DBus methods. Hmmm, I thought this was deliberately not included as it meant a circular dep on polkit when talking to the system that's used to start up polkitd itself... what happens if you try to

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-08-06 Thread Stef Walter
On 06.08.2014 14:23, Colin Guthrie wrote: Stef Walter wrote on 06/08/14 12:23: I've done initial work on adding polkit support to systemd1 DBus methods. Hmmm, I thought this was deliberately not included as it meant a circular dep on polkit when talking to the system that's used to start

[systemd-devel] [PATCH] core: mount only 4 partition in mount_setup_early()

2014-08-06 Thread Sangjung Woo
systemd doesn't mount smackfs if systemd was compiled without Smack support. However, the number of mount point entry in mount_setup_early() (i.e. N_EARLY_MOUNT) is 5 since smackfs is included. N_EARLY_MOUNT should be 4 because currently smackfs is optional. Signed-off-by: Sangjung Woo

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-08-06 Thread Colin Guthrie
Stef Walter wrote on 06/08/14 13:44: On 06.08.2014 14:23, Colin Guthrie wrote: Stef Walter wrote on 06/08/14 12:23: I've done initial work on adding polkit support to systemd1 DBus methods. Hmmm, I thought this was deliberately not included as it meant a circular dep on polkit when

[systemd-devel] [PATCH] sd-dhcp6-client: support custom DUIDs

2014-08-06 Thread Dan Williams
The caller may have an existing DUID that it wants to use, and may want to use some other DUID generation scheme than systemd's default DUID-EN. --- src/libsystemd-network/sd-dhcp6-client.c | 52 +++--- src/libsystemd-network/test-dhcp6-client.c | 4 +--

[systemd-devel] [RFC PATCH] sd-dhcp-client: support non-Ethernet hardware addresses

2014-08-06 Thread Dan Williams
Like Infiniband. See RFC 4390 section 2.1 for details on DHCP and Infiniband; chaddr is zeroed, hlen is set to 0, and htype is set to ARPHRD_INFINIBAND because IB hardware addresses are 20 bytes in length. --- NOTE: because of how dhcp_network_bind_raw_socket() does its packet filter, it's not

Re: [systemd-devel] [PATCH] Fix compilation under clang/LLVM

2014-08-06 Thread Evangelos Foutras
The error: non-const static data member must be initialized out of line can be fixed by declaring the _a and _b variables in MAX() as const. Then only the following error remains: statement expression not allowed at file scope I don't know how this could be fixed and it might be

[systemd-devel] systemd-journald doesn't follow max datagram length when forwarding messages to syslog

2014-08-06 Thread Umut Tezduyar Lindskog
Hi, journald fails to forward messages to syslog when it is using Server-syslog_fd even before the limit of /proc/sys/net/unix/max_dgram_qlen is reached. For this experiment, 1) I have made sure /proc/sys/net/unix/max_dgram_qlen is set to before syslog.socket is created. 2) Replaced