]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
8 years agoMerge pull request #1619 from iaguis/nspawn-sysfs-netns-3
Lennart Poettering [Tue, 20 Oct 2015 10:22:32 +0000 (12:22 +0200)] 
Merge pull request #1619 from iaguis/nspawn-sysfs-netns-3

nspawn: skip /sys-as-tmpfs if we don't use private-network

8 years agoMerge pull request #1568 from poettering/netclass
Daniel Mack [Tue, 20 Oct 2015 08:31:38 +0000 (10:31 +0200)] 
Merge pull request #1568 from poettering/netclass

various fixes, for various things

8 years agonspawn: skip /sys-as-tmpfs if we don't use private-network 1619/head
Iago López Galeiras [Thu, 15 Oct 2015 10:13:13 +0000 (12:13 +0200)] 
nspawn: skip /sys-as-tmpfs if we don't use private-network

Since v3.11/7dc5dbc ("sysfs: Restrict mounting sysfs"), the kernel
doesn't allow mounting sysfs if you don't have CAP_SYS_ADMIN rights over
the network namespace.

So the mounting /sys as a tmpfs code introduced in
d8fc6a000fe21b0c1ba27fbfed8b42d00b349a4b doesn't work with user
namespaces if we don't use private-net. The reason is that we mount
sysfs inside the container and we're in the network namespace of the host
but we don't have CAP_SYS_ADMIN over that namespace.

To fix that, we mount /sys as a sysfs (instead of tmpfs) if we don't use
private network and ignore the /sys-as-a-tmpfs code if we find that /sys
is already mounted as sysfs.

Fixes #1555

8 years agodbus-execute: some cleanups when parsing EnvironmentFiles= for transient units 1568/head
Lennart Poettering [Mon, 19 Oct 2015 21:43:19 +0000 (23:43 +0200)] 
dbus-execute: some cleanups when parsing EnvironmentFiles= for transient units

8 years agostrv: Add _cleanup_strv_free_erase_ and _cleanup_string_free_erase_
Zbigniew Jędrzejewski-Szmek [Thu, 15 Oct 2015 14:02:35 +0000 (10:02 -0400)] 
strv: Add _cleanup_strv_free_erase_ and _cleanup_string_free_erase_

8 years agotree-wide: whenever we deal with passwords, erase them from memory after use
Lennart Poettering [Wed, 14 Oct 2015 20:40:23 +0000 (22:40 +0200)] 
tree-wide: whenever we deal with passwords, erase them from memory after use

A bit snake-oilish, but can't hurt.

8 years agocore: actually set pids_max field after parsing it
Lennart Poettering [Wed, 14 Oct 2015 20:41:25 +0000 (22:41 +0200)] 
core: actually set pids_max field after parsing it

Fixes one of the issues pointed out in #1522.

8 years agojournald: make sure r is always initialized
Lennart Poettering [Wed, 14 Oct 2015 17:33:20 +0000 (19:33 +0200)] 
journald: make sure r is always initialized

8 years agojournal: fix bad memory freeing
Lennart Poettering [Wed, 14 Oct 2015 17:33:01 +0000 (19:33 +0200)] 
journal: fix bad memory freeing

8 years agotree-wide: add more void casts for various syscall invocations
Lennart Poettering [Wed, 14 Oct 2015 17:32:46 +0000 (19:32 +0200)] 
tree-wide: add more void casts for various syscall invocations

8 years agocore: fix type of NetClass dbus property
Lennart Poettering [Wed, 14 Oct 2015 17:31:42 +0000 (19:31 +0200)] 
core: fix type of NetClass dbus property

it's exposed as uint32_t and it is internally an uint32_t, hence no need
to treat it as an unsigned.

8 years agoman: move documentation about NetClass from systemd.unit(5) to systemd.resource-contr...
Lennart Poettering [Wed, 14 Oct 2015 17:30:40 +0000 (19:30 +0200)] 
man: move documentation about NetClass from systemd.unit(5) to systemd.resource-control(5)

This is after all where we expose all the other cgroup props, especially
those that can be adjusted dynamically.

8 years agoupdate CODING_STYLE
Lennart Poettering [Mon, 19 Oct 2015 20:31:58 +0000 (22:31 +0200)] 
update CODING_STYLE

8 years agoupdate TODO
Lennart Poettering [Mon, 19 Oct 2015 20:30:11 +0000 (22:30 +0200)] 
update TODO

8 years agoMerge pull request #1614 from alkino/master
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

8 years agoMerge pull request #1613 from phomes/unused-functions-2
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

8 years agoHook more properties for transient units 1614/head
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.

8 years agotree-wide: remove unused functions 1613/head
Thomas Hindoe Paaboel Andersen [Mon, 19 Oct 2015 19:45:00 +0000 (21:45 +0200)] 
tree-wide: remove unused functions

8 years agoMerge pull request #1612 from evverx/man-systemd-tmpfiles
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

8 years agoman: systemd-tmpfiles requires absolute filenames 1612/head
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.

8 years agoMerge pull request #1584 from mischief/journal-remote-no-gnutls
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

