]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
10 years agobootchart: do not report warning when disk is missing model. 460/head
Dimitri John Ledkov [Wed, 1 Jul 2015 13:49:15 +0000 (14:49 +0100)] 
bootchart: do not report warning when disk is missing model.

In VMs / virtio drives there is no model. Also don't print "Disk:
(null)" in output if no model is available.

10 years agosysv-generator: fix coding-style
David Herrmann [Wed, 1 Jul 2015 11:02:58 +0000 (13:02 +0200)] 
sysv-generator: fix coding-style

Fix weird coding-style:
 - proper white-space
 - no if (func() >= 0) bail-outs
 - fix braces
 - avoid 'r' for anything but errno
 - init _cleanup_ variables unconditionally, even if not needed

10 years agoRevert "kmod-setup: don't print warning on -ENOSYS"
David Herrmann [Wed, 1 Jul 2015 10:54:58 +0000 (12:54 +0200)] 
Revert "kmod-setup: don't print warning on -ENOSYS"

This partially reverts commit 78d298bbc57e412574ea35e6e66f562d97fd9ebc.
The changed coding-style is kept, but the ENOENT->ENOSYS conversion is
reverted.

kmod was fixed upstream to no longer return ENOSYS. Also see:
    https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/?id=114ec87c85c35a2bd3682f9f891e494127be6fb5

The kmod fix is marked for backport, so no reason to bump the kmod
version we depend on.

10 years agosysv-generator test: Fix random ordering failure
Martin Pitt [Wed, 1 Jul 2015 05:34:23 +0000 (07:34 +0200)] 
sysv-generator test: Fix random ordering failure

test_simple_escaped() sometimes fails with

AssertionError: Lists differ: ['foo\\x2b.service', 'foo-admin.service'] != ['foo-admin.service', 'foo\\x2b.service']

We don't need to assume any order here, so compare them as a set, not a list.

10 years agoMerge pull request #411 from teg/udev-simplify-exec-envp
Kay Sievers [Tue, 30 Jun 2015 20:32:45 +0000 (22:32 +0200)] 
Merge pull request #411 from teg/udev-simplify-exec-envp

udev: event - simplify udev_event_spawn() logic

10 years agoMerge pull request #398 from teg/netlink-container-rework
David Herrmann [Tue, 30 Jun 2015 20:15:55 +0000 (22:15 +0200)] 
Merge pull request #398 from teg/netlink-container-rework

netlink container rework

Allocate containers as separate structs instead of individual arrays for each member field.

10 years agoMerge pull request #434 from kaysievers/wip
Martin Pitt [Tue, 30 Jun 2015 18:33:15 +0000 (20:33 +0200)] 
Merge pull request #434 from kaysievers/wip

udev: remove WAIT_FOR key

10 years agoudev: remove WAIT_FOR key 434/head
Kay Sievers [Tue, 30 Jun 2015 17:54:37 +0000 (19:54 +0200)] 
udev: remove WAIT_FOR key

This facility was never a proper solution, but only papered over
real bugs in the kernel. There are no known sysfs "timing bugs"
since a long time.

10 years agoMerge pull request #430 from gmacario/fix-issue404-v2
Tom Gundersen [Tue, 30 Jun 2015 16:39:39 +0000 (18:39 +0200)] 
Merge pull request #430 from gmacario/fix-issue404-v2

bootchart: Ensure that /proc/schedstat is read entirely (v2)

10 years agoMerge pull request #429 from richardmaw-codethink/nspawn-userns-uid-shift-autodetecti...
Tom Gundersen [Tue, 30 Jun 2015 16:24:14 +0000 (18:24 +0200)] 
Merge pull request #429 from richardmaw-codethink/nspawn-userns-uid-shift-autodetection-fix

nspawn: determine_uid_shift before forking

10 years agoMerge pull request #428 from richardmaw-codethink/nspawn-userns-remount-fail
Tom Gundersen [Tue, 30 Jun 2015 16:16:02 +0000 (18:16 +0200)] 
Merge pull request #428 from richardmaw-codethink/nspawn-userns-remount-fail

nspawn: Don't remount with fewer options

10 years agobootchart: Ensure that /proc/schedstat is read entirely 430/head
Gianpaolo Macario [Tue, 30 Jun 2015 15:09:02 +0000 (15:09 +0000)] 
bootchart: Ensure that /proc/schedstat is read entirely

On multi-core systems file /proc/schedstat may be
larger than 4096 bytes and pread() will only read part of it.

Fix issue https://github.com/systemd/systemd/issues/404

