Re: [systemd-devel] systemd unit file to remount /home /tmp /dev/shm /run with nosuid, nodev

2020-01-02 Thread Josh Triplett
t even without that, mount -o noexec does meaningfully improve security, and the trivial workaround no longer works. - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Robust getpid caching via MADV_WIPEONFORK?

2018-03-19 Thread Josh Triplett
programs can do such caching themselves without worrying about an unexpected fork(). I think only specialized library code would ever want to do this. Hopefully these numbers will help anyone looking to implement such caching in their own code. - Josh Triplett #include #include #include #i

Re: [systemd-devel] running systemd in a cgroup: future compatibility

2018-02-14 Thread Josh Snyder
eaving systemd > territory relatively easily. Just set those options to some slice > further down thre tree, and you could leave machined run inside of > systemd just fine without having to arrange anything outside of it... If the feature you describe existe

[systemd-devel] running systemd in a cgroup: future compatibility

2018-02-13 Thread Josh Snyder
underneath them appears to be in manager_setup_cgroup (src/core/cgroup.c:2033). My question for the list is what motivated adding this awesome feature to systemd in the first place, and (more importantly to me) is it likely to continue to exist in the future? Josh --- #!/bin/sh move_tasks() { cd

Re: [systemd-devel] ~/.local/bin , XDG, and environment variable overrides

2017-08-29 Thread Josh Triplett
On Tue, Aug 29, 2017 at 06:43:58PM +0200, Lennart Poettering wrote: > On Sa, 26.08.17 10:43, Josh Triplett (j...@joshtriplett.org) wrote: > > > systemd's file-hierarchy manpage > > <https://www.freedesktop.org/software/systemd/man/file-hierarchy.html> > > documents ~

[systemd-devel] ~/.local/bin , XDG, and environment variable overrides

2017-08-26 Thread Josh Triplett
al/bin to the XDG Base Directory specification itself? I'd be happy to write up an addition to the spec for that, and propose it on the appropriate list. - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedeskt

Re: [systemd-devel] Monitor path to commit to git

2016-04-08 Thread Josh Triplett
Lennart Poettering wrote: > inotify doesn't really provide such a feature, and fanotify is > crap. Leaving aside any other issues with fanotify, it doesn't seem to provide this feature either; "man fanotify" says "Fanotify monitoring of directories is not recursive: to monitor subdirectories

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Josh Triplett
On April 20, 2015 8:39:33 AM PDT, Lennart Poettering lenn...@poettering.net wrote: On Fri, 17.04.15 08:52, Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Apr 16, 2015 at 08:23:45PM +0200, Lennart Poettering wrote: Now, to put together a more complex scenario for you: consider a small

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-17 Thread Josh Triplett
for everyone to use sooner, and later on it could gain some additional features. - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-17 Thread josh
On Fri, Apr 17, 2015 at 06:00:04PM +0200, David Herrmann wrote: Hi On Fri, Apr 17, 2015 at 5:52 PM, Josh Triplett j...@joshtriplett.org wrote: On Thu, Apr 16, 2015 at 08:23:45PM +0200, Lennart Poettering wrote: Now, to put together a more complex scenario for you: consider a small web UI

Re: [systemd-devel] [PATCH] use dolt.m4 to speedup compilation

2015-03-05 Thread josh
many of the issues that motivated the creation of dolt in the first place. - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] use dolt.m4 to speedup compilation

2015-03-05 Thread josh
- 2.4.5? I have 2.4.5 here: make -j6, libtool real4m53.924s user11m4.323s sys 0m54.880s make -j6, dolt real1m58.653s user6m20.523s sys 0m28.920s Interesting. How easily can you try 2.4.2? - Josh Triplett ___ systemd

Re: [systemd-devel] [PATCH] cryptsetup: Do not warn If the key is /dev/*random

2015-02-03 Thread Josh Triplett
-readable device used for a key either. Some people have setups that use a USB device (e.g. /dev/sd* or /dev/disk/by-*/*) as a keyfile, and in that case, the file should *not* be world-readable. - Josh Triplett ___ systemd-devel mailing list systemd-devel

Re: [systemd-devel] dynamic uid allocation (was: [PATCH] loopback setup in unprivileged containers)

2015-02-03 Thread Josh Triplett
, this is the solution we want. - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH 0/5] Enhancements to libabc template project

2014-12-25 Thread Josh Triplett
On Thu, Dec 25, 2014 at 10:20:14PM +0100, Kay Sievers wrote: On Sat, Dec 6, 2014 at 11:46 PM, Josh Triplett j...@joshtriplett.org wrote: I went to use libabc as the basis for a new library, and found a few issues; rather than just correcting them in my own library, I'd like to push

Re: [systemd-devel] libabc, sub-objects, and reference counting

