Lennart Poettering [Mon, 19 Oct 2015 20:09:10 +0000 (22:09 +0200)]
Merge pull request #1614 from alkino/master
Hook more properties for transient units
Lennart Poettering [Mon, 19 Oct 2015 20:06:06 +0000 (22:06 +0200)]
Merge pull request #1613 from phomes/unused-functions-2
tree-wide: remove unused functions
Nicolas Cornu [Mon, 19 Oct 2015 19:57:01 +0000 (21:57 +0200)]
Hook more properties for transient units
systemd-run can now launch units with EnvironmentFile set.
Thomas Hindoe Paaboel Andersen [Mon, 19 Oct 2015 19:45:00 +0000 (21:45 +0200)]
tree-wide: remove unused functions
Lennart Poettering [Mon, 19 Oct 2015 18:39:00 +0000 (20:39 +0200)]
Merge pull request #1612 from evverx/man-systemd-tmpfiles
man: systemd-tmpfiles requires absolute filenames
Evgeny Vereshchagin [Mon, 19 Oct 2015 18:30:16 +0000 (18:30 +0000)]
man: systemd-tmpfiles requires absolute filenames
`systemd-tmpfiles --clean ./some.conf` doesn't work:
Failed to open './some.conf', ignoring: No such file or directory
`systemd-tmpfiles --clean $(realpath ./some.conf)` works fine.
Lennart Poettering [Mon, 19 Oct 2015 17:16:15 +0000 (19:16 +0200)]
Merge pull request #1584 from mischief/journal-remote-no-gnutls
build: install journal-remote units and directory regardless of GNUTLS
Lennart Poettering [Mon, 19 Oct 2015 17:03:16 +0000 (19:03 +0200)]
Merge pull request #1610 from evverx/man-tmpfiles-d
man: tmpfiles.d: add info about age field
Lennart Poettering [Mon, 19 Oct 2015 17:02:47 +0000 (19:02 +0200)]
Merge pull request #1598 from evverx/run-oomscoreadjust
systemd-run can launch units with OOMScoreAdjust
Evgeny Vereshchagin [Mon, 19 Oct 2015 13:27:43 +0000 (13:27 +0000)]
man: tmpfiles.d: add info about age field
The age field applies to lines starting with `v`, `C`, `X` too.
See the function `clean_item` in the file `src/tmpfiles/tmpfiles.c`
Martin Pitt [Sun, 18 Oct 2015 11:34:14 +0000 (13:34 +0200)]
Merge pull request #1601 from grawity/patch-1
hwdb: fix a syntax error in 60-keyboard
Mantas Mikulėnas [Sun, 18 Oct 2015 11:09:20 +0000 (14:09 +0300)]
hwdb: fix a syntax error in 60-keyboard
Kay Sievers [Sun, 18 Oct 2015 10:19:08 +0000 (12:19 +0200)]
Revert "units: add 'smackfsroot=*' option into tmp.mount when SMACK is enabled"
This reverts commit
409c2a13fd65692c611b7bcaba12e908ef7cf1e5.
It breaks the bootup of systems which enable smack at compile time, but have no
smack enabled in the kernel. This needs a different solution.
David Herrmann [Sun, 18 Oct 2015 10:15:10 +0000 (12:15 +0200)]
Merge pull request #1595 from poettering/proxy-fixes
bus proxy fixes, and more
Evgeny Vereshchagin [Sat, 17 Oct 2015 20:02:56 +0000 (20:02 +0000)]
shell-completion: systemd-run: add property OOMScoreAdjust
Evgeny Vereshchagin [Sat, 17 Oct 2015 19:58:29 +0000 (19:58 +0000)]
run: can launch units with OOMScoreAdjust
Evgeny Vereshchagin [Sat, 17 Oct 2015 20:01:41 +0000 (20:01 +0000)]
util: add func for checking OOMScoreAdjust
Lennart Poettering [Sat, 17 Oct 2015 14:25:10 +0000 (16:25 +0200)]
unit: allocate bus name match string on the stack
Let's use strjoina() rather than strjoin() for construct dbus match
strings.
Also, while we are at it, fix parameter ordering, so that our functions
always put the object first, like it is customary for OO-like
programming.
Lennart Poettering [Sat, 17 Oct 2015 14:23:45 +0000 (16:23 +0200)]
sd-bus: fix error handling of pthread API calls
pthread APIs (unlike the rest of libc) return their errors as positive
error codes directly from the functions, rather than using errno. Let's
make sure we always handle things that way.
Lennart Poettering [Sat, 17 Oct 2015 14:20:38 +0000 (16:20 +0200)]
bus-proxy: don't close local bus fds twice
Clear up how we pass fd owner ship to proxy and bus objects. Document
that ownership is passed of the fds in question even in case of failing
constructors, and that callers should forget about fds pass into the
proxy object.
The alternative would be to duplicate the fds, but given that fds are a
relatively scarce and heavy resource let's better avoid that.
Fixes #1591.
Zbigniew Jędrzejewski-Szmek [Sat, 17 Oct 2015 02:14:32 +0000 (22:14 -0400)]
Merge pull request #1508 from msekletar/update-TODO-NPROC
update TODO
Zbigniew Jędrzejewski-Szmek [Sat, 17 Oct 2015 00:53:26 +0000 (20:53 -0400)]
Merge pull request #1588 from mhalano/logitech-m560-mouse
[zj: rearrange into the sort order]
Marcos Alano [Fri, 16 Oct 2015 22:12:51 +0000 (19:12 -0300)]
Added support to the wireless mouse Logitech M560.
Ronny Chevalier [Fri, 16 Oct 2015 19:33:17 +0000 (21:33 +0200)]
Merge pull request #1582 from evverx/dump-runtime-dir-mode
core: dump RuntimeDirectories and RuntimeDirectoryMode too
Evgeny Vereshchagin [Thu, 15 Oct 2015 19:15:11 +0000 (19:15 +0000)]
core: dump RuntimeDirectories and RuntimeDirectoryMode too
Kay Sievers [Fri, 16 Oct 2015 14:40:55 +0000 (16:40 +0200)]
Merge pull request #1586 from martinpitt/master
keymap: Add HP ProBook 6555b
Martin Pitt [Fri, 16 Oct 2015 14:30:08 +0000 (16:30 +0200)]
keymap: Add HP ProBook 6555b
Thanks to Olaf Hering!
David Herrmann [Fri, 16 Oct 2015 11:05:39 +0000 (13:05 +0200)]
Merge pull request #1581 from teg/netlink-broadcast-leave
sd-netlink: refcount multicast groups
Nick Owens [Thu, 15 Oct 2015 23:24:47 +0000 (16:24 -0700)]
build: install journal-remote units and directory regardless of GNUTLS
Tom Gundersen [Thu, 15 Oct 2015 17:28:07 +0000 (19:28 +0200)]
units: .gitignore: units - ignore tmp.mount
This is a follow-up to
409c2a13fd656.
Tom Gundersen [Thu, 15 Oct 2015 15:59:10 +0000 (17:59 +0200)]
sd-netlink: refcount multicast groups
Track the number of matches installed for a given multicast group, and leave the
group once no matches depend on it.
In order to handle passed-in sockets that are already members of multicast groups
we initialize the refcount based on the membership once we take over the socket.
This way we will leave the socket in the state we found it once we finish with
it.
On kernels that do not fully support reading out the multicast group membership
we fall back to never leaving any groups (as before).
Lennart Poettering [Thu, 15 Oct 2015 16:37:03 +0000 (18:37 +0200)]
btrfs: always remove the per-subvol qgroup when removing a subvol
btrfs doesn't do that automatically, hence let's do that explicitly each
time.
Lennart Poettering [Thu, 15 Oct 2015 12:11:36 +0000 (14:11 +0200)]
Merge pull request #1575 from evverx/expose-manager-timerslacknsec
core: expose manager's TimerSlackNSec as propery on dbus
Evgeny Vereshchagin [Thu, 15 Oct 2015 11:55:04 +0000 (11:55 +0000)]
core: expose manager's TimerSlackNSec as propery on dbus
Lennart Poettering [Thu, 15 Oct 2015 11:37:11 +0000 (13:37 +0200)]
Merge pull request #1527 from keszybz/lz4
Using lz4 frame api for coredump files
Lennart Poettering [Thu, 15 Oct 2015 11:09:57 +0000 (13:09 +0200)]
Merge pull request #1572 from again4you/devel/tmp-smack
units: add 'smackfsroot=*' option into tmp.mount when SMACK is enabled
Lennart Poettering [Thu, 15 Oct 2015 11:09:26 +0000 (13:09 +0200)]
Merge pull request #1569 from mustrumr/date-parse-additions
Date parse additions
Lennart Poettering [Thu, 15 Oct 2015 10:58:17 +0000 (12:58 +0200)]
Merge pull request #1574 from evverx/run-timer-slack-nsec
systemd-run can launch units with TimerSlackNSec
Evgeny Vereshchagin [Thu, 15 Oct 2015 10:01:09 +0000 (10:01 +0000)]
shell-completion: systemd-run: add TimerSlackNSec property
Evgeny Vereshchagin [Thu, 15 Oct 2015 09:57:28 +0000 (09:57 +0000)]
run: can launch units with TimerSlackNSec
Sangjung Woo [Wed, 14 Oct 2015 06:57:47 +0000 (15:57 +0900)]
units: add 'smackfsroot=*' option into tmp.mount when SMACK is enabled
If SMACK is enabled, 'smackfsroot=*' option should be specified in
tmp.mount file since many non-root processes use /tmp for temporary
usage. If not, /tmp is labeled as '_' and smack denial occurs when
writing.
Zbigniew Jędrzejewski-Szmek [Thu, 15 Oct 2015 02:57:55 +0000 (22:57 -0400)]
build-sys: enable lz4 by default if available
--enable-lz4 can be used to force lz4 requirement,
--disable-lz4 can be used to skip lz4 support even if available.
Also, make surrounding checks for bzip2, xz, and zlib similar in structure.
This fixes the check for requested but missing bzip2.
Zbigniew Jędrzejewski-Szmek [Wed, 14 Oct 2015 14:42:18 +0000 (10:42 -0400)]
compress: return errors without logging, do not fake errno
Logging for compression and decompression is assymetrical on purpose:
if compiled without some type of compression, those compression code
paths should never be invoked. OTOH, it is possible to encounter
unsupported format on decompression, so leave those log_debug statements
in, to make it easier to diagnose stuff.
Hristo Venev [Wed, 14 Oct 2015 23:58:02 +0000 (02:58 +0300)]
man: mention UTC support for calendar events
Hristo Venev [Wed, 14 Oct 2015 23:58:00 +0000 (02:58 +0300)]
test: add calendarspec UTC tests
Hristo Venev [Wed, 14 Oct 2015 23:57:59 +0000 (02:57 +0300)]
basic: calendarspec UTC support
Just add " UTC" to the end of the event expression. Works for the
special expressions.
Hristo Venev [Wed, 14 Oct 2015 23:57:58 +0000 (02:57 +0300)]
man: mention UTC support for timestamps
Hristo Venev [Wed, 14 Oct 2015 23:56:57 +0000 (02:56 +0300)]
test: parse_timestamp UTC and fractional seconds tests
Hristo Venev [Wed, 14 Oct 2015 23:57:57 +0000 (02:57 +0300)]
basic: parse_timestamp UTC and fractional seconds support
Hristo Venev [Tue, 13 Oct 2015 19:14:33 +0000 (22:14 +0300)]
basic: add mktime_or_timegm and localtime_or_gmtime_r
to time-util.h. They take an extra argument `bool utc`.
Lennart Poettering [Wed, 14 Oct 2015 20:34:20 +0000 (22:34 +0200)]
Merge pull request #1567 from teg/logind-suspend-logging
login: suspend - be a bit more explicit when logging
Tom Gundersen [Wed, 14 Oct 2015 20:22:17 +0000 (22:22 +0200)]
login: suspend - be a bit more explicit when logging
When the Suspend method is called, the only log message we write
(unless debugging is enabled) is "Operation finished.". This is
not very helpful when trying to figure out what is going on, so
add what operation we are talking about to the message:
"Operation 'sleep' finished.".
Hat tip to Daniel Aleksandersen for pointing this out.
Lennart Poettering [Wed, 14 Oct 2015 17:39:28 +0000 (19:39 +0200)]
Merge pull request #1528 from evverx/systemd-run-syslog-pri-fac
systemd-run can launch units with SyslogLevel and SyslogFacility
Evgeny Vereshchagin [Wed, 14 Oct 2015 16:30:35 +0000 (16:30 +0000)]
core: execute: validate syslog level and facility
Evgeny Vereshchagin [Wed, 14 Oct 2015 16:28:40 +0000 (16:28 +0000)]
util: add functions for validating syslog level and facility
Lennart Poettering [Wed, 14 Oct 2015 15:29:24 +0000 (17:29 +0200)]
Merge pull request #1562 from michich/overlinking
build: fix overlinking
Zbigniew Jędrzejewski-Szmek [Wed, 14 Oct 2015 15:22:14 +0000 (11:22 -0400)]
Merge pull request #1563 from poettering/exciting-fixes
A variety of fixes
Evgeny Vereshchagin [Sun, 11 Oct 2015 03:57:07 +0000 (03:57 +0000)]
shell-completion: systemd-run: add SyslogFacility property
Evgeny Vereshchagin [Sun, 11 Oct 2015 03:55:41 +0000 (03:55 +0000)]
systemd-run: can launch units with SyslogFacility
Evgeny Vereshchagin [Sun, 11 Oct 2015 03:39:46 +0000 (03:39 +0000)]
shell-completion: systemd-run: add SyslogLevel property
Evgeny Vereshchagin [Sun, 11 Oct 2015 03:37:50 +0000 (03:37 +0000)]
systemd-run: can launch units with SyslogLevel
Lennart Poettering [Wed, 14 Oct 2015 14:25:23 +0000 (16:25 +0200)]
unit: remove [Install] section from the user exit.target unit
There's no concept of ctrl-alt-del for user systemd instances, hence
don't suggest it woud make sense to symlink the unit to it.
Fixes #1525.
Lennart Poettering [Wed, 14 Oct 2015 14:24:25 +0000 (16:24 +0200)]
tty-ask-password-agent: don't warn if we cannot disable wall messages on the calling tty
For example, due to perm issues.
THis simply downgrades the message about it, since this is purely
cosmetical anyway.
Fixes #1543.
Lennart Poettering [Wed, 14 Oct 2015 14:22:22 +0000 (16:22 +0200)]
core: log if the service to activate vanished before we activate it
Normally this shouldn't happen unless the daemon is reloaded.
A similar check is already in place in socket.c for the socket
activation case.
This hopefully makes #1526 non-fatal, though it will not fix this, and
there's something else to fix.
Zbigniew Jędrzejewski-Szmek [Wed, 14 Oct 2015 14:15:27 +0000 (10:15 -0400)]
compress: fix mmap error handling
Michal Schmidt [Tue, 13 Oct 2015 18:06:04 +0000 (20:06 +0200)]
build: libdl is needed only for libnss_resolve
Not everything needs to link to libdl. dlopen+dlsym are used only by
libnss_resolve.
Michal Schmidt [Tue, 13 Oct 2015 17:52:06 +0000 (19:52 +0200)]
build: don't link everything to libcap
The intent of the assignments around the check for libcap was obviously
to avoid polluting LIBS. To work properly, LIBS must be restored from
the save_LIBS variable.
The practical effect is small though, because pretty much everything
links with libbasic, which links with CAP_LIBS.
Michal Schmidt [Tue, 13 Oct 2015 14:52:53 +0000 (16:52 +0200)]
build: fix overlinking to libdw
We have two AC_CHECK_LIB checks for libdw. The first one has an empty
action-if-found, so it defaults to adding "-ldw" to LIBS. LIBS are
applied to everything we build. But only systemd-coredump needs libdw.
It already links to ELFUTILS_LIBS correctly in Makefile.am.
Drop the first AC_CHECK_LIB check. The second check is sufficient.
Q: Don't we already use "-Wl,--as-needed" to eliminate overlinking?
A: We do, but it is effective only for executables, not for shared
libraries. This is due to a libtool bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347650
Lennart Poettering [Wed, 14 Oct 2015 10:15:09 +0000 (12:15 +0200)]
Merge pull request #1530 from teg/network-fixes-2
networkd/libsystemd-network: collection of trivial patches v2
Lennart Poettering [Wed, 14 Oct 2015 10:05:24 +0000 (12:05 +0200)]
Merge pull request #1529 from evverx/dbus-props-syslog-fac-pri
core: expose `SyslogFacility` and `SyslogLevel` as properties on dbus
Evgeny Vereshchagin [Sun, 11 Oct 2015 04:57:17 +0000 (04:57 +0000)]
core: expose SyslogLevel and SyslogFacility as properties on dbus
Lennart Poettering [Wed, 14 Oct 2015 07:54:13 +0000 (09:54 +0200)]
Merge pull request #1560 from evverx/fix-default-chopping
bus-util: change `Default`-chopping to `Limit`-searching
Lennart Poettering [Wed, 14 Oct 2015 07:53:39 +0000 (09:53 +0200)]
Merge pull request #1558 from martinpitt/master
Fix keymap aliases and add support for Lenovo Thinkpad Yoga S1
Lennart Poettering [Wed, 14 Oct 2015 07:47:52 +0000 (09:47 +0200)]
Merge pull request #1561 from phomes/unused-function
manager: remove unused function
Martin Pitt [Wed, 14 Oct 2015 04:52:41 +0000 (06:52 +0200)]
keymap: Drop keyboard-keys-to-name.h
We don't use that anywhere any more. With the introduction of alias names it
also is not a proper mapping any more as several keys (e. g. KEY_COFFEE and
KEY_SCREENLOCK) have the same numerical mapping.
Martin Pitt [Tue, 13 Oct 2015 16:24:47 +0000 (18:24 +0200)]
keymap: Drop ThinkPad Yoga
The Yoga's firmware sends key events whenever it's being folded or unfolded.
These are thus *not* a button for requesting a screen orientation change, just
an indication that this already happened. Thus they should not be assigned to
"direction", but be ignored. Assigning them to "reserved" does not silence the
"unknown key pressed" kernel warning, so there's no point in maintaining a
mapping here.
Fixes #1440
Martin Pitt [Tue, 13 Oct 2015 16:20:34 +0000 (18:20 +0200)]
keymap: Recognize KEY_* aliases
linux/input.h contains alias definitions like
#define KEY_COFFEE 152
#define KEY_SCREENLOCK KEY_COFFEE
#define KEY_ROTATE_DISPLAY 153
#define KEY_DIRECTION KEY_ROTATE_DISPLAY
But we ignored these when building keyboard-keys-list.txt. Also allow the value
to start with "K" now (for KEY_*), and drop the hardcoded COFFEE → SCREENLOCK
aliasing.
This fixes assignments to key "direction".
Fixes #1151
Thomas Hindoe Paaboel Andersen [Mon, 12 Oct 2015 20:10:15 +0000 (22:10 +0200)]
manager: remove unused function
Evgeny Vereshchagin [Tue, 13 Oct 2015 18:45:11 +0000 (18:45 +0000)]
bus-util: change `Default`-chopping to `Limit`-searching
See https://github.com/systemd/systemd/pull/1534#commitcomment-
13744013
Actually, thinking about this, maybe it would be nicer to actually look
for "Limit" in the string rather than chopping off a "Default"....
Sounds more generic...
Zbigniew Jędrzejewski-Szmek [Tue, 13 Oct 2015 18:22:12 +0000 (14:22 -0400)]
man: /dev/kmsg is not a socket
Fixup for #1542.
Lennart Poettering [Tue, 13 Oct 2015 17:23:54 +0000 (19:23 +0200)]
Merge pull request #1548 from evverx/journalctl-catalog-ops-fixes
Fix journalctl --dump-catalog, journalctl --list-catalog
Lennart Poettering [Tue, 13 Oct 2015 15:28:29 +0000 (17:28 +0200)]
Merge pull request #1534 from evverx/expose-rlimits-on-dbus
Expose `DefaultLimit*` as properties on dbus
Lennart Poettering [Tue, 13 Oct 2015 15:23:33 +0000 (17:23 +0200)]
Merge pull request #1542 from keszybz/journal-audit-optional
Make journald audit socket maskable
Daniel Mack [Tue, 13 Oct 2015 11:46:39 +0000 (13:46 +0200)]
Merge pull request #1544 from keszybz/man-IPv6AcceptRouterAdvertisements
man: describe IPv6AcceptRouterAdvertisements= better
Daniel Mack [Tue, 13 Oct 2015 11:46:01 +0000 (13:46 +0200)]
Merge pull request #1545 from keszybz/check-for-xsltproc
build-sys: check for xsltproc when building manpages
Lennart Poettering [Tue, 13 Oct 2015 10:41:13 +0000 (12:41 +0200)]
Merge pull request #1552 from jsynacek/short-flags-since-until
journalctl: introduce short options for --since and --until
Jan Synacek [Tue, 13 Oct 2015 08:50:49 +0000 (10:50 +0200)]
journalctl: introduce short options for --since and --until
Fixes #1514.
Evgeny Vereshchagin [Tue, 13 Oct 2015 06:04:11 +0000 (09:04 +0300)]
journalctl: enable args for --dump-catalog and --list-catalog
`journalctl --dump-catalog ID1 ID2 ...` works fine.
Evgeny Vereshchagin [Tue, 13 Oct 2015 06:01:37 +0000 (09:01 +0300)]
journalctl: open pager for --dump-catalog and --list-catalog
Zbigniew Jędrzejewski-Szmek [Mon, 12 Oct 2015 03:25:43 +0000 (23:25 -0400)]
Document journald sockets paths a bit more
Adding them to the documentation makes it easier to find
the right man page for people who are trying to understand
where some socket in the filesystem is coming from.
Zbigniew Jędrzejewski-Szmek [Mon, 12 Oct 2015 17:50:03 +0000 (13:50 -0400)]
build-sys: check for xsltproc when building manpages
Only check for xsltproc if it will be used.
If not found, complain.
https://github.com/systemd/systemd/issues/1521
Zbigniew Jędrzejewski-Szmek [Wed, 30 Sep 2015 18:59:43 +0000 (14:59 -0400)]
man: describe IPv6AcceptRouterAdvertisements= better
With the previous description it wasn't clear that the
kernel default is being described.
Add link to kernel docs.
Zbigniew Jędrzejewski-Szmek [Sun, 2 Aug 2015 17:55:57 +0000 (13:55 -0400)]
journald: make audit socket optional
If we were given some sockets through socket activation, and audit
socket is not among them, do not try to open it. This way, if the
socket unit is disabled, we will not receive audit events.
https://bugzilla.redhat.com/show_bug.cgi?id=1227379
Daniel Mack [Mon, 12 Oct 2015 13:27:37 +0000 (15:27 +0200)]
Merge pull request #1536 from jsynacek/master
po/da: use unix line endings
David Herrmann [Mon, 12 Oct 2015 13:23:51 +0000 (15:23 +0200)]
Merge pull request #1540 from zonque/cmsg
sd-daemon: wipe out memory before using CMSG_NXTHDR()
Daniel Mack [Mon, 12 Oct 2015 12:44:26 +0000 (14:44 +0200)]
sd-daemon: wipe out memory before using CMSG_NXTHDR()
CMSG_NXTHDR() checks for cmsg->cmsg_len *after* it increased the pointer.
While this makes sense for parsing received messages, that's a pitfall
for code crafting messages with this macro.
Wipe out the allocated memory to fix this.
Jan Synacek [Mon, 12 Oct 2015 07:56:24 +0000 (09:56 +0200)]
po/da: use unix line endings
Daniel Mack [Mon, 12 Oct 2015 07:45:58 +0000 (09:45 +0200)]
Merge pull request #1532 from phomes/trivial-fixes
Trivial fixes
Evgeny Vereshchagin [Mon, 12 Oct 2015 06:39:00 +0000 (06:39 +0000)]
core: manager: expose DefaultLimit* as properties on dbus
Evgeny Vereshchagin [Mon, 12 Oct 2015 05:16:05 +0000 (05:16 +0000)]
bus-util: add bus_property_get_rlimit (move from core/dbus_execute)