10 years agoMerge pull request #424 from endocode/iaguis/shutdown-log-null
Lennart Poettering [Tue, 30 Jun 2015 14:58:35 +0000 (10:58 -0400)] 
Merge pull request #424 from endocode/iaguis/shutdown-log-null

core: handle --log-target=null when calling systemd-shutdown

10 years agonspawn: determine_uid_shift before forking 429/head
Richard Maw [Tue, 30 Jun 2015 13:41:41 +0000 (13:41 +0000)] 
nspawn: determine_uid_shift before forking

It is needed in one branch of the fork, but calculated in another
branch.

Failing to do this means using --private-users without specifying a uid
shift always fails because it tries to shift the uid to UID_INVALID.

10 years agonspawn: Don't remount with fewer options 428/head
Richard Maw [Tue, 30 Jun 2015 13:21:14 +0000 (13:21 +0000)] 
nspawn: Don't remount with fewer options

When we do a MS_BIND mount, it inherits the flags of its parent mount.
When we do a remount, it sets the flags to exactly what is specified.
If we are in a user namespace then these mount points have their flags
locked, so you can't reduce the protection.

As a consequence, the default setup of mount_all doesn't work with user
namespaces. However if we ensure we add the mount flags of the parent
mount when remounting, then we aren't removing mount options, so we
aren't trying to unlock an option that we aren't allowed to.

10 years agocore: handle --log-target=null when calling systemd-shutdown 424/head
Iago López Galeiras [Tue, 30 Jun 2015 13:08:49 +0000 (15:08 +0200)] 
core: handle --log-target=null when calling systemd-shutdown

When shutting down, if systemd was started with --log-target=null,
systemd-shutdown was being called with --log-target=console.

10 years agoMerge pull request #412 from fsateler/sysv-invalid-names-v2
Tom Gundersen [Mon, 29 Jun 2015 21:30:14 +0000 (23:30 +0200)] 
Merge pull request #412 from fsateler/sysv-invalid-names-v2

sysv-generator: detect invalid names and escape them V2

10 years agoMerge pull request #413 from jaystrictor/manpages
Daniel Mack [Mon, 29 Jun 2015 20:23:25 +0000 (22:23 +0200)] 
Merge pull request #413 from jaystrictor/manpages

man: remove repeated word "the" and polish

10 years agoman: remove repeated word "the" and polish 413/head
Jay Strict [Mon, 29 Jun 2015 19:20:02 +0000 (21:20 +0200)] 
man: remove repeated word "the" and polish

10 years agosysv-generator: escape names when translating from sysv name 412/head
Felipe Sateler [Sun, 28 Jun 2015 00:00:32 +0000 (21:00 -0300)] 
sysv-generator: escape names when translating from sysv name

While the LSB suggests only [A-Za-z0-9], that doesn't prevent admins
from doing the wrong thing. Lets not generate invalid names in
that case.

10 years agosysv-generator: detect invalid provided unit names
Felipe Sateler [Sun, 28 Jun 2015 00:02:53 +0000 (21:02 -0300)] 
sysv-generator: detect invalid provided unit names

Do not assume that a non-service unit type is a target.

10 years agoMerge pull request #410 from teg/docs-gitignore
Daniel Mack [Mon, 29 Jun 2015 18:02:14 +0000 (20:02 +0200)] 
Merge pull request #410 from teg/docs-gitignore

docs: remove stale .gitignore

10 years agoudev: event - simplify udev_event_spawn() logic 411/head
Tom Gundersen [Sun, 28 Jun 2015 21:42:52 +0000 (23:42 +0200)] 
udev: event - simplify udev_event_spawn() logic

Push the extraction of the envp + argv as close as possible to their use, to avoid code
duplication. As a sideeffect fix logging when delaing execution.

10 years agodocs: remove stale .gitignore 410/head
Tom Gundersen [Mon, 29 Jun 2015 17:45:10 +0000 (19:45 +0200)] 
docs: remove stale .gitignore

This is no longer useful as the udev docs are gone.

10 years agoMerge pull request #408 from ColdPie1/fix_resp
Daniel Mack [Mon, 29 Jun 2015 16:58:19 +0000 (18:58 +0200)] 
Merge pull request #408 from ColdPie1/fix_resp

man: Remove instances of pseudo-English "resp."

10 years agoman: Remove instances of pseudo-English "resp." 408/head
Andrew Eikum [Fri, 26 Jun 2015 16:02:00 +0000 (11:02 -0500)] 
man: Remove instances of pseudo-English "resp."