2014-12-08 Thread Josh Triplett
On Mon, Dec 08, 2014 at 05:09:17PM +0100, David Herrmann wrote: On Sun, Dec 7, 2014 at 2:39 AM, Josh Triplett j...@joshtriplett.org wrote: The sample libabc includes functions to get a thing, as a sample sub-object of the overall library context. Each thing has a reference to the parent

[systemd-devel] [PATCH] libabc: Make things hold a reference to their context

2014-12-08 Thread Josh Triplett
The sample libabc includes functions to get a thing, as a sample sub-object of the overall library context. Each thing has a reference to the parent library context, and a function to return that reference. Given that, abc_thing_new_from_string should call abc_ref, and abc_thing_unref should call

[systemd-devel] [PATCH 0/5] Enhancements to libabc template project

2014-12-06 Thread Josh Triplett
I went to use libabc as the basis for a new library, and found a few issues; rather than just correcting them in my own library, I'd like to push the changes back into libabc. Josh Triplett (5): Makefile.am: Don't add abc subdirectory to include path Makefile.am: Don't define LIBEXECDIR

[systemd-devel] [PATCH 1/5] Makefile.am: Don't add abc subdirectory to include path

2014-12-06 Thread Josh Triplett
Source files, including those in the library itself, should include abc/example.h, not example.h. --- Makefile.am | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 1ac18d0..aa53b51 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,7 +7,6 @@ AM_CPPFLAGS = \

[systemd-devel] [PATCH 2/5] Makefile.am: Don't define LIBEXECDIR

2014-12-06 Thread Josh Triplett
As README points out, the library should not execute out-of-process tools. Thus, it should never need to know LIBEXECDIR. --- Makefile.am | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index aa53b51..d7dcaed 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,6 @@

[systemd-devel] [PATCH 3/5] autogen.sh: set -e separately, rather than putting -e in the shebang line

2014-12-06 Thread Josh Triplett
Otherwise, if someone uses sh autogen.sh, the -e will get ignored. --- autogen.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 0d60b0a..07afd85 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e if [

[systemd-devel] [PATCH 4/5] m4/.gitignore: Remove stray blank line.

2014-12-06 Thread Josh Triplett
--- m4/.gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/m4/.gitignore b/m4/.gitignore index 8bab51c..38066dd 100644 --- a/m4/.gitignore +++ b/m4/.gitignore @@ -3,4 +3,3 @@ ltoptions.m4 ltsugar.m4 ltversion.m4 lt~obsolete.m4 - -- 2.1.3

[systemd-devel] [PATCH 5/5] Remove FSF mailing address

2014-12-06 Thread Josh Triplett
It has changed in the past, and these days, anyone can get a copy of the LGPL via the web rather than by post. --- src/abc/libabc.h | 4 src/libabc-private.h | 4 src/libabc.c | 4 src/test-libabc.c| 4 4 files changed, 16 deletions(-) diff --git

[systemd-devel] libabc, sub-objects, and reference counting

2014-12-06 Thread Josh Triplett
to an invalid abc context. - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] [PATCH 01/10] man/logind.conf.xml: Make man logind.conf.d work too

2014-11-29 Thread Josh Triplett
--- Makefile-man.am | 5 + man/logind.conf.xml | 1 + 2 files changed, 6 insertions(+) diff --git a/Makefile-man.am b/Makefile-man.am index f817a05..906a968 100644 --- a/Makefile-man.am +++ b/Makefile-man.am @@ -1110,8 +1110,13 @@ MANPAGES += \ man/logind.conf.5 \

[systemd-devel] [PATCH 02/10] man: Factor out a common snippet for .d directories and precedence

2014-11-29 Thread Josh Triplett
Several manpages contain duplicate text describing a standard set of .d configuration directories, with the usual sorting, precedence, overrides, and so on. Factor this common text out using XInclude before proliferating it even further. --- Makefile-man.am| 1 + man/binfmt.d.xml

[systemd-devel] [PATCH 03/10] core: Support system.conf.d and user.conf.d directories in the usual search paths

2014-11-29 Thread Josh Triplett
--- Makefile-man.am | 12 +++- man/systemd-system.conf.xml | 25 - man/systemd.xml | 10 ++ src/core/main.c | 9 - src/core/system.conf| 3 +++ src/core/user.conf | 3 +++ 6 files changed, 47

[systemd-devel] [PATCH 05/10] systemd-sleep: Support sleep.conf.d directories in the usual search paths

2014-11-29 Thread Josh Triplett
--- Makefile-man.am | 5 + man/systemd-sleep.conf.xml | 15 --- man/systemd-suspend.service.xml | 3 ++- src/shared/sleep-config.c | 7 --- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/Makefile-man.am b/Makefile-man.am index

