platform/upstream/systemd.git
10 years agoTODO: update
Kay Sievers [Mon, 13 Jan 2014 02:51:26 +0000 (10:51 +0800)]
TODO: update

10 years agosd-dns: coding style cleanup
Daniel Buch [Sun, 12 Jan 2014 18:42:33 +0000 (19:42 +0100)]
sd-dns: coding style cleanup

10 years agonetworkd: fix wording
Tom Gundersen [Sun, 12 Jan 2014 14:44:40 +0000 (15:44 +0100)]
networkd: fix wording

10 years agoTODO: update rtnl/network sections
Tom Gundersen [Sat, 11 Jan 2014 20:19:10 +0000 (20:19 +0000)]
TODO: update rtnl/network sections

10 years agonetworkd: generate resolv.conf
Tom Gundersen [Sun, 5 Jan 2014 22:01:10 +0000 (23:01 +0100)]
networkd: generate resolv.conf

This adds support to generate a basic resolv.conf in /run/systemd/network.
This file will not take any effect unless a symlink is created from
/etc/resolv.conf.

Nameservers received over DHCP takes precedence over statically configured ones.

Note: /etc/resolv.conf is severely limited, so in the future we will likely
rather provide a much more powerfull nss plugin (or something to that effect),
but this should allow current users to function without any loss of
functionality.

10 years agonetworkd: bridge - remove redundant state
Tom Gundersen [Sat, 11 Jan 2014 20:20:14 +0000 (20:20 +0000)]
networkd: bridge - remove redundant state

We will not insist on getting the reply from rtnl that the bridge
was created before considering the bridge ready, as we will be
notified about that via udev. We will listen for the rtnl response
however, in case the creation of the bridge failed.

10 years agonetworkd: don't automatically reload config at runtime
Tom Gundersen [Sat, 11 Jan 2014 20:16:13 +0000 (20:16 +0000)]
networkd: don't automatically reload config at runtime

We don't know if the config will be consistent, so do as systemd itself and only
load config when the daemon starts (and possibly, in the future, when explicitly requested).

10 years agonetworkd: improve logging a bit
Tom Gundersen [Sun, 12 Jan 2014 14:24:11 +0000 (15:24 +0100)]
networkd: improve logging a bit

10 years agobus-proxyd: add some more debugging
Tom Gundersen [Fri, 10 Jan 2014 20:40:19 +0000 (20:40 +0000)]
bus-proxyd: add some more debugging

Make sure we print a message when exiting with an error.

10 years agocore: don't allow setting NOTIFY_SOCKET and similar env vars we need ourselves via...
Lennart Poettering [Sun, 12 Jan 2014 12:10:40 +0000 (20:10 +0800)]
core: don't allow setting NOTIFY_SOCKET and similar env vars we need ourselves via SetEnvironment bus calls

We just quietly eat them up, so that simple environment importing still
works without error.

10 years agoupdate TODO
Lennart Poettering [Sun, 12 Jan 2014 12:10:33 +0000 (20:10 +0800)]
update TODO

10 years agocore: clean up environment block for --user instances a bit
Lennart Poettering [Sun, 12 Jan 2014 11:39:56 +0000 (19:39 +0800)]
core: clean up environment block for --user instances a bit

10 years agobus: add test case for signature type
Lennart Poettering [Sun, 12 Jan 2014 11:15:29 +0000 (19:15 +0800)]
bus: add test case for signature type

10 years agoman: add busctl(1)
Zbigniew Jędrzejewski-Szmek [Sun, 12 Jan 2014 04:44:34 +0000 (23:44 -0500)]
man: add busctl(1)

10 years agobus: properly handle EOF error conditions in proxyd
Lennart Poettering [Sun, 12 Jan 2014 02:56:40 +0000 (10:56 +0800)]
bus: properly handle EOF error conditions in proxyd

EOF is not an error so we should not print an error message about it.

10 years agojournald: do not free space when disk space runs low
Zbigniew Jędrzejewski-Szmek [Wed, 13 Nov 2013 05:42:22 +0000 (00:42 -0500)]
journald: do not free space when disk space runs low

Before, journald would remove journal files until both MaxUse= and
KeepFree= settings would be satisfied. The first one depends (if set
automatically) on the size of the file system and is constant.  But
the second one depends on current use of the file system, and a spike
in disk usage would cause journald to delete journal files, trying to
reach usage which would leave 15% of the disk free. This behaviour is
surprising for the user who doesn't expect his logs to be purged when
disk usage goes above 85%, which on a large disk could be some
gigabytes from being full. In addition attempting to keep 15% free
provides an attack vector where filling the disk sufficiently disposes
of almost all logs.

