Tom Gundersen [Fri, 16 Oct 2015 16:09:10 +0000 (18:09 +0200)]
libsystemd-network: split icm6-util.[ch] out of dhcp6 code
Tom Gundersen [Fri, 16 Oct 2015 15:34:58 +0000 (17:34 +0200)]
networkd: rename icmp6 to ndisc
Tom Gundersen [Fri, 16 Oct 2015 15:07:47 +0000 (17:07 +0200)]
sd-ndisc: rename API from sd-icmp6-nd
Tom Gundersen [Thu, 15 Oct 2015 17:25:31 +0000 (19:25 +0200)]
sd-icmp6-nd: rename files to sd-ndisc
The actual code rename will follow. The reason for the change of name is to make it
simpler and more uniform with how we name other libraries (we don't include the
underlying protocol). The new name also matches the naming in the kernel (which
is particularly relevent here as we expect to let the kernel do some parts of
the protocol and we do others).
Tom Gundersen [Thu, 22 Oct 2015 15:02:54 +0000 (17:02 +0200)]
Merge pull request #1644 from reverendhomer/patch-1
networkd-manager: fix swapped arguments
Lennart Poettering [Thu, 22 Oct 2015 10:20:12 +0000 (12:20 +0200)]
Merge pull request #1642 from evverx/allow-unbalanced-double-quote-in-relax-mode
util: allow unbalanced double quote in EXTRACT_QUOTES|EXTRACT_RELAX mode
reverendhomer [Thu, 22 Oct 2015 07:36:07 +0000 (10:36 +0300)]
networkd-manager: fix swapped arguments
fixes Coverity #1328493
Evgeny Vereshchagin [Thu, 22 Oct 2015 00:37:32 +0000 (00:37 +0000)]
util: allow unbalanced double quote in EXTRACT_QUOTES|EXTRACT_RELAX mode
extract_first_word understands "\'string" but doesn't understand "\"string"
fixed this inconsistency.
Lennart Poettering [Wed, 21 Oct 2015 19:01:21 +0000 (21:01 +0200)]
Merge pull request #1639 from alkino/master
core dbus: Check that flush works with memstream
Nicolas Cornu [Wed, 21 Oct 2015 16:17:12 +0000 (18:17 +0200)]
core dbus: Check that flush works with memstream
Lennart Poettering [Wed, 21 Oct 2015 14:38:35 +0000 (16:38 +0200)]
Merge pull request #1637 from alkino/master
shell-completion: systemd-run: add new property EnvironmentFile
Nicolas Cornu [Wed, 21 Oct 2015 14:18:59 +0000 (16:18 +0200)]
shell-completion: systemd-run: add new property EnvironmentFile
Lennart Poettering [Wed, 21 Oct 2015 13:56:48 +0000 (15:56 +0200)]
Merge pull request #1632 from evverx/fix-namespace-parsing
core: fix namespace parsing
Lennart Poettering [Wed, 21 Oct 2015 13:55:31 +0000 (15:55 +0200)]
Merge pull request #1636 from alkino/master
Add zsh completion on systemd-run's properties
Nicolas Cornu [Wed, 21 Oct 2015 13:51:09 +0000 (15:51 +0200)]
Add zsh completion on systemd-run's properties
Evgeny Vereshchagin [Wed, 21 Oct 2015 11:49:36 +0000 (11:49 +0000)]
core: fix namespace parsing
ReadOnlyDirectories=-/ works fine
Lennart Poettering [Wed, 21 Oct 2015 10:08:44 +0000 (12:08 +0200)]
Merge pull request #1623 from evverx/run-rw-ro-ia-dirs
systemd-run can launch units with ReadWriteDirectories, ReadOnlyDirectories, InaccessibleDirectories
Lennart Poettering [Wed, 21 Oct 2015 10:07:08 +0000 (12:07 +0200)]
Merge pull request #1626 from teg/networkd
networkd: assorted fixes
Tom Gundersen [Wed, 30 Sep 2015 16:17:43 +0000 (18:17 +0200)]
networkd: manager/link - only serialize once per event-loop iteration
Every time the state is written out we may trigger third-party apps, so
let's be a bit more careful about writing this out unnecessarily.
Tom Gundersen [Wed, 30 Sep 2015 13:32:16 +0000 (15:32 +0200)]
networkd: link - serialize addresses
Tom Gundersen [Sat, 3 Oct 2015 16:40:28 +0000 (18:40 +0200)]
networkd: route - add hash_ops
Tom Gundersen [Fri, 9 Oct 2015 21:43:52 +0000 (23:43 +0200)]
networkd: route - simplify route_new()
Tom Gundersen [Wed, 30 Sep 2015 12:01:44 +0000 (14:01 +0200)]
networkd: address - distinguish between addresses added by us and by others
We only keep the addresses that we added ourselves in link->addresses, and
introduce a new set link->addresses_foreign to keep addresses of unknown
origin.
Only functional change is that "foreign" addresses no longer prevent a link
from entering "configured" state.
Tom Gundersen [Wed, 30 Sep 2015 12:07:12 +0000 (14:07 +0200)]
networkd: address - rework firewall rules lifetime
Establish the firewall rule before creating the address, and do not create the address
if the firewall rule could not be created. Also, only drop the firewall rule once
the address has been removed from the kernel.
Tom Gundersen [Thu, 1 Oct 2015 15:31:14 +0000 (17:31 +0200)]
networkd: address - merge _change() into _configure()
These functions are almost entirely the same, so avoid duplication.
Tom Gundersen [Mon, 28 Sep 2015 15:16:12 +0000 (17:16 +0200)]
networkd: address - factor out address_update()
Call back into link_check_ready() whenever an address state change may have
made a link ready.
Tom Gundersen [Mon, 28 Sep 2015 11:38:43 +0000 (13:38 +0200)]
networkd: link - only consider configured when all addresses are ready
We were considering a link configured whilst its IPv6 addresses were still
tentative.
Fixes issue #650.
Evgeny Vereshchagin [Tue, 20 Oct 2015 19:59:43 +0000 (19:59 +0000)]
shell-completion: systemd-run: add new properties
"ReadWriteDirectories", "ReadOnlyDirectories", "InaccessibleDirectories"
Evgeny Vereshchagin [Tue, 20 Oct 2015 19:57:04 +0000 (19:57 +0000)]
run: can launch units with ReadWriteDirectories, ReadOnlyDirectories, InaccessibleDirectories
Ronny Chevalier [Tue, 20 Oct 2015 17:48:27 +0000 (19:48 +0200)]
Merge pull request #1622 from phomes/unused-variable
dbus-execute: remove unused variable
Thomas Hindoe Paaboel Andersen [Tue, 20 Oct 2015 17:36:54 +0000 (19:36 +0200)]
dbus-execute: remove unused variable
from
ceb728cf
Lennart Poettering [Tue, 20 Oct 2015 13:26:19 +0000 (15:26 +0200)]
Merge pull request #1616 from evverx/run-fix-environment-parsing
run: fix Environment parsing
Tom Gundersen [Tue, 20 Oct 2015 12:59:27 +0000 (14:59 +0200)]
Merge pull request #1538 from ssahani/ipv62
networkd: add support to configure IPv6 DAD
Evgeny Vereshchagin [Tue, 20 Oct 2015 02:04:10 +0000 (02:04 +0000)]
run: fix Environment parsing
* `Environment=` resets previous assignments
* `Environment='a=1 b=2'` sets `a` to `1` and `b` to `2`
* `Environment='"a=1 2" b=2"'` sets `a` to `1 2` and `b` to `2`
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
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
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
Lennart Poettering [Mon, 19 Oct 2015 21:43:19 +0000 (23:43 +0200)]
dbus-execute: some cleanups when parsing EnvironmentFiles= for transient units
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_
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.
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.
Lennart Poettering [Wed, 14 Oct 2015 17:33:20 +0000 (19:33 +0200)]
journald: make sure r is always initialized
Lennart Poettering [Wed, 14 Oct 2015 17:33:01 +0000 (19:33 +0200)]
journal: fix bad memory freeing
Lennart Poettering [Wed, 14 Oct 2015 17:32:46 +0000 (19:32 +0200)]
tree-wide: add more void casts for various syscall invocations
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.
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.
Lennart Poettering [Mon, 19 Oct 2015 20:31:58 +0000 (22:31 +0200)]
update CODING_STYLE
Lennart Poettering [Mon, 19 Oct 2015 20:30:11 +0000 (22:30 +0200)]
update TODO
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
Susant Sahani [Mon, 12 Oct 2015 09:02:12 +0000 (14:32 +0530)]
man: add man for IPV6 DAD
Susant Sahani [Mon, 12 Oct 2015 09:01:10 +0000 (14:31 +0530)]
networkd: add support for configure IPv6 DAD
Configures Ipv6 Duplicate Address Detection.
10
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`.