[systemd-devel] [PATCH 07/10] coredump: Support coredump.conf.d directories in the usual search paths

2014-11-29 Thread Josh Triplett
--- Makefile-man.am | 6 -- man/coredump.conf.xml | 14 +++--- src/journal/coredump.c| 9 + src/journal/coredump.conf | 3 +++ 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/Makefile-man.am b/Makefile-man.am index 593dc40..01d3408 100644

[systemd-devel] [PATCH 09/10] timesyncd: Support timesyncd.conf.d directories in the usual search paths

2014-11-29 Thread Josh Triplett
--- Makefile-man.am| 7 ++- man/timesyncd.conf.xml | 17 +++-- src/timesync/timesyncd-conf.c | 9 + src/timesync/timesyncd.conf.in | 3 +++ 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/Makefile-man.am b/Makefile-man.am index

[systemd-devel] [PATCH 08/10] resolved: Support resolved.conf.d directories in the usual search paths

2014-11-29 Thread Josh Triplett
--- Makefile-man.am | 5 + man/resolved.conf.xml| 16 +++- src/resolve/resolved-conf.c | 9 + src/resolve/resolved.conf.in | 3 +++ 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/Makefile-man.am b/Makefile-man.am index

[systemd-devel] [PATCH 10/10] journald-remote: Support journal-remote.conf.d and journal-upload.conf.d directories in the usual search paths

2014-11-29 Thread Josh Triplett
--- src/journal-remote/journal-remote.c | 8 src/journal-remote/journal-upload.c | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index a5d40cb..6ec5ad2 100644 ---

[systemd-devel] [PATCH] NEWS: Document new .conf.d configuration directories

2014-11-29 Thread Josh Triplett
Also provide guidance to distributions, to make sure they don't start dropping files in the configuration directories in /etc/. --- NEWS | 13 + 1 file changed, 13 insertions(+) diff --git a/NEWS b/NEWS index 0d3ab2b..8fc0720 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,19 @@ CHANGES WITH

Re: [systemd-devel] [PATCH] NEWS: Document new .conf.d configuration directories

2014-11-29 Thread Josh Triplett
On Sun, Nov 30, 2014 at 12:23:07AM +0100, Lennart Poettering wrote: Applied! Thanks! Thanks for the fast response! Out of curiosity, what's the process/criteria to apply for commit access? (I have an fd.o account already.) I didn't see any documented on the systemd homepage. - Josh Triplett

Re: [systemd-devel] [PATCH 2/2] logind: Support logind.conf.d directories in the usual search paths

2014-11-26 Thread Josh Triplett
On Thu, Nov 27, 2014 at 01:45:43AM +0100, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Nov 26, 2014 at 01:24:53PM +0100, Gergely Nagy wrote: Josh == Josh Triplett j...@joshtriplett.org writes: Josh This makes it possible to drop in logind configuration snippets from a Josh

Re: [systemd-devel] statelessy system

2014-11-03 Thread Josh Triplett
/systemd. - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] [PATCH 1/2] Introduce CONF_DIRS_NULSTR helper to define standard conf dirs