Instead, obey KeepFree= only as a limit on adding additional files.
When replacing old files with new, ignore KeepFree=. This means that
if journal disk usage reached some high point that at some later point
start to violate the KeepFree= constraint, journald will not add files
to go above this point, but it will stay (slightly) below it. When
journald is restarted, it forgets the previous maximum usage value,
and sets the limit based on the current usage, so if disk remains to
be filled, journald might use one journal-file-size less on each
restart, if restarts happen just after rotation. This seems like a
reasonable compromise between implementation complexity and robustness.

10 years agogpt-auto-generator: use EBADSLT code when unable to detect partition type
Zbigniew Jędrzejewski-Szmek [Sat, 11 Jan 2014 21:45:29 +0000 (16:45 -0500)]
gpt-auto-generator: use EBADSLT code when unable to detect partition type

ENODEV suggests that something is missing, which is be misleading
here.

10 years agogpt-auto-generator: skip nonexistent devices
Łukasz Stelmach [Tue, 7 Jan 2014 14:00:22 +0000 (15:00 +0100)]
gpt-auto-generator: skip nonexistent devices

The devices we work with have eMMC chips for storage. The chips
provide four "hardware" partitions.  The first is /dev/mmcblk0, it
takes almost whole space and holds a GPT with several real partitions
(/dev/mmcblk0p?). Then there are three block devices (mmcblk0boot0,
mmcblk0boot1, rpmb) that are part of the same hardware as mmcblk0 that
are presented by the kernel as children of the latter. That relationship
makes gpt-auto-generator try to peek them but since they are not GPT
partitions blkid_do_safeprobe() returns -2 making verify_gpt_parition()
function return -ENODEV.

10 years agoycm: autocompose flags from the Makefile
Dave Reisner [Sun, 24 Nov 2013 13:56:56 +0000 (08:56 -0500)]
ycm: autocompose flags from the Makefile

This should hopefully be self-maintaining.

10 years agopam: skip DBUS_SESSION_BUS_ADDRESS export when kdbus is not active
Kay Sievers [Sat, 11 Jan 2014 17:18:41 +0000 (01:18 +0800)]
pam: skip DBUS_SESSION_BUS_ADDRESS export when kdbus is not active

10 years agomake socket_instantiate_service use cleanup gcc attribute
Michael Scherer [Sat, 11 Jan 2014 16:20:57 +0000 (17:20 +0100)]
make socket_instantiate_service use cleanup gcc attribute

10 years agobus: fix length calculation when serializing SD_BUS_TYPE_SIGNATURE
Kay Sievers [Sat, 11 Jan 2014 16:30:49 +0000 (00:30 +0800)]
bus: fix length calculation when serializing SD_BUS_TYPE_SIGNATURE

10 years agocore: fix unused variable
Zbigniew Jędrzejewski-Szmek [Sat, 11 Jan 2014 14:52:48 +0000 (09:52 -0500)]
core: fix unused variable

10 years agonetwork: use GNU-ism to simplify macros
Zbigniew Jędrzejewski-Szmek [Sat, 11 Jan 2014 14:42:55 +0000 (09:42 -0500)]
network: use GNU-ism to simplify macros

Thanks David!

10 years agojournalctl: allow globbing in --unit and --user-unit
Zbigniew Jędrzejewski-Szmek [Sun, 29 Dec 2013 00:47:36 +0000 (19:47 -0500)]
journalctl: allow globbing in --unit and --user-unit

This is a continuation of e3e0314b systemctl: allow globbing in commands
which take multiple unit names.

Multiple patterns can be specified, as separate arguments, or as one argument
with patterns seperated by commas.

If patterns are given, at least one unit must be matched (by any of the patterns).
This is different behaviour than systemctl, but here it is necessary because
otherwise anything would be matched, which is unlikely to be the intended
behaviour.

https://bugs.freedesktop.org/show_bug.cgi?id=59336

10 years agojournal: fix access to munmapped memory in sd_journal_enumerate_unique
Zbigniew Jędrzejewski-Szmek [Sun, 29 Dec 2013 00:33:23 +0000 (19:33 -0500)]
journal: fix access to munmapped memory in sd_journal_enumerate_unique