Me again :) Just noticed one of these in a manpage and did another pass
to clean them up.  See 16dad32e437fdf2ffca03cc60a083d84bd31886f for
explanation, though the link needs updating:
<http://transblawg.eu/2004/02/26/resp-and-other-non-existent-english-wordsnicht-existente-englische-worter/>

10 years agoMerge pull request #387 from kaysievers/wip
Tom Gundersen [Mon, 29 Jun 2015 14:02:33 +0000 (16:02 +0200)] 
Merge pull request #387 from kaysievers/wip

udev: Remove accelerometer helper

10 years agoMerge pull request #403 from cedricde/patch-1
Kay Sievers [Mon, 29 Jun 2015 08:59:35 +0000 (10:59 +0200)] 
Merge pull request #403 from cedricde/patch-1

Process persistent storage rules for cciss devices

10 years agoProcess cciss devices 403/head
Cédric Delmas [Mon, 29 Jun 2015 07:54:58 +0000 (09:54 +0200)] 
Process cciss devices

Do not skip the persistent storage rules for cciss devices

10 years agoMerge pull request #402 from systemd-mailing-devs/1435512180-3659-1-git-send-email...
Daniel Mack [Mon, 29 Jun 2015 03:43:26 +0000 (05:43 +0200)] 
Merge pull request #402 from systemd-mailing-devs/1435512180-3659-1-git-send-email-ebiggers3@gmail.com

util: fix incorrect escape sequence in string_is_safe()

10 years agoMerge pull request #399 from gmacario/fix-issue341-v2
Daniel Mack [Mon, 29 Jun 2015 03:03:38 +0000 (05:03 +0200)] 
Merge pull request #399 from gmacario/fix-issue341-v2

bootchart: reset list_sample_data head before generating SVG

10 years agoMerge pull request #388 from fsateler/doc-pidfile-removal
Tom Gundersen [Sun, 28 Jun 2015 21:10:46 +0000 (23:10 +0200)] 
Merge pull request #388 from fsateler/doc-pidfile-removal

systemd.service.xml: document that systemd removes the PIDFile

10 years agoutil: fix incorrect escape sequence in string_is_safe() 402/head
Eric Biggers [Sun, 28 Jun 2015 17:23:00 +0000 (12:23 -0500)] 
util: fix incorrect escape sequence in string_is_safe()

10 years agobootchart: reset list_sample_data head before generating SVG 399/head
Gianpaolo Macario [Sat, 27 Jun 2015 07:17:07 +0000 (07:17 +0000)] 
bootchart: reset list_sample_data head before generating SVG

Until commit 1f2ecb0 ("bootchart: kill a bunch of global variables")
variable "head" was declared global and this action was performed by svg_header.
Now that "head" is local and passed to each function called by svg_do(...)
move the code at the beginning of svg_do(...) to restore the correct behaviour.

10 years agosd-netlink: message - remove unused next_rta_offset field 398/head
Tom Gundersen [Fri, 26 Jun 2015 10:02:53 +0000 (12:02 +0200)] 
sd-netlink: message - remove unused next_rta_offset field

This was a left-over from before we supported containers.

10 years agonetlink: rework containers
Tom Gundersen [Thu, 25 Jun 2015 22:02:55 +0000 (00:02 +0200)] 
netlink: rework containers

Instead of representing containers as several arrays, make a new
netlink_container struct and keep one array of these structs. We
also introduce netlink_attribute structs that in the future will
hold meta-information about each atribute.

10 years agosd-netlink: make a couple of helper functions static
Tom Gundersen [Thu, 25 Jun 2015 22:07:25 +0000 (00:07 +0200)] 
sd-netlink: make a couple of helper functions static

Also rename from rtnl_* to netlink_*.

10 years agosd-netlink: mark union containers as nested
Tom Gundersen [Tue, 23 Jun 2015 11:18:18 +0000 (13:18 +0200)] 
sd-netlink: mark union containers as nested

This was an oversight, they are no different from regular containers in this respect.

10 years agosystemd.service.xml: document that systemd removes the PIDFile 388/head
Felipe Sateler [Sat, 27 Jun 2015 20:25:06 +0000 (17:25 -0300)] 
systemd.service.xml: document that systemd removes the PIDFile

10 years agoudev: Remove accelerometer helper 387/head
Bastien Nocera [Sat, 27 Jun 2015 19:48:52 +0000 (21:48 +0200)] 
udev: Remove accelerometer helper

It's moved to the iio-sensor-proxy D-Bus service.

10 years agoMerge pull request #377 from zonque/logind
Tom Gundersen [Fri, 26 Jun 2015 19:41:44 +0000 (21:41 +0200)] 
Merge pull request #377 from zonque/logind