2014-10-29 Thread Josh Triplett
Several different systemd tools define a nulstr containing a standard series of configuration file directories, in /etc, /run, /usr/local/lib, /usr/lib, and (#ifdef HAVE_SPLIT_USR) /lib. Factor that logic out into a new helper macro, CONF_DIRS_NULSTR. --- Realized when defining the Nth instance

[systemd-devel] [PATCH 2/2] logind: Support logind.conf.d directories in the usual search paths

2014-10-29 Thread Josh Triplett
This makes it possible to drop in logind configuration snippets from a package or other configuration management mechanism. Add documentation to the header of /etc/logind.conf pointing the user at /etc/logind.conf.d/*.conf. Introduce a new helper, conf_parse_many, to parse configuration files in

Re: [systemd-devel] [PATCHv2] logind: Support logind.conf.d directories in the usual search paths

2014-10-20 Thread josh
On Mon, Oct 20, 2014 at 07:44:19PM +0200, Lennart Poettering wrote: On Fri, 17.10.14 06:29, Josh Triplett (j...@joshtriplett.org) wrote: This makes it possible to drop in logind configuration snippets from a package or other configuration management mechanism. Introduce a new helper

Re: [systemd-devel] [PATCHv2] logind: Support logind.conf.d directories in the usual search paths

2014-10-20 Thread Josh Triplett
, and I'll submit v3 soon. - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCHv2] logind: Support logind.conf.d directories in the usual search paths

2014-10-17 Thread Josh Triplett
On Fri, Oct 17, 2014 at 08:40:48AM +0300, Mantas Mikulėnas wrote: On Fri, Oct 17, 2014 at 7:29 AM, Josh Triplett j...@joshtriplett.org wrote: This makes it possible to drop in logind configuration snippets from a package or other configuration management mechanism. I'm still very curious

[systemd-devel] [PATCH] logind: Support /etc/systemd/logind.conf.d/*.conf

2014-10-16 Thread Josh Triplett
This makes it possible to drop in configuration file snippets from a package or other configuration management mechanism. --- man/logind.conf.xml | 4 +++- src/login/logind.c | 21 + src/shared/conf-parser.c | 19 +++ src/shared/conf-parser.h | 7

Re: [systemd-devel] [PATCH] logind: Support /etc/systemd/logind.conf.d/*.conf

2014-10-16 Thread Josh Triplett
On Thu, Oct 16, 2014 at 03:36:57PM +0200, Zbigniew Jędrzejewski-Szmek wrote: On Thu, Oct 16, 2014 at 12:27:21PM +0200, Josh Triplett wrote: This makes it possible to drop in configuration file snippets from a package or other configuration management mechanism. What kind of settings would

Re: [systemd-devel] [PATCH] logind: Support /etc/systemd/logind.conf.d/*.conf

2014-10-16 Thread Josh Triplett
On Thu, Oct 16, 2014 at 09:42:50AM -0400, Rahul Sundaram wrote: On Thu, Oct 16, 2014 at 6:27 AM, Josh Triplett wrote: This makes it possible to drop in configuration file snippets from a package or other configuration management mechanism. Shouldn't those go into /usr according to http

[systemd-devel] [PATCHv2] logind: Support logind.conf.d directories in the usual search paths

2014-10-16 Thread Josh Triplett
This makes it possible to drop in logind configuration snippets from a package or other configuration management mechanism. Introduce a new helper, conf_parse_many, to parse configuration files in a search path. systemd now installs /usr/lib/systemd/logind.conf.d/50-default.conf rather than

Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Josh Triplett
On Thu, Oct 02, 2014 at 09:36:46AM +0200, Jan Synacek wrote: Introduce option to display time in UTC. Does TZ=UTC journalctl not do the right thing? A quick test here suggests that it does. That seems preferable to teaching individual tools to special-case UTC. - Josh Triplett

Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Josh Triplett
On Thu, Oct 02, 2014 at 09:11:39PM +0200, Lennart Poettering wrote: On Thu, 02.10.14 11:56, Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Oct 02, 2014 at 09:36:46AM +0200, Jan Synacek wrote: Introduce option to display time in UTC. Does TZ=UTC journalctl not do the right thing

[systemd-devel] systemd-resolved, multi-home DNS resolution, VPNs, and privacy

2014-08-28 Thread Josh Triplett
then I don't want *anything* other than the VPN itself to send traffic over a non-VPN interface. Any way we could fix that while retaining the works out of the box behavior? - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] [PATCH] TODO: add molly-guard functionality

2014-08-25 Thread Josh Triplett
On Mon, Aug 25, 2014 at 07:19:47PM +0200, Lennart Poettering wrote: On Sat, 23.08.14 19:26, Josh Triplett (j...@joshtriplett.org) wrote: Rather than requiring a third-party tool for this, systemctl should handle this natively. This has been proposed before, but I sounds awfully random

[systemd-devel] [PATCH] TODO: add molly-guard functionality

2014-08-23 Thread Josh Triplett
Rather than requiring a third-party tool for this, systemctl should handle this natively. --- TODO | 1 + 1 file changed, 1 insertion(+) diff --git a/TODO b/TODO index 0fcd3a0..aaf6444 100644 --- a/TODO +++ b/TODO @@ -441,6 +441,7 @@ Features: - Something is wrong with symlink handling of

[systemd-devel] Deployment/environment names [was: Re: [PATCH 2/4] Add ENVIRONMENT to hostnamed]

2014-07-08 Thread Josh Triplett
foobranch infrastructure. This would still allow the role string to serve its primary functions: querying it to check for particular values used within an organization, or inserting it into prompts, window titles, and similar. - Josh Triplett ___ systemd

Re: [systemd-devel] Deployment/environment names [was: Re: [PATCH 2/4] Add ENVIRONMENT to hostnamed]

2014-07-08 Thread Josh Triplett
On Wed, Jul 09, 2014 at 01:16:04AM +, Jóhann B. Guðmundsson wrote: On 07/09/2014 01:05 AM, j...@joshtriplett.org wrote: On Tue, Jul 08, 2014 at 10:45:11PM +, Jóhann B. Guðmundsson wrote: On 07/08/2014 10:45 PM, Josh Triplett wrote: [Responding to this version because the latest

Re: [systemd-devel] logind.conf.d?

2014-05-20 Thread josh
On Tue, May 20, 2014 at 07:12:02PM +0200, Lennart Poettering wrote: On Fri, 16.05.14 12:58, Josh Triplett (j...@joshtriplett.org) wrote: I'd like to add support for /etc/systemd/logind.conf.d, parsed after /etc/systemd/logind.conf. My specific use case: I'd like to be able to create

Re: [systemd-devel] [PATCH rebased] Use strlen even for constant strings

2014-03-16 Thread Josh Triplett
On Sun, Mar 16, 2014 at 02:56:10PM +0100, Zbigniew Jędrzejewski-Szmek wrote: On Sat, Mar 15, 2014 at 11:40:07AM -0700, Josh Triplett wrote: GCC optimizes strlen(string constant) to a constant, even with -O0. Thus, replace patterns like sizeof(string constant)-1 with strlen(string constant

[systemd-devel] [PATCH rebased] Use strlen even for constant strings

2014-03-15 Thread Josh Triplett
GCC optimizes strlen(string constant) to a constant, even with -O0. Thus, replace patterns like sizeof(string constant)-1 with strlen(string constant) where possible, for clarity. In particular, for expressions intended to add up the lengths of components going into a string, this often makes it

Re: [systemd-devel] [PATCH] util: Rewrite in_charset to use strspn

2014-03-11 Thread Josh Triplett
to avoid simultaneously changing code and moving it, since it makes the change diff less obvious. - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] [PATCH] util: Make in_charset a static inline in util.h

2014-03-11 Thread Josh Triplett
With in_charset now reduced to a one-liner (plus asserts), make it a static inline. --- This applies on top of the previous patch simplifying in_charset. src/shared/util.c | 6 -- src/shared/util.h | 6 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/shared/util.c

[systemd-devel] [PATCH 1/2] backlight: Fix copy/paste error printing an unrelated error code

2014-03-11 Thread Josh Triplett
udev_device_get_sysattr_value returns NULL on failure, but doesn't provide an error code; thus, when printing an error from it, don't print an unrelated error code from a previous call. --- src/backlight/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[systemd-devel] [PATCH 2/2] backlight: Avoid restoring brightness to an unreadably dim level

2014-03-11 Thread Josh Triplett
Some systems turn the backlight all the way off at the lowest levels. Clamp saved brightness to at least 1 or 5% of max_brightness. This avoids preserving an unreadably dim screen, which would otherwise force the user to disable state restoration. --- src/backlight/backlight.c | 39

[systemd-devel] [PATCH] util: Rewrite in_charset to use strspn

2014-03-11 Thread Josh Triplett
This simplifies in_charset down to a one-liner, and allows for possible optimizations of strspn in libc. --- src/shared/util.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/shared/util.c b/src/shared/util.c index d28caae..82326df 100644 --- a/src/shared/util.c

Re: [systemd-devel] [PATCH 2/2] backlight: Avoid restoring brightness to an unreadably dim level

2014-03-11 Thread Josh Triplett
On Wed, Mar 12, 2014 at 03:32:47AM +0100, Lennart Poettering wrote: On Tue, 11.03.14 18:55, Josh Triplett (j...@joshtriplett.org) wrote: +/* Some systems turn the backlight all the way off at the + * lowest levels. Clamp saved brightness to at least 1

[systemd-devel] [PATCHv2 1/2] backlight: Fix copy/paste error printing an unrelated error code

2014-03-11 Thread Josh Triplett
udev_device_get_sysattr_value returns NULL on failure, but doesn't provide an error code; thus, when printing an error from it, don't print an unrelated error code from a previous call. --- v2: Patch 1/2 unchanged from v1. src/backlight/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1

[systemd-devel] [PATCH 2/2] backlight: Avoid restoring brightness to an unreadably dim level

2014-03-11 Thread Josh Triplett
Some systems turn the backlight all the way off at the lowest levels. Clamp saved brightness to at least 1 or 5% of max_brightness. This avoids preserving an unreadably dim screen, which would otherwise force the user to disable state restoration. --- v2: Send the right patch this time. Factor

Re: [systemd-devel] [PATCH] Add avoid_cleanup macro to cancel _cleanup_ of a pointer

2014-03-10 Thread Josh Triplett
On Mon, Mar 10, 2014 at 04:44:02PM +0100, Lennart Poettering wrote: On Sat, 08.03.14 20:33, Josh Triplett (j...@joshtriplett.org) wrote: avoid_cleanup also returns a copy of the pointer, making it convenient to use at the point where initialization completes, to hand the constructed

[systemd-devel] [PATCH] Add avoid_cleanup macro to cancel _cleanup_ of a pointer

2014-03-08 Thread Josh Triplett
avoid_cleanup also returns a copy of the pointer, making it convenient to use at the point where initialization completes, to hand the constructed object off somewhere without freeing it. Change all NULL assignments tagged with /* avoid cleanup */ to use this instead. --- Seems like a common

[systemd-devel] systemd-backlight and backlight level 0

2014-03-05 Thread Josh Triplett
to restore backlight level 0.) - Something ought to listen to the brightness keys (and perhaps other hotkeys) in pure text mode. systemd seems like a good place for such a something to live. - Josh Triplett ___ systemd-devel mailing list systemd