sd_j_e_u needs to keep a reference to an object while comparing it
with possibly duplicate objects in other files. Because the size of
mmap cache is limited, with enough files and object to compare to,
at some point the object being compared would be munmapped, resulting
in a segmentation fault.

Fix this issue by turning keep_always into a reference count that can
be increased and decreased. Other callers which set keep_always=true
are unmodified: their references are never released but are ignored
when the whole file is closed, which happens at some point. keep_always
is increased in sd_j_e_u and later on released.

10 years agosd-dns: simplify headers
Tom Gundersen [Sat, 11 Jan 2014 14:59:56 +0000 (14:59 +0000)]
sd-dns: simplify headers

As noted by Lennart: HAVE_CONFIG_H is done implicitly and sys/prctl.h is
mandatory.

10 years agosd-dns: update/add license texts
Tom Gundersen [Sat, 11 Jan 2014 14:54:22 +0000 (14:54 +0000)]
sd-dns: update/add license texts

10 years agosd-dns: cleanup public header
Tom Gundersen [Sat, 11 Jan 2014 14:51:30 +0000 (14:51 +0000)]
sd-dns: cleanup public header

Don't include internal headers
Update license text
Use _SD_BEGIN/END_DECLARATIONS

10 years agosd-dns: initial commit
Daniel Buch [Mon, 6 Jan 2014 12:41:59 +0000 (13:41 +0100)]
sd-dns: initial commit

Origin: <http://0pointer.de/lennart/projects/libasyncns/>

[tomegun: renamed some more files asyncns -> sd-dns and moved to libsystemd-bus as
requested by Lennart]

10 years agoudev/net_id: Introduce predictable network names for Linux on System z
Hendrik Brueckner [Thu, 9 Jan 2014 10:28:12 +0000 (11:28 +0100)]
udev/net_id: Introduce predictable network names for Linux on System z

Use the bus-ID to create predicatable devices names for network interfaces
on Linux on System z instances.  The bus-ID identifies a device in the s390
channel subsystem.

Network interfaces of device type Ethernet are named as:
    enccw0.0.1234    (13 characters)
up to
    enccwff.7.ffff   (14 characters)

CTC network devices of device type SLIP, use a different prefix as follows:
    slccw0.0.1234    (13 characters)

See also Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=870859
[tomegun: typical problem of netdevs switching names between reboots.]

10 years agohwdb: Add support for Toshiba Satellite P75-A7200 keyboard
Unai Uribarri [Sat, 11 Jan 2014 14:19:41 +0000 (09:19 -0500)]
hwdb: Add support for Toshiba Satellite P75-A7200 keyboard

10 years agoRevert "bus: export bus address also when compiled without kdbus"
Kay Sievers [Fri, 10 Jan 2014 22:22:19 +0000 (06:22 +0800)]
Revert "bus: export bus address also when compiled without kdbus"

This reverts commit 9130f2128b64de19a3b7d6db7e0d371adfd296c2.

It's too early to do that. For now we should only "break" the
--enable-kdbus case, not the normal one.

10 years agoman: clarify sd_bus_e_get_errno with NULL arg
Zbigniew Jędrzejewski-Szmek [Fri, 10 Jan 2014 14:10:18 +0000 (09:10 -0500)]
man: clarify sd_bus_e_get_errno with NULL arg

10 years agobus: convert a bus error with NULL name into an errno of 0 in sd_bus_error_get_errno()
Lennart Poettering [Fri, 10 Jan 2014 05:35:12 +0000 (13:35 +0800)]
bus: convert a bus error with NULL name into an errno of 0 in sd_bus_error_get_errno()

10 years agoman: mention which variables will be expanded in ExecStart
Zbigniew Jędrzejewski-Szmek [Fri, 10 Jan 2014 03:23:32 +0000 (22:23 -0500)]
man: mention which variables will be expanded in ExecStart

10 years agocore: fix lack of notifications after reload
Zbigniew Jędrzejewski-Szmek [Fri, 10 Jan 2014 01:49:18 +0000 (20:49 -0500)]
core: fix lack of notifications after reload

10 years agotmpfiles: don't allow label_fix to print ENOENT when we want to ignore it
Lukas Nykryn [Thu, 9 Jan 2014 17:00:50 +0000 (18:00 +0100)]
tmpfiles: don't allow label_fix to print ENOENT when we want to ignore it

