Re: [systemd-devel] [PATCH] bus-proxy: cloning smack label

2014-12-16 Thread Karol Lewandowski
now, unfortunately... Cheers, -- Karol Lewandowski, Samsung RD Institute Poland ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [HEADSUP] Next systemd Hackfest takes place at FOSDEM 2015, January 30th, Brussels!

2014-12-03 Thread Karol Lewandowski
for extensive smack rework, etc.) See you in Brussels! Hope so. :) Thanks! -- Karol Lewandowski, Samsung RD Institute Poland ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd

Re: [systemd-devel] [PATCH 4/4] gdbus: Add basic kdbus tests

2014-01-03 Thread Karol Lewandowski
On 12/20/2013 04:23 PM, Yin Kangkai wrote: Hi! Sorry for late response, I've been out of office the last week(s). On 2013-11-21, 12:33 +0100, Karol Lewandowski wrote: +TESTS += + +* Build test binaries: + + cd gio/tests + make + +* Set variable to use custom library and to use

Re: [systemd-devel] [RFC] [PATCH 0/3] journal: Add deferred log processing to reduce synchonous IO overhead

2013-12-16 Thread Karol Lewandowski
On 12/14/2013 05:12 PM, Zbigniew Jędrzejewski-Szmek wrote: On Fri, Dec 13, 2013 at 10:16:16PM +0100, Karol Lewandowski wrote: One of the problems I see, though, is that no matter how deep I make the queue (`max_dgram_qlen') I still see process sleeping on send() way earlier that configured

Re: [systemd-devel] [RFC] [PATCH 0/3] journal: Add deferred log processing to reduce synchonous IO overhead

2013-12-16 Thread Karol Lewandowski
On 12/14/2013 04:47 AM, Lennart Poettering wrote: On Fri, 13.12.13 22:16, Karol Lewandowski (lmc...@gmail.com) wrote: On Fri, Dec 13, 2013 at 03:45:36PM +0100, Lennart Poettering wrote: On Fri, 13.12.13 12:46, Karol Lewandowski (k.lewando...@samsung.com) wrote: One of the problems I see

Re: [systemd-devel] [RFC] [PATCH 0/3] journal: Add deferred log processing to reduce synchonous IO overhead

2013-12-13 Thread Karol Lewandowski
On 12/12/2013 07:05 PM, Lennart Poettering wrote: On Thu, 12.12.13 17:42, Karol Lewandowski (lmc...@gmail.com) wrote: Hmm, but this wouldn't be any different from old syslog, right? I mean, old syslog also uses sendv() and recv() on AF_UNIX SOCK_DGRAM sockets... That's true, however, we

Re: [systemd-devel] [RFC] [PATCH 0/3] journal: Add deferred log processing to reduce synchonous IO overhead

2013-12-13 Thread Karol Lewandowski
On Fri, Dec 13, 2013 at 03:45:36PM +0100, Lennart Poettering wrote: On Fri, 13.12.13 12:46, Karol Lewandowski (k.lewando...@samsung.com) wrote: Well, are you suggesting that the AF_UNIX/SOCK_DGRAM code actually hands off the timeslice to the other side as soon as it queued something

[systemd-devel] [PATCH 2/3] journal: Try to pass log via /dev/shm to avoid waking up journal

2013-12-12 Thread Karol Lewandowski
Enabled by default for test purposes. --- src/journal/journal-send.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c index 281e154..9c4acc2 100644 --- a/src/journal/journal-send.c +++

[systemd-devel] [PATCH 3/3] journal-feeder: trivial test program to flood journald

2013-12-12 Thread Karol Lewandowski
This is not a systemd patch but simple test program I have used for measurements. --- journal-feeder.c | 64 1 file changed, 64 insertions(+) create mode 100644 journal-feeder.c diff --git a/journal-feeder.c b/journal-feeder.c new file

[systemd-devel] [RFC] [PATCH 0/3] journal: Add deferred log processing to reduce synchonous IO overhead

2013-12-12 Thread Karol Lewandowski
messages, but I think that gazzilions of debug messages that our apps produce could be send in non-synchronous and low-overhead manner. RFC. Thanks in advance! Karol Lewandowski (3): journald: Add deferred log processing logic journal: Try to pass log via /dev/shm to avoid waking up journal

Re: [systemd-devel] [RFC] [PATCH 0/3] journal: Add deferred log processing to reduce synchonous IO overhead

2013-12-12 Thread Karol Lewandowski
On Thu, Dec 12, 2013 at 03:51:05PM +0100, Lennart Poettering wrote: On Thu, 12.12.13 14:12, Karol Lewandowski (k.lewando...@samsung.com) wrote: (OP here from private email.) Folks, We are trying to apply journald as default (and only) logging system for our ARM-based handhelds

Re: [systemd-devel] [PATCH 0/7] kdbus related libsystemd-bus patches

2013-12-03 Thread Karol Lewandowski
On 11/15/2013 07:32 PM, Daniel Mack wrote: Hi! What's missing and still under development is a service that provides org.freedesktop.DBus on kdbus, and which translates the native interface to calls in libsystemd-bus. This almost works now, but there are some missing pieces in

Re: [systemd-devel] [PATCH 0/4] [RFC v1] gdbus: Preliminary kdbus-support patches

2013-11-22 Thread Karol Lewandowski
On 11/21/2013 08:28 PM, Colin Walters wrote: On Thu, 2013-11-21 at 16:35 +0100, Karol Lewandowski wrote: Truth is that gio guys already merged tizen's glib-kdbus modifications into their own devel branch without us even knowing, not to mention proposing it. If you're referring to https

Re: [systemd-devel] [PATCH 0/4] [RFC v1] gdbus: Preliminary kdbus-support patches

2013-11-22 Thread Karol Lewandowski
On 11/22/2013 01:32 PM, Matthias Clasen wrote: On Fri, Nov 22, 2013 at 7:03 AM, Karol Lewandowski k.lewando...@samsung.com mailto:k.lewando...@samsung.com wrote: On 11/21/2013 08:28 PM, Colin Walters wrote: On Thu, 2013-11-21 at 16:35 +0100, Karol Lewandowski wrote

[systemd-devel] [PATCH 4/4] gdbus: Add basic kdbus tests

2013-11-21 Thread Karol Lewandowski
--- configure.ac | 1 + gio/tests/Makefile.am | 13 +++ gio/tests/kdbus-test/README | 108 gio/tests/kdbus-test/gdbus-example-kdbus-client.c | 51 ++

[systemd-devel] [PATCH 1/4] gdbus: Import kdbus interface header

2013-11-21 Thread Karol Lewandowski
kdbus.h taken from git://github.com/gregkh/kdbus, commit cc5b49c0d. --- gio/kdbus.h | 436 1 file changed, 436 insertions(+) create mode 100644 gio/kdbus.h diff --git a/gio/kdbus.h b/gio/kdbus.h new file mode 100644 index

[systemd-devel] [PATCH 0/4] [RFC v1] gdbus: Preliminary kdbus-support patches

2013-11-21 Thread Karol Lewandowski
/upstream/dbus kdbus-dev We are aware that in future it will be probably systemd role to provide it (I've seen that Daniel Mack is already working on it). Karol Lewandowski (4): gdbus: Import kdbus interface header gdbus: Add preliminary implementation of kdbus support gdbus: Integrate kdbus

[systemd-devel] [PATCH 3/4] gdbus: Integrate kdbus into GDBus core

2013-11-21 Thread Karol Lewandowski
This commit hooks kdbus into GDBus and provides --enable-kdbus-transport configure switch. --- configure.ac | 10 +++ gio/Makefile.am | 4 + gio/gdbusaddress.c| 80 +++ gio/gdbusconnection.c | 20 - gio/gdbusprivate.c| 211

Re: [systemd-devel] [PATCH 1/2] RFC: journald: Allow to cache the cg_get_root_path

2013-07-18 Thread Karol Lewandowski
On 07/16/2013 03:26 AM, Lennart Poettering wrote: On Mon, 08.07.13 18:39, Karol Lewandowski (k.lewando...@samsung.com) wrote: According to my analysis /proc access is costly and it would be best to cache the result for later use. Difficulty comes from trying to keep cache up to date, though

Re: [systemd-devel] [RFC PATCH] condition: add ConditionFileContains=

2013-07-13 Thread Karol Lewandowski
On Fri, Jul 12, 2013 at 09:19:58PM +0200, Lennart Poettering wrote: On Fri, 12.07.13 20:42, Karol Lewandowski (k.lewando...@samsung.com) wrote: ... - software raid (md) status - /proc/mdstat Not sure what this is really doing... /etc/init.d/hdparm seems to be bailing out if md-raid

Re: [systemd-devel] [RFC PATCH] condition: add ConditionFileContains=

2013-07-12 Thread Karol Lewandowski
On 07/12/2013 03:40 PM, Kay Sievers wrote: On Fri, Jul 12, 2013 at 3:31 PM, Lennart Poettering lenn...@poettering.net wrote: ConditionFileContains=/sys/module/sn/parameters/enabled:1 To make this clear: I am not keen on adding this. I can see the usefulness, and the thing is still

[systemd-devel] [RFC PATCH] condition: add ConditionFileContains=

2013-07-11 Thread Karol Lewandowski
Add ability to test if given file contains specified value. File and expected value are given as one argument separated by colon (:), i.e. ConditionFileContains=/sys/module/sn/parameters/enabled:1 --- As above example suggests we use it to conditionally start service based on kernel module

Re: [systemd-devel] [PATCH 1/2] RFC: journald: Allow to cache the cg_get_root_path

2013-07-08 Thread Karol Lewandowski
On 06/27/2013 06:30 PM, Holger Hans Peter Freyther wrote: From: Holger Hans Peter Freyther hol...@moiji-mobile.com Allow to cache the cg_get_root_path and introduce a new method cg_pid_get_path_shifted_with_root that can use the cached version instead of allocating a new string. My 2c, I

Re: [systemd-devel] [PATCH] tmpfiles, man: Add xattr support to tmpfiles

2013-06-18 Thread Karol Lewandowski
2013/6/17 Lennart Poettering lenn...@poettering.net: On Mon, 17.06.13 16:27, Maciej Wereski (m.were...@partner.samsung.com) wrote: This patch makes it possible to set extended attributes on files created by tmpfiles. This can be especially used to set SMACK security labels on volatile files

[systemd-devel] [PATCH] Make it possible to disable smack separately from xattr support

2013-05-16 Thread Karol Lewandowski
Additionally, compile out rule loading if feature is disabled. --- configure.ac | 26 ++ src/core/smack-setup.c | 10 ++ src/core/socket.c |4 ++-- 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac

[systemd-devel] [PATCH] condition, man: Add support for ConditionSecurity=smack

2013-05-07 Thread Karol Lewandowski
Signed-off-by: Karol Lewandowski k.lewando...@samsung.com diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 49103da..256c813 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -984,8 +984,9 @@ may be used to check whether the given

Re: [systemd-devel] [PATCH] condition, man: Add support for ConditionSecurity=smack

2013-05-07 Thread Karol Lewandowski
On 05/07/2013 01:32 PM, Lennart Poettering wrote: On Tue, 07.05.13 13:21, Karol Lewandowski (k.lewando...@samsung.com) wrote: Heya, Hmm, does that directory always exist? Or only if AppArmor is actually runtime enabled? /sys/fs/smackfs is only registered when smack lsm is actually enabled