Re: [systemd-devel] systemd-backlight and backlight level 0

2014-03-05 Thread Josh Triplett
On Wed, Mar 05, 2014 at 06:59:27PM +0100, David Herrmann wrote: On Wed, Mar 5, 2014 at 6:46 PM, Josh Triplett j...@joshtriplett.org wrote: systemd-backlight saves backlight levels on shutdown, and restores them on startup. However, on some systems, backlight level 0 actually turns

Re: [systemd-devel] systemd-backlight and backlight level 0

2014-03-05 Thread Josh Triplett
On Wed, Mar 05, 2014 at 07:10:51PM +0100, Lennart Poettering wrote: On Wed, 05.03.14 09:46, Josh Triplett (j...@joshtriplett.org) wrote: systemd-backlight saves backlight levels on shutdown, and restores them on startup. However, on some systems, backlight level 0 actually turns

Re: [systemd-devel] systemd-backlight and backlight level 0

2014-03-05 Thread Josh Triplett
On Wed, Mar 05, 2014 at 10:21:17PM +0100, David Herrmann wrote: On Wed, Mar 5, 2014 at 8:31 PM, Josh Triplett j...@joshtriplett.org wrote: On Wed, Mar 05, 2014 at 07:10:51PM +0100, Lennart Poettering wrote: On Wed, 05.03.14 09:46, Josh Triplett (j...@joshtriplett.org) wrote: systemd