10 years agodelta: ensure that d_type will be set on every fs
Lukas Nykryn [Thu, 9 Jan 2014 15:43:00 +0000 (16:43 +0100)]
delta: ensure that d_type will be set on every fs

10 years agobuild-sys: fix distcheck
Zbigniew Jędrzejewski-Szmek [Thu, 9 Jan 2014 03:34:59 +0000 (22:34 -0500)]
build-sys: fix distcheck

10 years agonetworkd: print the received DHCPv4 address and gateway
Zbigniew Jędrzejewski-Szmek [Thu, 9 Jan 2014 03:04:26 +0000 (22:04 -0500)]
networkd: print the received DHCPv4 address and gateway

It seems that networkd stores in_addr.s_addr contents in reverse
order (little-endian, not network order). This is a bit confusing,
but sd_rtnl evidently likes this order.

10 years agonetworkd: use structured logging for links and bridges
Zbigniew Jędrzejewski-Szmek [Thu, 9 Jan 2014 01:42:38 +0000 (20:42 -0500)]
networkd: use structured logging for links and bridges

10 years agoNo need to canonicalize fixed paths
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2014 22:41:41 +0000 (17:41 -0500)]
No need to canonicalize fixed paths

10 years agoImprove messages about user mode a bit
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2014 22:20:45 +0000 (17:20 -0500)]
Improve messages about user mode a bit

10 years agonspawn: do not invoke RegisterMachine on machined from inside the new PID namespace
Lennart Poettering [Thu, 9 Jan 2014 00:42:57 +0000 (08:42 +0800)]
nspawn: do not invoke RegisterMachine on machined from inside the new PID namespace

On kdbus user credentials are not translated across PID namespaces, but
simply invalidated if sender and receiver namespaces don't match. This
makes it impossible to properly authenticate requests from different PID
namespaces (which is probably a good thing). Hence, register the machine
in the parent and not the client and properly synchronize this.

10 years agobus: make the bus driver support the driver interface under both / and /org/freedeskt...
Lennart Poettering [Thu, 9 Jan 2014 00:19:22 +0000 (08:19 +0800)]
bus: make the bus driver support the driver interface under both / and /org/freedesktop/DBus

Some clients apparently use the "/" path instead of
"/org/freedesktop/DBus". dbus-daemon didn't care, so we need to support
both.

10 years agologind: wait for the user service to finish startup before completing login attempt
Lennart Poettering [Wed, 8 Jan 2014 22:45:38 +0000 (06:45 +0800)]
logind: wait for the user service to finish startup before completing login attempt

10 years agodriverd: fix use-after-free error when maintaining match lists
Lennart Poettering [Wed, 8 Jan 2014 15:06:48 +0000 (23:06 +0800)]
driverd: fix use-after-free error when maintaining match lists

10 years agoRevert "bus-driverd: do not track identical matches"
Kay Sievers [Wed, 8 Jan 2014 15:07:28 +0000 (23:07 +0800)]
Revert "bus-driverd: do not track identical matches"

This reverts commit 234e28aa1cd37dee597c719ac5ca004c6215d28c.

10 years agobus: export bus address also when compiled without kdbus
Mantas Mikulėnas [Wed, 8 Jan 2014 12:08:34 +0000 (14:08 +0200)]
bus: export bus address also when compiled without kdbus

It was removed from user@.service, so it should be added here.

10 years agobus: use existing macros from def.h
Mantas Mikulėnas [Wed, 8 Jan 2014 12:08:33 +0000 (14:08 +0200)]
bus: use existing macros from def.h

10 years agobus-driverd: do not track identical matches
Kay Sievers [Wed, 8 Jan 2014 13:32:37 +0000 (21:32 +0800)]
bus-driverd: do not track identical matches

Identical matches are only one time in the hash map but multiple
times in the list; when removing, the hash will be empty but the
list still has entries.

Not adding dupicates to the list should keep us in sync and prevent
hitting the assert.

10 years agobus-driverd: properly reply to UpdateActivationEnvironment call
Kay Sievers [Wed, 8 Jan 2014 10:20:02 +0000 (18:20 +0800)]
bus-driverd: properly reply to UpdateActivationEnvironment call

10 years agodbus1-generator: install user version
Kay Sievers [Wed, 8 Jan 2014 10:10:39 +0000 (18:10 +0800)]
dbus1-generator: install user version