8 years agoMerge pull request #1610 from evverx/man-tmpfiles-d
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

8 years agoMerge pull request #1598 from evverx/run-oomscoreadjust
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

8 years agoman: tmpfiles.d: add info about age field 1610/head
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`

8 years agoMerge pull request #1601 from grawity/patch-1
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

8 years agohwdb: fix a syntax error in 60-keyboard 1601/head
Mantas Mikulėnas [Sun, 18 Oct 2015 11:09:20 +0000 (14:09 +0300)] 
hwdb: fix a syntax error in 60-keyboard

8 years agoRevert "units: add 'smackfsroot=*' option into tmp.mount when SMACK is enabled"
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.

8 years agoMerge pull request #1595 from poettering/proxy-fixes
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

8 years agoshell-completion: systemd-run: add property OOMScoreAdjust 1598/head
Evgeny Vereshchagin [Sat, 17 Oct 2015 20:02:56 +0000 (20:02 +0000)] 
shell-completion: systemd-run: add property OOMScoreAdjust

8 years agorun: can launch units with OOMScoreAdjust
Evgeny Vereshchagin [Sat, 17 Oct 2015 19:58:29 +0000 (19:58 +0000)] 
run: can launch units with OOMScoreAdjust

8 years agoutil: add func for checking OOMScoreAdjust
Evgeny Vereshchagin [Sat, 17 Oct 2015 20:01:41 +0000 (20:01 +0000)] 
util: add func for checking OOMScoreAdjust

8 years agounit: allocate bus name match string on the stack 1595/head
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.

8 years agosd-bus: fix error handling of pthread API calls
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.

8 years agobus-proxy: don't close local bus fds twice
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.

8 years agoMerge pull request #1508 from msekletar/update-TODO-NPROC
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

8 years agoMerge pull request #1588 from mhalano/logitech-m560-mouse
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]

8 years agoAdded support to the wireless mouse Logitech M560. 1588/head
Marcos Alano [Fri, 16 Oct 2015 22:12:51 +0000 (19:12 -0300)] 
Added support to the wireless mouse Logitech M560.

8 years agoMerge pull request #1582 from evverx/dump-runtime-dir-mode
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

8 years agocore: dump RuntimeDirectories and RuntimeDirectoryMode too 1582/head
Evgeny Vereshchagin [Thu, 15 Oct 2015 19:15:11 +0000 (19:15 +0000)] 
core: dump RuntimeDirectories and RuntimeDirectoryMode too

8 years agoMerge pull request #1586 from martinpitt/master
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

8 years agokeymap: Add HP ProBook 6555b 1586/head
Martin Pitt [Fri, 16 Oct 2015 14:30:08 +0000 (16:30 +0200)] 
keymap: Add HP ProBook 6555b

Thanks to Olaf Hering!

8 years agoMerge pull request #1581 from teg/netlink-broadcast-leave
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

8 years agobuild: install journal-remote units and directory regardless of GNUTLS 1584/head
Nick Owens [Thu, 15 Oct 2015 23:24:47 +0000 (16:24 -0700)] 
build: install journal-remote units and directory regardless of GNUTLS

8 years agounits: .gitignore: units - ignore tmp.mount
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.

8 years agosd-netlink: refcount multicast groups 1581/head
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).

8 years agobtrfs: always remove the per-subvol qgroup when removing a subvol
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.

8 years agoMerge pull request #1575 from evverx/expose-manager-timerslacknsec
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

8 years agocore: expose manager's TimerSlackNSec as propery on dbus 1575/head
Evgeny Vereshchagin [Thu, 15 Oct 2015 11:55:04 +0000 (11:55 +0000)] 
core: expose manager's TimerSlackNSec as propery on dbus

8 years agoMerge pull request #1527 from keszybz/lz4
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

8 years agoMerge pull request #1572 from again4you/devel/tmp-smack
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

8 years agoMerge pull request #1569 from mustrumr/date-parse-additions
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

8 years agoMerge pull request #1574 from evverx/run-timer-slack-nsec
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

8 years agoshell-completion: systemd-run: add TimerSlackNSec property 1574/head
Evgeny Vereshchagin [Thu, 15 Oct 2015 10:01:09 +0000 (10:01 +0000)] 
shell-completion: systemd-run: add TimerSlackNSec property

8 years agorun: can launch units with TimerSlackNSec
Evgeny Vereshchagin [Thu, 15 Oct 2015 09:57:28 +0000 (09:57 +0000)] 
run: can launch units with TimerSlackNSec

8 years agounits: add 'smackfsroot=*' option into tmp.mount when SMACK is enabled 1572/head
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.

8 years agobuild-sys: enable lz4 by default if available 1527/head
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.

8 years agocompress: return errors without logging, do not fake errno
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.

8 years agoman: mention UTC support for calendar events 1569/head
Hristo Venev [Wed, 14 Oct 2015 23:58:02 +0000 (02:58 +0300)] 
man: mention UTC support for calendar events

8 years agotest: add calendarspec UTC tests
Hristo Venev [Wed, 14 Oct 2015 23:58:00 +0000 (02:58 +0300)] 
test: add calendarspec UTC tests

8 years agobasic: calendarspec UTC support
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.

8 years agoman: mention UTC support for timestamps
Hristo Venev [Wed, 14 Oct 2015 23:57:58 +0000 (02:57 +0300)] 
man: mention UTC support for timestamps

8 years agotest: parse_timestamp UTC and fractional seconds tests
Hristo Venev [Wed, 14 Oct 2015 23:56:57 +0000 (02:56 +0300)] 
test: parse_timestamp UTC and fractional seconds tests

8 years agobasic: parse_timestamp UTC and fractional seconds support
Hristo Venev [Wed, 14 Oct 2015 23:57:57 +0000 (02:57 +0300)] 
basic: parse_timestamp UTC and fractional seconds support

8 years agobasic: add mktime_or_timegm and localtime_or_gmtime_r
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`.