logind: fix delayed execution regression

10 years agoMerge pull request #353 from kaysievers/hid
Greg Kroah-Hartman [Fri, 26 Jun 2015 16:51:11 +0000 (09:51 -0700)] 
Merge pull request #353 from kaysievers/hid

rules: remove all power management from udev

10 years agoMerge pull request #379 from whot/hwdb-updates
Kay Sievers [Fri, 26 Jun 2015 09:33:04 +0000 (11:33 +0200)] 
Merge pull request #379 from whot/hwdb-updates

Revert "hwdb: add a touchpad hwdb"

10 years agoRevert "hwdb: add a touchpad hwdb" 379/head
Peter Hutterer [Fri, 26 Jun 2015 06:09:48 +0000 (16:09 +1000)] 
Revert "hwdb: add a touchpad hwdb"

The main purpose of this hwdb was to tag touchpads that have the physical
trackstick buttons wired to the touchpad (Lenovo Carbon X1 3rd, Lenovo *50
series).  This hwdb is not required on kernels 4.0 and above, the kernel now
re-routes button presses through the trackstick's device node. Userspace does
not need to do anything.

See kernel commit cdd9dc195916ef5644cfac079094c3c1d1616e4c.

This reverts commit 001a247324b44c0e0b8fdba41a6fc66e7465b8b6.

10 years agologind: fix delayed execution regression 377/head
Daniel Mack [Mon, 8 Jun 2015 20:58:50 +0000 (22:58 +0200)] 
logind: fix delayed execution regression