10 years agopam_systemd: export DBUS_SESSION_BUS_ADDRESS
Kay Sievers [Mon, 6 Jan 2014 04:00:16 +0000 (08:00 +0400)]
pam_systemd: export DBUS_SESSION_BUS_ADDRESS

10 years agobus: allow omitting quotes for values in match strings
Lennart Poettering [Wed, 8 Jan 2014 10:09:25 +0000 (18:09 +0800)]
bus: allow omitting quotes for values in match strings

dbus-daemon allows this, the dbus specification doesn't explicitly say
anything about it, so let's follow dbus-daemon on this.

10 years agoupdate TODO
Lennart Poettering [Wed, 8 Jan 2014 10:09:05 +0000 (18:09 +0800)]
update TODO

10 years agobus-driverd: implement UpdateActivationEnvironment method
Kay Sievers [Wed, 8 Jan 2014 09:09:31 +0000 (17:09 +0800)]
bus-driverd: implement UpdateActivationEnvironment method

10 years agoman: document label escaping functions
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2014 04:05:17 +0000 (23:05 -0500)]
man: document label escaping functions

10 years agoman: fix bogus description of sd_bus_creds_has_*_cap
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2014 03:27:43 +0000 (22:27 -0500)]
man: fix bogus description of sd_bus_creds_has_*_cap

10 years agodbus1-generator: fix copy-pasto
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2014 03:18:46 +0000 (22:18 -0500)]
dbus1-generator: fix copy-pasto

10 years agosleep.c: fix typo
Michele Curti [Tue, 7 Jan 2014 16:51:41 +0000 (17:51 +0100)]
sleep.c: fix typo

10 years agoman: document sd-bus error functions
Zbigniew Jędrzejewski-Szmek [Wed, 8 Jan 2014 02:46:36 +0000 (21:46 -0500)]
man: document sd-bus error functions

10 years agobus-driverd: support user mode
Kay Sievers [Tue, 7 Jan 2014 12:20:22 +0000 (20:20 +0800)]
bus-driverd: support user mode

10 years agobus-proxyd: support --user bus address
Kay Sievers [Mon, 6 Jan 2014 23:30:34 +0000 (07:30 +0800)]
bus-proxyd: support --user bus address

10 years agokeymap: Recognize different Toshiba Satellite capitalizations
Martin Pitt [Tue, 7 Jan 2014 08:40:01 +0000 (09:40 +0100)]
keymap: Recognize different Toshiba Satellite capitalizations

https://launchpad.net/bugs/665918

10 years agohwdb: fix match for Thinkpad X201 tablet
AppleBloom [Tue, 7 Jan 2014 01:51:47 +0000 (20:51 -0500)]
hwdb: fix match for Thinkpad X201 tablet

https://bugs.freedesktop.org/show_bug.cgi?id=71929

10 years agohwdb: remove duplicate entry for Samsung 700Z
Dmitry Pisklov [Tue, 7 Jan 2014 01:08:21 +0000 (20:08 -0500)]
hwdb: remove duplicate entry for Samsung 700Z

keyboardbrightnessup/down are not even real keys.

https://bugs.freedesktop.org/show_bug.cgi?id=72311

10 years agohwdb: add Samsung 700G
Dmitry Pisklov [Tue, 7 Jan 2014 01:06:59 +0000 (20:06 -0500)]
hwdb: add Samsung 700G

https://bugs.freedesktop.org/show_bug.cgi?id=72311

10 years agohwdb: change key mappings for Samsung 90X3A
Raudi [Tue, 7 Jan 2014 00:44:08 +0000 (19:44 -0500)]
hwdb: change key mappings for Samsung 90X3A

The Key codes didn't match with the described key. Also the key
identifier strings were missing. I hope I chose appropriate ones.

https://bugs.freedesktop.org/show_bug.cgi?id=70296

10 years agomount: don't creat local-fs.target links for mount units when runnin in user mode
Lennart Poettering [Mon, 6 Jan 2014 23:25:05 +0000 (07:25 +0800)]
mount: don't creat local-fs.target links for mount units when runnin in user mode

10 years agodbus1-generator: always pull proxy socket into sockets.target
Kay Sievers [Mon, 6 Jan 2014 23:09:08 +0000 (07:09 +0800)]
dbus1-generator: always pull proxy socket into sockets.target

dbus.socket does that for --system, we need to explicitly pull it
in for --user.