8 years agoMerge pull request #1567 from teg/logind-suspend-logging
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

8 years agologin: suspend - be a bit more explicit when logging 1567/head
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.

8 years agoMerge pull request #1528 from evverx/systemd-run-syslog-pri-fac
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

8 years agocore: execute: validate syslog level and facility 1528/head
Evgeny Vereshchagin [Wed, 14 Oct 2015 16:30:35 +0000 (16:30 +0000)] 
core: execute: validate syslog level and facility

8 years agoutil: add functions for validating 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

8 years agoMerge pull request #1562 from michich/overlinking
Lennart Poettering [Wed, 14 Oct 2015 15:29:24 +0000 (17:29 +0200)] 
Merge pull request #1562 from michich/overlinking

build: fix overlinking

8 years agoMerge pull request #1563 from poettering/exciting-fixes
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

8 years agoshell-completion: systemd-run: add SyslogFacility property
Evgeny Vereshchagin [Sun, 11 Oct 2015 03:57:07 +0000 (03:57 +0000)] 
shell-completion: systemd-run: add SyslogFacility property

8 years agosystemd-run: can launch units with SyslogFacility
Evgeny Vereshchagin [Sun, 11 Oct 2015 03:55:41 +0000 (03:55 +0000)] 
systemd-run: can launch units with SyslogFacility

8 years agoshell-completion: systemd-run: add SyslogLevel property
Evgeny Vereshchagin [Sun, 11 Oct 2015 03:39:46 +0000 (03:39 +0000)] 
shell-completion: systemd-run: add SyslogLevel property

8 years agosystemd-run: can launch units with SyslogLevel
Evgeny Vereshchagin [Sun, 11 Oct 2015 03:37:50 +0000 (03:37 +0000)] 
systemd-run: can launch units with SyslogLevel

8 years agounit: remove [Install] section from the user exit.target unit 1563/head
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.

8 years agotty-ask-password-agent: don't warn if we cannot disable wall messages on the calling tty
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.

8 years agocore: log if the service to activate vanished before we activate it
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.

8 years agocompress: fix mmap error handling
Zbigniew Jędrzejewski-Szmek [Wed, 14 Oct 2015 14:15:27 +0000 (10:15 -0400)] 
compress: fix mmap error handling

8 years agobuild: libdl is needed only for libnss_resolve 1562/head
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.

8 years agobuild: don't link everything to libcap
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.

8 years agobuild: fix overlinking to libdw
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

8 years agoMerge pull request #1530 from teg/network-fixes-2
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

8 years agoMerge pull request #1529 from evverx/dbus-props-syslog-fac-pri
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

8 years agocore: expose SyslogLevel and SyslogFacility as properties on dbus 1529/head
Evgeny Vereshchagin [Sun, 11 Oct 2015 04:57:17 +0000 (04:57 +0000)] 
core: expose SyslogLevel and SyslogFacility as properties on dbus

8 years agoMerge pull request #1560 from evverx/fix-default-chopping
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

8 years agoMerge pull request #1558 from martinpitt/master
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

8 years agoMerge pull request #1561 from phomes/unused-function
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

8 years agokeymap: Drop keyboard-keys-to-name.h 1558/head
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.

8 years agokeymap: Drop ThinkPad Yoga
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

8 years agokeymap: Recognize KEY_* aliases
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

8 years agomanager: remove unused function 1561/head
Thomas Hindoe Paaboel Andersen [Mon, 12 Oct 2015 20:10:15 +0000 (22:10 +0200)] 
manager: remove unused function

8 years agobus-util: change `Default`-chopping to `Limit`-searching 1560/head
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...

8 years agoman: /dev/kmsg is not a socket
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.

8 years agoMerge pull request #1548 from evverx/journalctl-catalog-ops-fixes
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

8 years agoMerge pull request #1534 from evverx/expose-rlimits-on-dbus
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

8 years agoMerge pull request #1542 from keszybz/journal-audit-optional
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

8 years agoMerge pull request #1544 from keszybz/man-IPv6AcceptRouterAdvertisements
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

8 years agoMerge pull request #1545 from keszybz/check-for-xsltproc
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

8 years agoMerge pull request #1552 from jsynacek/short-flags-since-until
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