Commit c0f32805 ("logind: use sd_event timer source for inhibitor
logic") reworked the main loop logic of logind so that it uses a
real timeout callback handler to execute delayed functions.

What the old code did, however, was to call those functions on
every iteration in the main loop, not only when the timeout
expired.

Restore that behavior by bringing back manager_dispatch_delayed(),
and call it from manager_run(). The internal event source callback
manager_inhibit_timeout_handler() was turned into a wrapper of
manager_dispatch_delayed() now.

10 years agoMerge pull request #367 from msekletar/install-unit-file-list-assert
Daniel Mack [Thu, 25 Jun 2015 14:38:41 +0000 (16:38 +0200)] 
Merge pull request #367 from msekletar/install-unit-file-list-assert

install: explicitly return 0 on success

10 years agoMerge pull request #366 from gmacario/fix-issue139-v5
Daniel Mack [Thu, 25 Jun 2015 14:37:06 +0000 (16:37 +0200)] 
Merge pull request #366 from gmacario/fix-issue139-v5

bootchart: Account CPU time spent in non-main threads of processes (v5)

10 years agoinstall: explicitly return 0 on success 367/head
Michal Sekletar [Thu, 25 Jun 2015 14:06:40 +0000 (16:06 +0200)] 
install: explicitly return 0 on success

Maybe there is some left-over value stored in r from previous function
call. Let's make sure we always return consistent error code when we reach end of
the function body.

Fixes following crash of test-install,

Assertion 'r == 0' failed at src/test/test-install.c:52, function main(). Aborting.
[1]    11703 abort (core dumped)  ./test-install

10 years agobootchart: Account CPU time spent in non-main threads of processes (v5) 366/head
Gianpaolo Macario [Thu, 11 Jun 2015 10:03:30 +0000 (10:03 +0000)] 
bootchart: Account CPU time spent in non-main threads of processes (v5)

Fix for issue https://github.com/systemd/systemd/issues/139

- Implement fixes suggested by @teg to -v2
- Implement fixes suggested by @zonque to -v3 and -v4

10 years agoMerge pull request #363 from zonque/proxy
Kay Sievers [Thu, 25 Jun 2015 12:36:59 +0000 (14:36 +0200)] 
Merge pull request #363 from zonque/proxy

bus-proxy: ignore 'log' attributes in XML policy

10 years agobus-proxy: ignore 'log' attributes in XML policy 363/head
Daniel Mack [Thu, 25 Jun 2015 11:13:17 +0000 (13:13 +0200)] 
bus-proxy: ignore 'log' attributes in XML policy

'log' is unsupported but nothing to warn about. Ignore it just like we
ignore 'eavesdrop'.

10 years agoMerge pull request #355 from dvdhrm/netlink
Tom Gundersen [Thu, 25 Jun 2015 11:02:53 +0000 (13:02 +0200)] 
Merge pull request #355 from dvdhrm/netlink

sd-netlink cleanups

10 years agoMerge pull request #335 from aroig/gh/fix_check_unneeded
Lennart Poettering [Wed, 24 Jun 2015 12:52:21 +0000 (08:52 -0400)] 
Merge pull request #335 from aroig/gh/fix_check_unneeded

core: fix reversed dependency check in unit_check_unneeded

10 years agoMerge pull request #347 from poettering/check-api-docs
Lennart Poettering [Wed, 24 Jun 2015 12:40:09 +0000 (08:40 -0400)] 
Merge pull request #347 from poettering/check-api-docs

build-sys: make sure check-api-docs sees each symbol just once

10 years agosd-netlink: don't export internal type-system details 355/head
David Herrmann [Wed, 24 Jun 2015 11:27:34 +0000 (13:27 +0200)] 
sd-netlink: don't export internal type-system details

The kernel bonding layer allows passing an array of ARP IP targets as
bond-configuration. Due to the weird implementation of arrays in netlink
(which we haven't figure out a generic way to support, yet), we usually
hard-code the supported array-sizes. However, this should not be exported
from sd-netlink.

Instead, make sure the caller just uses it's current hack of enumerating
the types, and the sd-netlink core will have it's own list of supported
array-sizes (to be removed in future extensions, btw!). If either does not
match, we will just return a normal error.

Note that we provide 2 constants for ARP_IP_TARGETS_MAX now. However, both
have very different reasons:
 - the constant in netdev-bond.c is used to warn the user that the given
   number of targets might not be supported by the kernel (even though the
   kernel might increase that number at _any_ time)
 - the constant in sd-netlink is solely used due to us missing a proper
   array implementation. Once that's supported in the type-system, it can
   be removed without notice

Last but not least, this patch turns the log_error() into a log_warning().
Given that the previous condition was off-by-one, anyway, it never hit at
the right time. Thus, it was probably of no real use.

10 years agosd-netlink: don't treat NULL as root type-system
David Herrmann [Tue, 23 Jun 2015 10:10:38 +0000 (12:10 +0200)] 
sd-netlink: don't treat NULL as root type-system

Explicitly export the root type-system to the type-system callers. This
avoids treating NULL as root, which for one really looks backwards (NULL
is usually a leaf, not root), and secondly prevents us from properly
debugging calling into non-nested types.

Also rename the root to "type_system_root". Once we support more than
rtnl, well will have to revisit that, anyway.

10 years agosd-netlink: don't treat type_system->count==0 as invalid
David Herrmann [Tue, 23 Jun 2015 10:03:10 +0000 (12:03 +0200)] 
sd-netlink: don't treat type_system->count==0 as invalid

Empty type-systems are just fine. Avoid the nasty hack in
union-type-systems that treat empty type-systems as invalid. Instead check
for the actual types-array and make sure it's non-NULL (which is even true
for empty type-systems, due to "empty_types" array).

10 years agosd-netlink: make sure the root-level type is nested
David Herrmann [Tue, 23 Jun 2015 08:47:44 +0000 (10:47 +0200)] 
sd-netlink: make sure the root-level type is nested

In sd-netlink-message, we always guarantee that the currently selected
type-system is non-NULL. Otherwise, we would be unable to parse any types
in the current container level. Hence, this assertion must be true:
    message->container_type_system[m->n_containers] != NULL

During message_new() we currently do not verify that this assertion is
true. Instead, we blindly access nl_type->type_system and use it (which
might be NULL for basic types and unions). Fix this, by explicitly
checking that the root-level type is nested.

Note that this is *not* a strict requirement of netlink, but it's a strict
requirement for all message types we currently support. Furthermore, all
the callers of message_new() already verify that only supported types are
passed, therefore, this is a pure cosmetic check. However, it might be
needed on the future, so make sure we don't trap into this once we change
the type-system.

10 years agosd-netlink: drop NETLINK_TYPE_META
David Herrmann [Tue, 23 Jun 2015 09:54:43 +0000 (11:54 +0200)] 
sd-netlink: drop NETLINK_TYPE_META

The NETLINK_TYPE_META pseudo-type is actually equivalent to an empty
nested type. Drop it and define an empty type-system instead.

This also has the nice side-effect that m->container_type_system[0] is
never NULL (which has really nasty side-effects if you try to read
attributes).

10 years agosd-netlink: turn 'max' into 'count' to support empty type-systems
David Herrmann [Tue, 23 Jun 2015 09:46:48 +0000 (11:46 +0200)] 
sd-netlink: turn 'max' into 'count' to support empty type-systems

Right now we store the maximum type-ID of a type-system. This prevents us
from creating empty type-systems. Store the "count" instead, which should
be treated as max+1.

Note that type_system_union_protocol_get_type_system() currently has a
nasty hack to treat empty type-systems as invalid. This might need some
modification later on as well.

10 years agosd-netlink: avoid casting size_t into int
David Herrmann [Tue, 23 Jun 2015 09:18:53 +0000 (11:18 +0200)] 
sd-netlink: avoid casting size_t into int

size_t is usually 64bit and int 32bit on a 64bit machine. This probably
does not matter for netlink message sizes, but nevertheless, avoid
hard-coding it anywhere.

10 years agosd-netlink: make NLTypeSystem internal
David Herrmann [Tue, 23 Jun 2015 09:07:59 +0000 (11:07 +0200)] 
sd-netlink: make NLTypeSystem internal

Same as NLType, move NLTypeSystem into netlink-types.c and hide it from
the outside. Provide an accessor function for the 'max' field that is used
to allocate suitable array sizes.

Note that this will probably be removed later on, anyway. Once we support
bigger type-systems, it just seems impractical to allocate such big arrays
for each container entry. An RBTree would probably do just fine.

10 years agosd-netlink: make NLType internal
David Herrmann [Tue, 23 Jun 2015 09:03:10 +0000 (11:03 +0200)] 
sd-netlink: make NLType internal

If we extend NLType to support arrays and further extended types, we
really want to avoid hard-coding the type-layout outside of
netlink-types.c. We already avoid accessing nl_type->type_system outside
of netlink-types.c, extend this to also avoid accessing any other fields.

Provide accessor functions for nl_type->type and nl_type->size and then
move NLType away from the type-system header.

With this in place, follow-up patches can safely turn "type_system" and
"type_system_union" into a real "union { }", and then add another type for
arrays.

10 years agosd-netlink: don't access type->type_system[_union] directly
David Herrmann [Tue, 23 Jun 2015 08:51:25 +0000 (10:51 +0200)] 
sd-netlink: don't access type->type_system[_union] directly

Make sure we never access type->type_system or type->type_system_union
directly. This is an implementation detail of the type-system and we
should always use the accessors. Right now, they only exist for 2-level
accesses (type-system to type-system). This patch introduces the 1-level
accessors (type to type-system) and makes use of it.

This patch makes sure the proper assertions are in place, so we never
accidentally access sub-type-systems for non-nested/union types.

Note that this places hard-asserts on the accessors. This should be fine,
as we expect callers to only access sub type-systems if they *know*
they're dealing with nested types.

10 years agosd-netlink: rename NLA_ to NETLINK_TYPE_
David Herrmann [Tue, 23 Jun 2015 07:56:59 +0000 (09:56 +0200)] 
sd-netlink: rename NLA_ to NETLINK_TYPE_

The NLA_ names are used to name real datatypes we extract out of netlink
messages. The kernel has an internal enum with the same names
(NLA_foobar), which is *NOT* binary compatible to our types. Furthermore,
we support a different set of types than the kernel (as we try to treat
some kernel peculiarities as our own types to simplify the API).

Rename NLA_ to NETLINK_TYPE_ to make clear that this is our own set of
types.

10 years agorules: remove all power management from udev 353/head
Kay Sievers [Wed, 24 Jun 2015 11:10:07 +0000 (13:10 +0200)] 
rules: remove all power management from udev

It is not udev's task to apply any of these setting that way, or
from udev rules files. Things need to be sortet out in the kernel,
or explicit whitelist can possibly be added to the hardware database.
Until that is sorted out, and general agreement, udev is not
willing to maintain any such lists or power management settings
in general.

"Thanks for digging this out! I thought my Kinesis keyboard got broken
and ordered a new one, only to find out that the new one doesn't work
as well. I'm not sure whether we should start collecting a blacklist
of keyboards which don't work with USB autosuspend, or rather a
whitelist? Or revert this wholesale?"

  https://github.com/systemd/systemd/issues/340

10 years agoMerge pull request #346 from poettering/install-bad-memory
Daniel Mack [Wed, 24 Jun 2015 08:09:43 +0000 (10:09 +0200)] 
Merge pull request #346 from poettering/install-bad-memory

install: fix minor bad memory access

10 years agoMerge pull request #349 from systemd-mailing-devs/1435103298-2439-1-git-send-email...
Kay Sievers [Wed, 24 Jun 2015 00:27:30 +0000 (02:27 +0200)] 
Merge pull request #349 from systemd-mailing-devs/1435103298-2439-1-git-send-email-jengelh@inai.de

ata_id: unbotch format specifier

10 years agoata_id: unbotch format specifier 349/head
Jan Engelhardt [Tue, 23 Jun 2015 23:48:18 +0000 (01:48 +0200)] 
ata_id: unbotch format specifier

Commit v218-247-g11c6f69 broke the output of the utility. "%1$" PRIu64
"x" expands to "%1$lux", essentially "%lux", which shows the problem.
u and x cannot be combined, u wins as the type character, and x gets
emitted verbatim to stdout.

References: https://bugzilla.redhat.com/show_bug.cgi?id=1227503

10 years agoinstall: fix bad memory access 346/head
Lennart Poettering [Tue, 23 Jun 2015 23:16:18 +0000 (19:16 -0400)] 
install: fix bad memory access

10 years agobuild-sys: make sure check-api-docs sees each symbol just once 347/head
Lennart Poettering [Tue, 23 Jun 2015 19:32:38 +0000 (21:32 +0200)] 
build-sys: make sure check-api-docs sees each symbol just once

Given that some symbols are exposed by multiple libraries (due to the
compatibility libraries), let's ensure "make check-api-docs" only shows
each symbol once by filtering out duplicates.

10 years agoMerge pull request #339 from teg/udev-coverity
Daniel Mack [Tue, 23 Jun 2015 22:12:28 +0000 (00:12 +0200)] 
Merge pull request #339 from teg/udev-coverity

coverity fixes in udev

10 years agoMerge pull request #338 from xnox/fix-copy-bytes
Kay Sievers [Tue, 23 Jun 2015 15:34:24 +0000 (17:34 +0200)] 
Merge pull request #338 from xnox/fix-copy-bytes

test: fix test-copy without /etc/os-release.

10 years agotest: fix test-copy without /etc/os-release. 338/head
Dimitri John Ledkov [Tue, 23 Jun 2015 15:22:40 +0000 (16:22 +0100)] 
test: fix test-copy without /etc/os-release.

10 years agoudevadm: trigger - check return values 339/head
Tom Gundersen [Tue, 23 Jun 2015 15:16:28 +0000 (17:16 +0200)] 
udevadm: trigger - check return values

Fixes CID#1296243.

10 years agoudev: worker - check return value of udev_monitor_enable_receiving()
Tom Gundersen [Tue, 23 Jun 2015 15:07:40 +0000 (17:07 +0200)] 
udev: worker - check return value of udev_monitor_enable_receiving()

Fixes CID#1297430.

10 years agoudev: event - check return code of dup2()
Tom Gundersen [Tue, 23 Jun 2015 15:03:19 +0000 (17:03 +0200)] 
udev: event - check return code of dup2()

This fixes CID#1304688.

10 years agoudev: bulitin-hwdb - fix memory leak
Tom Gundersen [Tue, 23 Jun 2015 14:57:57 +0000 (16:57 +0200)] 
udev: bulitin-hwdb - fix memory leak

This fixes CID#1292782.

10 years agoMerge pull request #332 from xnox/bootchart-scales
Daniel Mack [Tue, 23 Jun 2015 14:37:19 +0000 (16:37 +0200)] 
Merge pull request #332 from xnox/bootchart-scales

bootchart: fix per-cpu & small scales.

10 years agobootchart: fix per-cpu scales. 332/head
Dimitri John Ledkov [Tue, 23 Jun 2015 10:35:47 +0000 (11:35 +0100)] 
bootchart: fix per-cpu scales.

Closes systemd/systemd#330

10 years agocore: fix reversed dependency check in unit_check_unneeded 335/head
Abdo Roig-Maranges [Tue, 23 Jun 2015 09:13:13 +0000 (11:13 +0200)] 
core: fix reversed dependency check in unit_check_unneeded

This was introduced by commit be7d9ff730cb88d7c6a8 and breaks
StopWhenUnneeded=true in the presence of a Requisite dependency.

10 years agoREADME: mention "git archive"
Kay Sievers [Tue, 23 Jun 2015 11:40:53 +0000 (13:40 +0200)] 
README: mention "git archive"

10 years agoMerge pull request #318 from walyong/smack_v02
Daniel Mack [Tue, 23 Jun 2015 11:26:23 +0000 (13:26 +0200)] 
Merge pull request #318 from walyong/smack_v02

SMACK v02: support modify rules and add default executed process label

10 years agoMerge pull request #328 from kaysievers/nodist
Daniel Mack [Tue, 23 Jun 2015 11:04:52 +0000 (13:04 +0200)] 
Merge pull request #328 from kaysievers/nodist

build-sys: add all source files and no built files to the tar ball

10 years agobuild-sys: add all source files and no built files to the tar ball 328/head
Kay Sievers [Mon, 22 Jun 2015 22:13:16 +0000 (00:13 +0200)] 
build-sys: add all source files and no built files to the tar ball

This fully synchronizes the content of a "make dist" and a "git archive"
tar ball.

  http://lists.freedesktop.org/archives/systemd-devel/2015-June/033214.html

10 years agoman: install networkctl and sysusers.d man page conditionally
Michael Biebl [Tue, 23 Jun 2015 08:37:34 +0000 (10:37 +0200)] 
man: install networkctl and sysusers.d man page conditionally

10 years agoMerge pull request #324 from llua/zsh-completion
Daniel Mack [Tue, 23 Jun 2015 08:01:42 +0000 (10:01 +0200)] 
Merge pull request #324 from llua/zsh-completion

zsh-completion: _loginctl/_systemd/_systemd-inhibit improvements

10 years agoMerge pull request #326 from whot/hwdb-updates
Daniel Mack [Tue, 23 Jun 2015 08:00:42 +0000 (10:00 +0200)] 
Merge pull request #326 from whot/hwdb-updates

Hwdb updates

10 years agohwdb: move a couple of entries to expected sort order 326/head
Peter Hutterer [Tue, 23 Jun 2015 05:51:02 +0000 (15:51 +1000)] 
hwdb: move a couple of entries to expected sort order

10 years agohwdb: add Logitech MX Revolution
Peter Hutterer [Tue, 23 Jun 2015 05:50:09 +0000 (15:50 +1000)] 
hwdb: add Logitech MX Revolution

10 years agobuild-sys: let "make git-tar" archive HEAD
Kay Sievers [Mon, 22 Jun 2015 22:49:34 +0000 (00:49 +0200)] 
build-sys: let "make git-tar" archive HEAD

10 years agozsh-completion: _loginctl/_systemd/_systemd-inhibit improvements 324/head
Eric Cook [Mon, 22 Jun 2015 22:07:32 +0000 (18:07 -0400)] 
zsh-completion: _loginctl/_systemd/_systemd-inhibit improvements

_loginctl: respects the verbose style. which allows a user to get
the pre d5df0d950f8bc behavior of not showing a description for sessions
and users, by default they aren't shown.

zstyle ':completion:*' verbose true
or
zstyle ':completion:*:loginctl*:*' verbose true # or similar
Will show the descriptions.

zstyle ':completion:*' verbose true
and
zstyle ':completion:*:loginctl*:*' verbose false # or similar
Won't show descriptions for loginctl only

_systemd: complete pids for systemd-notify's --pid option.
display a message of the expected argument for other options.

_systemd-inhibit: complete block & delay for --mode
display a message of the expected argument for --who/--why

10 years agobuild-sys: remove $(NULL)
Kay Sievers [Mon, 22 Jun 2015 21:27:08 +0000 (23:27 +0200)] 
build-sys: remove $(NULL)

10 years agobuild-sys: add custom "make git-tar" target
Kay Sievers [Mon, 22 Jun 2015 21:08:55 +0000 (23:08 +0200)] 
build-sys: add custom "make git-tar" target

10 years agoMerge pull request #314 from geertj/missing-exports
Lennart Poettering [Mon, 22 Jun 2015 20:47:42 +0000 (22:47 +0200)] 
Merge pull request #314 from geertj/missing-exports

export sd_bus_object_added() / _removed()

10 years agoMerge pull request #319 from teg/udev-cgroup-warning
Lennart Poettering [Mon, 22 Jun 2015 20:32:26 +0000 (22:32 +0200)] 
Merge pull request #319 from teg/udev-cgroup-warning

udevd: suppress warning if we don't find cgroup

10 years agoMerge pull request #322 from kaysievers/wip
Kay Sievers [Mon, 22 Jun 2015 18:22:57 +0000 (20:22 +0200)] 
Merge pull request #322 from kaysievers/wip

man: remove outdated links and stray character

10 years agoman: remove stray · from header 322/head
Kay Sievers [Mon, 22 Jun 2015 17:54:52 +0000 (19:54 +0200)] 
man: remove stray · from header

10 years agoman: remove links to outdated kdbus development repository
Kay Sievers [Mon, 22 Jun 2015 17:54:09 +0000 (19:54 +0200)] 
man: remove links to outdated kdbus development repository

10 years agoudevd: suppress warning if we don't find cgroup 319/head
Tom Gundersen [Mon, 22 Jun 2015 14:53:54 +0000 (16:53 +0200)] 
udevd: suppress warning if we don't find cgroup

This is expected on non-systemd systems, so just log it at debug level.

This fixes issue #309.