10 years agocore: do not add implicit dbus.socket dependency
Kay Sievers [Mon, 6 Jan 2014 22:37:23 +0000 (06:37 +0800)]
core: do not add implicit dbus.socket dependency

Sockets are ordered before sockets.target anyway, and sockets.target
is ordered before basic.target, and hence all bus services end up
being ordered after dbus.socket anyway. Since for kdbus clients
dbus.socket is obsolete, let's not add this dependency explicitly.

Also, it's hot in Australia and we are going for breakfast now.

10 years agobus-proxyd: --user -- add Accept=yes to socket
Kay Sievers [Mon, 6 Jan 2014 22:36:39 +0000 (06:36 +0800)]
bus-proxyd: --user -- add Accept=yes to socket

10 years agoupdate TODO
Lennart Poettering [Mon, 6 Jan 2014 22:34:39 +0000 (06:34 +0800)]
update TODO

10 years agocore: --user -- add basic.target an sort against it like --system does
Kay Sievers [Mon, 6 Jan 2014 03:52:17 +0000 (07:52 +0400)]
core: --user -- add basic.target an sort against it like --system does

10 years agocore: --user -- move generator directories from /tmp to $XDG_RUNTIME_DIR
Kay Sievers [Mon, 6 Jan 2014 03:50:26 +0000 (07:50 +0400)]
core: --user -- move generator directories from /tmp to $XDG_RUNTIME_DIR

10 years agobus-proxyd: fix socket path
Kay Sievers [Mon, 6 Jan 2014 17:33:58 +0000 (01:33 +0800)]
bus-proxyd: fix socket path

10 years agolibsystemd-dns: expose list of DNS servers
Tom Gundersen [Mon, 6 Jan 2014 11:17:34 +0000 (12:17 +0100)]
libsystemd-dns: expose list of DNS servers

My original patch only returned the first DNS server, but we might
want all of them.

10 years agolibsystemd-dhcp: expose received DNS server
Tom Gundersen [Sun, 5 Jan 2014 22:01:32 +0000 (23:01 +0100)]
libsystemd-dhcp: expose received DNS server

10 years agoconfigure: use POSIX conformant syntax for test
Dave Reisner [Sun, 5 Jan 2014 16:57:05 +0000 (11:57 -0500)]
configure: use POSIX conformant syntax for test

In shells like bash, == and = are equivalent in test contexts. In POSIX
compliant shells, == isn't a valid operator.

10 years agoFix format string mismatch introduced in ab9001a1
Michael Scherer [Sun, 5 Jan 2014 16:06:50 +0000 (17:06 +0100)]
Fix format string mismatch introduced in ab9001a1

src/libsystemd-bus/sd-bus.c: In function 'sd_bus_open_user':
src/libsystemd-bus/sd-bus.c:1104:25: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'long unsigned int' [-Wformat=]
                         asprintf(&b->address, UNIX_USER_BUS_FMT, (unsigned long) getuid());

10 years agoRevert "bus: driverd: don't attempt to remove from empty list"
Kay Sievers [Sun, 5 Jan 2014 14:53:39 +0000 (18:53 +0400)]
Revert "bus: driverd: don't attempt to remove from empty list"

We need to find the real reason for the failure, this just
avoids the symptoms.

This reverts commit 215c7625dd510759290d45d6c46434e4338843ec.

10 years agojournal: Add missing byte order conversions
George McCollister [Tue, 31 Dec 2013 20:37:32 +0000 (14:37 -0600)]
journal: Add missing byte order conversions

Convert entry_array.items[0] to host byte order prior to passing it to
chain_cache_put().

[zj: also use le64toh in journal-verify.c]

https://bugs.freedesktop.org/show_bug.cgi?id=73194

10 years agoshared/install: use char** convention for strvs
Zbigniew Jędrzejewski-Szmek [Fri, 27 Dec 2013 05:16:39 +0000 (00:16 -0500)]
shared/install: use char** convention for strvs

10 years agoRemove unused variables
Zbigniew Jędrzejewski-Szmek [Sun, 5 Jan 2014 05:32:43 +0000 (00:32 -0500)]
Remove unused variables

10 years agostrv: multiple cleanups
Simon Peeters [Sat, 4 Jan 2014 01:35:27 +0000 (02:35 +0100)]
strv: multiple cleanups