Re: [systemd-devel] [PATCH] TODO: Simple conditionals in tmpfiles

2014-03-01 Thread Josh Triplett
On Sat, Mar 01, 2014 at 03:03:17PM +, Colin Walters wrote: On Fri, Feb 28, 2014 at 9:36 AM, Josh Triplett j...@joshtriplett.org wrote: --- Strawman proposal, open to suggestions. ... + - Simple conditionals: C path mode user group - (tmpfiles-line) does tmpfiles-line if path has

[systemd-devel] [PATCH] TODO: Simple conditionals in tmpfiles

2014-02-28 Thread Josh Triplett
--- Strawman proposal, open to suggestions. A change like this would make tmpfiles flexible enough to detect what permission configuration an admin wants to use and go along with that. In general, set a directory's permissions based on the set{u,g}id status of the binary seems common enough to

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-23 Thread Josh Triplett
On Tue, Apr 23, 2013 at 01:45:32AM +0200, Tom Gundersen wrote: On Mon, Apr 22, 2013 at 11:53 PM, Josh Triplett j...@joshtriplett.org wrote: 1) Leave only root in /etc/passwd and /etc/group. Not commenting on the overall idea, but if you are going to do something like this, at least allow

Re: [systemd-devel] [PATCH] TODO: add various journal enhancements

2013-04-22 Thread Josh Triplett
On Thu, Apr 18, 2013 at 12:42:38AM +0200, Kay Sievers wrote: On Thu, Apr 18, 2013 at 12:28 AM, Josh Triplett j...@joshtriplett.org wrote: On Thu, Apr 18, 2013 at 12:12:38AM +0200, Kay Sievers wrote: On Wed, Apr 17, 2013 at 11:49 PM, Josh Triplett j...@joshtriplett.org wrote

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-22 Thread Josh Triplett
On Thu, Apr 18, 2013 at 12:26:15AM +0200, Kay Sievers wrote: On Wed, Apr 17, 2013 at 11:50 PM, Josh Triplett j...@joshtriplett.org wrote: --- TODO |5 + 1 file changed, 5 insertions(+) diff --git a/TODO b/TODO index eb482d0..6cf632a 100644 --- a/TODO +++ b/TODO

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-22 Thread Josh Triplett
On Mon, Apr 22, 2013 at 11:24:56PM +0200, Kay Sievers wrote: On Mon, Apr 22, 2013 at 9:29 PM, Josh Triplett j...@joshtriplett.org wrote: On Thu, Apr 18, 2013 at 12:26:15AM +0200, Kay Sievers wrote: On Wed, Apr 17, 2013 at 11:50 PM, Josh Triplett j...@joshtriplett.org wrote: --- TODO

[systemd-devel] [PATCHv2] TODO: journal enhancements