- turn strv_merge into strv_extend_strv.
   appending strv b to the end of strv a instead of creating a new strv
- strv_append: remove in favor of strv_extend and strv_push.
- strv_remove: write slightly more elegant
- strv_remove_prefix: remove unused function
- strv_overlap: use strv_contains
- strv_printf: STRV_FOREACH handles NULL correctly

10 years agoshared: util.c: unify split and split_quoted
Simon Peeters [Sat, 4 Jan 2014 01:35:25 +0000 (02:35 +0100)]
shared: util.c: unify split and split_quoted

10 years agoTODO: extend login capability note
David Herrmann [Sun, 5 Jan 2014 12:59:12 +0000 (13:59 +0100)]
TODO: extend login capability note

We cannot remove CAP_SYS_ADMIN, which basically makes removing all other
capabilities useless. Anyhow, still wouldn't hurt checking whether stuff
like CAP_KILL can be dropped from logind.

10 years agohwdb: update
Marcel Holtmann [Sun, 5 Jan 2014 08:44:34 +0000 (00:44 -0800)]
hwdb: update

10 years agobus: driverd: don't attempt to remove from empty list
Marc-Antoine Perennou [Sat, 28 Dec 2013 04:54:18 +0000 (13:54 +0900)]
bus: driverd: don't attempt to remove from empty list

10 years agobus: open user, not system, bus in bus_open_user_systemd()
Mantas Mikulėnas [Sat, 4 Jan 2014 23:57:11 +0000 (01:57 +0200)]
bus: open user, not system, bus in bus_open_user_systemd()

10 years agoutil.c: use read_one_line_file where possible
Simon Peeters [Sat, 4 Jan 2014 01:35:26 +0000 (02:35 +0100)]
util.c: use read_one_line_file where possible

10 years agoshared: procfs_file_alloca: handle pid==0
Simon Peeters [Sat, 4 Jan 2014 01:35:23 +0000 (02:35 +0100)]
shared: procfs_file_alloca: handle pid==0

when pid is set to 0 use /proc/self

10 years agoUpdate .mailmap file
Stefan Beller [Fri, 3 Jan 2014 19:33:21 +0000 (20:33 +0100)]
Update .mailmap file

This commit updates email addresses of people, who are already in the
.mailmap file, so I'd assume they have sorted out their viewpoint on
privacy within the .mailmap file.

The entries for this commit have been produced using:
        # Finding out duplicates by comparing email addresses:
        git shortlog -sne |awk '{ print $NF }' |sort |uniq -d

        # Finding out duplicates by comparing names:
        git shortlog -sne |awk '{ NF--; $1=""; print }' |sort |uniq -d

10 years agoswap: remove if/else with the same data path
Stefan Beller [Fri, 3 Jan 2014 19:33:20 +0000 (20:33 +0100)]
swap: remove if/else with the same data path

This was introduced in e1770af812 (2012-02-03, swap: replace failure
boolean by result enum).

This just removes unneeded lines of code, no functional change.

10 years agoman: document some more bus functions
Zbigniew Jędrzejewski-Szmek [Sun, 5 Jan 2014 00:28:52 +0000 (19:28 -0500)]
man: document some more bus functions

10 years agonetworkd: refuse to use .network files with missing Address/Gateway key
Tom Gundersen [Sat, 4 Jan 2014 20:13:47 +0000 (21:13 +0100)]
networkd: refuse to use .network files with missing Address/Gateway key

These keys are mandatory in [Address]/[Route] sections. Otherwise, we
hit an assert:

ens3: setting addresses
Assertion 'address->family == 2 || address->family == 10' failed at /build/amd64-generic/tmp/portage/sys-apps/systemd-9999-r1/work/systemd-9999/src/network/networkd-address.c:137, function address_configure(). Aborting.

Reported-by: Alex Polvi <alex.polvi@coreos.com>
At the same time make sure Route's Destination and Gateway uses the same address family.

10 years agoman: typo fix
Thomas Hindoe Paaboel Andersen [Sat, 4 Jan 2014 22:21:13 +0000 (23:21 +0100)]
man: typo fix

10 years agosd-event: add missing symbol, sd_event_source_set_io_fd
Dave Reisner [Sat, 4 Jan 2014 02:15:00 +0000 (21:15 -0500)]
sd-event: add missing symbol, sd_event_source_set_io_fd

This appears to have been omitted in 30caf8f3afd29da8 when the
the function was added.