2013-04-19 Thread Josh Triplett
--- Resubmitting the uncontroversial bits. TODO | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TODO b/TODO index 88be72d..33c24ea 100644 --- a/TODO +++ b/TODO @@ -272,6 +272,8 @@ Features: - journal: store euid in journal if it differs from uid - journal: sanely deal with entries

[systemd-devel] [PATCH] systemd-logind: Fix linking by reordering libraries in LDADD

2013-04-18 Thread Josh Triplett
libsystemd-audit needs functions from libsystemd-shared, so libsystemd-audit needs to appear first. Otherwise: CCLD systemd-logind ./.libs/libsystemd-audit.a(audit.o): In function `audit_session_from_pid': /home/josh/src/systemd/src/shared/audit.c:50: undefined reference

[systemd-devel] [PATCH] TODO: timer unit generation

2013-04-17 Thread Josh Triplett
--- TODO |1 + 1 file changed, 1 insertion(+) diff --git a/TODO b/TODO index 48e5d2e..eb482d0 100644 --- a/TODO +++ b/TODO @@ -320,6 +320,7 @@ Features: o CLOCK_REALTIME makes jumps (TFD_TIMER_CANCEL_ON_SET) o DST changes - Support 2012-02~4 as syntax for specifying the fourth

[systemd-devel] [PATCH] TODO: add various journal enhancements

2013-04-17 Thread Josh Triplett
--- TODO |7 +++ 1 file changed, 7 insertions(+) diff --git a/TODO b/TODO index 88be72d..48e5d2e 100644 --- a/TODO +++ b/TODO @@ -272,6 +272,13 @@ Features: - journal: store euid in journal if it differs from uid - journal: sanely deal with entries which are larger than the

[systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-17 Thread Josh Triplett
--- TODO |5 + 1 file changed, 5 insertions(+) diff --git a/TODO b/TODO index eb482d0..6cf632a 100644 --- a/TODO +++ b/TODO @@ -679,6 +679,11 @@ External: - put bootcharts in the journal - kernel cmdline bootchart option for simplicity? +* Support passwd.d and group.d;

Re: [systemd-devel] [PATCH] TODO: timer unit generation

2013-04-17 Thread Josh Triplett
On Thu, Apr 18, 2013 at 12:04:24AM +0200, Kay Sievers wrote: On Wed, Apr 17, 2013 at 11:50 PM, Josh Triplett j...@joshtriplett.org wrote: + - unit generator for compatibility with crontab and cron.d We kind of decided to port the 40-60 things that use the .d/ dirs to native units right

Re: [systemd-devel] [PATCH] TODO: add various journal enhancements

2013-04-17 Thread Josh Triplett
On Thu, Apr 18, 2013 at 12:12:38AM +0200, Kay Sievers wrote: On Wed, Apr 17, 2013 at 11:49 PM, Josh Triplett j...@joshtriplett.org wrote: + - Replace utmp, wtmp, btmp, and lastlog completely with journal We should definitely add the data needed to constuct this information

Re: [systemd-devel] [PATCH] TODO: timer unit generation

2013-04-17 Thread Josh Triplett
On Thu, Apr 18, 2013 at 12:15:22AM +0200, Kay Sievers wrote: On Thu, Apr 18, 2013 at 12:11 AM, Josh Triplett j...@joshtriplett.org wrote: On Thu, Apr 18, 2013 at 12:04:24AM +0200, Kay Sievers wrote: On Wed, Apr 17, 2013 at 11:50 PM, Josh Triplett j...@joshtriplett.org wrote: + - unit

[systemd-devel] [PATCH] TODO: uses for SO_REUSEPORT

2013-03-15 Thread Josh Triplett
The new socket option SO_REUSEPORT would enable some new functionality; add it to TODO. --- TODO |5 + 1 file changed, 5 insertions(+) diff --git a/TODO b/TODO index f1a0bcf..f469e96 100644 --- a/TODO +++ b/TODO @@ -46,6 +46,11 @@ Fedora 19: Features: +* Support SO_REUSEPORT with

Re: [systemd-devel] [PATCH] systemd: mount the EFI variable filesystem

2012-11-05 Thread Josh Boyer
tells the same), and do nothing on older kernel, kernels without the filesysystem, or platforms without EFI. Yes to all of that. For those wanting a distro kernel to play with that has this support, we've included efivarfs in Fedora rawhide and soon in F18. josh

Re: [systemd-devel] PATCH: fix sparse warnings

2012-03-14 Thread Josh Triplett
On Wed, Mar 14, 2012 at 06:58:32PM +0100, Lennart Poettering wrote: On Wed, 07.03.12 06:34, Josh Triplett (j...@joshtriplett.org) wrote: I've attached a header file which should provide all the endianness checking you need. Just include it in place of endian.h everywhere you currently

[systemd-devel] FC16 - how to get ExecStop= to be executed at shutdown?

2011-12-04 Thread Josh Geisser
-manager.service [Service] Type=forking ExecStart=/home/vmuser/./rc.virtualboxes start | /usr/bin/logger ExecStop=/home/vmuser/./rc.virtualboxes stop | /usr/bin/logger [Install] WantedBy=graphical.target Cheers thx Josh -- ASG at hnet ___ systemd-devel

Re: [systemd-devel] FC16 - how to get ExecStop= to be executed at shutdown?

2011-12-04 Thread Josh Geisser
to shutdown, but Xfce just terminate upon shutdown, definitely does not wait until the VBox service is stopped. It might be that systemd terminates the PIDs of the VMs directly, but it's currently not executing the ExecStop ... bet I'm missing something. Cheers Josh -Ursprüngliche Nachricht

Re: [systemd-devel] Tomcat.service / PID aquiring

2011-08-24 Thread Josh Geisser
Hi Lennart Yep, I didn't read the last sentence in the documentation about this parameter. (embarrassing) Seems to work fine now, start script writes this file and systemd successfully reports the tomcat as running. Thanks a lot Cheers josh -Ursprüngliche Nachricht- Von: Lennart

Re: [systemd-devel] [PATCH] Move /tmp and /var/tmp to a separate tmpfiles.d file to ease overrides via /etc

2011-08-24 Thread Josh Triplett
On Wed, Aug 24, 2011 at 08:39:38PM +0200, Lennart Poettering wrote: On Sat, 06.08.11 15:48, Josh Triplett (j...@joshtriplett.org) wrote: Many people prefer to avoid clearing /tmp and /var/tmp, and distributions often have explicit settings for how often to clear them if at all

Re: [systemd-devel] [PATCH] Move /tmp and /var/tmp to a separate tmpfiles.d file to ease overrides via /etc

2011-08-16 Thread Josh Triplett
? Files in /tmp get cleared when older than 10 days; that seems like a fine default. - Josh Triplett ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] [PATCH] Move /tmp and /var/tmp to a separate tmpfiles.d file to ease overrides via /etc

2011-08-06 Thread Josh Triplett
Many people prefer to avoid clearing /tmp and /var/tmp, and distributions often have explicit settings for how often to clear them if at all. Overriding those with systemd currently requires overriding all of /usr/lib/tmpfiles.d/systemd.conf via /etc/tmpfiles.d/systemd.conf, copying across all

[systemd-devel] [PATCH] Remove X11 lock files for displays :10 and higher too

2011-08-06 Thread Josh Triplett
--- Using .X[0-9]*-lock seems safe to me, but if you prefer I can write separate lines for [0-9], [0-9][0-9], and [0-9][0-9][0-9]. Now if only tmpfiles.d could do regexes or extglob rather than just shell-style globs. :) tmpfiles.d/x11.conf |2 +- 1 files changed, 1 insertions(+), 1

Re: [systemd-devel] Tomcat.service / PID aquiring

2011-08-05 Thread Josh Geisser
Ah i skipped the notice of systemd will not write to the file configured here :) Seems to work fine Thanks a lot -Ursprüngliche Nachricht- Von: systemd-devel-bounces+josh=gebaschtel...@lists.freedesktop.org [mailto:systemd-devel-bounces+josh=gebaschtel...@lists.freedesktop.org] Im

[systemd-devel] (newbie) question: dependency on ldap/kerberos

2011-06-04 Thread Josh Geisser
of infrastructure, this actually works quite well, the on-site used severs serving SMB are in either 2min or 15minutes available, regardless of whether the firewall could establish the VPN's) Any hint how I can implement this scenario with systemd? Cheers Josh

[systemd-devel] What makes systemd-nspawn not suitable for secure container setups?

2011-04-23 Thread Josh Triplett
useful to avoid accidental changes to the host system from the container. How can a process in a systemd-nspawn container circumvent the container setup? What additional steps would systemd-nspawn need to take to provide a secure container setup? - Josh Triplett

[systemd-devel] What makes systemd-nspawn not suitable for secure container setups?

2011-04-22 Thread Josh Triplett
useful to avoid accidental changes to the host system from the container. How can a process in a systemd-nspawn container circumvent the container setup? What additional steps would systemd-nspawn need to take to provide a secure container setup? - Josh Triplett

Re: [systemd-devel] What makes systemd-nspawn not suitable for secure container setups?

2011-04-22 Thread Josh Triplett
On Sat, Apr 23, 2011 at 11:28:58AM +0800, microcai wrote: 于 2011年04月23日 10:55, Josh Triplett 写道: The systemd-nspawn manpage lists the various mechanisms used to isolate the container, and then says Note that even though these security precautions are taken systemd-nspawn is not suitable