]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
8 years agoutil: fall back in rename_noreplace when renameat2 isn't implemented 473/head
Richard Maw [Thu, 2 Jul 2015 13:04:34 +0000 (13:04 +0000)] 
util: fall back in rename_noreplace when renameat2 isn't implemented

According to README we only need 3.7, and while it may also make sense
to bump that requirement when appropriate, it's trivial to fall back
when renameat2 is not available.

9 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

9 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'.

9 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

9 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

9 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

9 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.

9 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.

9 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).

9 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.

9 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).

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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

9 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

9 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

9 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.

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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.

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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

9 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

9 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

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

9 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

9 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()

9 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

9 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

9 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

9 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

9 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.

9 years agosmack: add default smack process label config 318/head
WaLyong Cho [Mon, 8 Jun 2015 10:41:01 +0000 (19:41 +0900)] 
smack: add default smack process label config

Similar to SmackProcessLabel=, if this configuration is set, systemd
executes processes with given SMACK label. If unit has
SmackProcessLabel=, this config is overwritten.
But, do NOT be confused with SMACK64EXEC of execute file. This default
execute process label(and also label which is set by
SmackProcessLabel=) is set fork-ed process SMACK subject label and
used to access the execute file.
If the execution file has also SMACK64EXEC, finally executed process
has SMACK64EXEC subject.
While if the execution file has no SMACK64EXEC, the executed process
has label of this config(or label which is set by
SmackProcessLabel=). Because if execution file has no SMACK64EXEC then
excuted process inherits label from caller process(in this case, the
caller is systemd).

9 years agosmack: support smack access change-rule
WaLyong Cho [Wed, 10 Jun 2015 02:33:00 +0000 (11:33 +0900)] 
smack: support smack access change-rule

Smack is also able to have modification rules of existing rules. In
this case, the rule has additional argument to modify previous
rule. /sys/fs/smackfs/load2 node can only take three arguments:
subject object access. So if modification rules are written to
/sys/fs/smackfs/load2, EINVAL error is happen. Those modification
rules have to be written to /sys/fs/smackfs/change-rule.
To distinguish access with operation of cipso2, split write_rules()
for each operation. And, in write access rules, parse the rule and if
the rule has four argument then write into
/sys/fs/smackfs/change-rule.
https://lwn.net/Articles/532340/

fwrite() or fputs() are fancy functions to write byte stream such like
regular file. But special files on linux such like proc, sysfs are not
stream of bytes. Those special files on linux have to be written with
specific size.
By this reason, in some of many case, fputs() was failed to write
buffer to smack load2 node.
The write operation for the smack nodes should be performed with
write().

9 years agoMerge pull request #315 from llua/zsh-completion
Daniel Mack [Mon, 22 Jun 2015 08:30:22 +0000 (10:30 +0200)] 
Merge pull request #315 from llua/zsh-completion

zsh-completion: _systemd-nspawn - add more argument completion

9 years agoexport sd_bus_object_added() / _removed() 314/head
Geert Jansen [Sun, 21 Jun 2015 11:44:35 +0000 (07:44 -0400)] 
export sd_bus_object_added() / _removed()

Fixes #306.

9 years agozsh-completion: _systemd-nspawn - add more argument completion 315/head
Eric Cook [Mon, 22 Jun 2015 01:59:26 +0000 (21:59 -0400)] 
zsh-completion: _systemd-nspawn - add more argument completion

filenames will be completed for --image/-i/--bind/--bind-ro/--tmpfs
network interfaces for --network-(interface|macvlan|ipvlan|bridge)
users for --user/-u, yes & no for --register, x86 * x86-64 for
--personality

display a message of the expected argument for --machine/-M/--uuid
--slice/-S/--port/-p/--selinux-*/-Z/-L/--setenv

Allow completing commands(and their options) of the host system for COMMAND

9 years agoMerge pull request #304 from mknjc/master
Daniel Mack [Sun, 21 Jun 2015 09:32:12 +0000 (11:32 +0200)] 
Merge pull request #304 from mknjc/master

fix machinectl bind man entry

9 years agopam_systemd: Properly check kdbus availability
Jan Alexander Steffens (heftig) [Sun, 21 Jun 2015 03:59:34 +0000 (05:59 +0200)] 
pam_systemd: Properly check kdbus availability

This properly avoids setting DBUS_SESSION_BUS_ADDRESS if kdbus
is loaded (or built into the kernel) but not wanted.

9 years agofix machinectl bind man entry 304/head
Markus Knetschke [Sat, 20 Jun 2015 15:05:48 +0000 (17:05 +0200)] 
fix machinectl bind man entry

9 years agoMerge pull request #303 from zonque/man
David Herrmann [Sat, 20 Jun 2015 12:43:45 +0000 (14:43 +0200)] 
Merge pull request #303 from zonque/man

man: rename systemd-bus-proxyd@.service.xml → systemd-bus-proxyd.…

9 years agoman: rename systemd-bus-proxyd@.service.xml → systemd-bus-proxyd.service.xml 303/head
Daniel Mack [Sat, 20 Jun 2015 12:25:27 +0000 (14:25 +0200)] 
man: rename systemd-bus-proxyd@.service.xml → systemd-bus-proxyd.service.xml

The bus proxy is multi-threaded now. Reflect that in the man pages.

9 years agoMerge pull request #301 from daurnimator/master
Daniel Mack [Sat, 20 Jun 2015 12:00:28 +0000 (14:00 +0200)] 
Merge pull request #301 from daurnimator/master

man: sd-bus: it's 'machine' not 'container'

9 years agoman: sd-bus: it's 'machine' not 'container' 301/head
daurnimator [Sat, 20 Jun 2015 08:57:53 +0000 (18:57 +1000)] 
man: sd-bus: it's 'machine' not 'container'

9 years agoman: be more careful with the wording in busctl(1)
Lennart Poettering [Fri, 19 Jun 2015 20:29:29 +0000 (22:29 +0200)] 
man: be more careful with the wording in busctl(1)

9 years agoman: various documentation improvements for sd-bus
Lennart Poettering [Fri, 19 Jun 2015 20:18:36 +0000 (22:18 +0200)] 
man: various documentation improvements for sd-bus

9 years agopo: run make update-po v221
Lennart Poettering [Fri, 19 Jun 2015 00:13:03 +0000 (02:13 +0200)] 
po: run make update-po

9 years agoMerge pull request #298 from zonque/intltool
Lennart Poettering [Fri, 19 Jun 2015 10:47:21 +0000 (12:47 +0200)] 
Merge pull request #298 from zonque/intltool

build-sys: bring back an intltool-update workaround

9 years agobuild-sys: bring back an intltool-update workaround 298/head
Daniel Mack [Fri, 19 Jun 2015 08:22:06 +0000 (10:22 +0200)] 
build-sys: bring back an intltool-update workaround

Currently, 'make distcheck' fails with an error such as this:

    srcdir=../../po /usr/bin/intltool-update -m
    The following files contain translations and are currently not in use.
    Please consider adding these to the POTFILES.in file, located in the po/ directory.

    build2/src/core/org.freedesktop.systemd1.policy.in
    build3/src/core/org.freedesktop.systemd1.policy.in

    [...]

This is caused by a new behavior of autmake 1.15 which changed the
location of the build tree during 'make distcheck', and the fact that
intltool doesn't yet ignore that paths.

We used to have a workaround in configure.ac that makes the failing call
a no-op, but it was accidentially removed in 23756070
("remove gudev and gtk-doc").

Bring back that snipet for now, until intltool and automake sorted out
their issues and like each other again.

Also see

  https://bugs.launchpad.net/intltool/+bug/1117944

9 years agoMerge pull request #297 from ssahani/net
Ronny Chevalier [Fri, 19 Jun 2015 08:24:13 +0000 (10:24 +0200)] 
Merge pull request #297 from ssahani/net

networkd: vlan improve logging

9 years agonetworkd: vlan improve logging 297/head
Susant Sahani [Mon, 15 Jun 2015 03:34:28 +0000 (09:04 +0530)] 
networkd: vlan improve logging

Replaces strerror() usage with log_netdev_error_errno()

9 years agoupdate TODO
Lennart Poettering [Thu, 18 Jun 2015 23:12:54 +0000 (01:12 +0200)] 
update TODO

9 years agoNEWS: update contributors list and date
Lennart Poettering [Thu, 18 Jun 2015 23:12:28 +0000 (01:12 +0200)] 
NEWS: update contributors list and date

9 years agoMerge pull request #293 from teg/man-revert
Kay Sievers [Thu, 18 Jun 2015 20:27:50 +0000 (22:27 +0200)] 
Merge pull request #293 from teg/man-revert

man: revert dynamic paths for split-usr setups

9 years agoMerge pull request #294 from teg/hashmap-debug-locking-2
David Herrmann [Thu, 18 Jun 2015 20:05:09 +0000 (22:05 +0200)] 
Merge pull request #294 from teg/hashmap-debug-locking-2

hashmap: debug - lock access to the global hashmap list

9 years agoMerge pull request #292 from teg/man-udev-2
David Herrmann [Thu, 18 Jun 2015 19:42:08 +0000 (21:42 +0200)] 
Merge pull request #292 from teg/man-udev-2

man: udev_device - finish new_* man page

9 years agoMerge pull request #291 from poettering/nspawn-suppress-eloop
David Herrmann [Thu, 18 Jun 2015 19:38:09 +0000 (21:38 +0200)] 
Merge pull request #291 from poettering/nspawn-suppress-eloop

nspawn: suppress warning when /etc/resolv.conf is a valid symlink

9 years agohashmap: debug - lock access to the global hashmap list 294/head
Tom Gundersen [Thu, 18 Jun 2015 09:31:10 +0000 (11:31 +0200)] 
hashmap: debug - lock access to the global hashmap list

This may be used from multi-threaded programs (say through nss-resolve),
so we must protect the global list.

This is still only relevant for debug builds, so we do not try to handle
cases where the locking fail, but simply assert.

9 years agoupdate TODO
Lennart Poettering [Thu, 18 Jun 2015 18:08:01 +0000 (20:08 +0200)] 
update TODO

9 years agoupdate TODO
Lennart Poettering [Thu, 18 Jun 2015 18:03:11 +0000 (20:03 +0200)] 
update TODO

9 years agoman: revert dynamic paths for split-usr setups 293/head
Tom Gundersen [Thu, 18 Jun 2015 17:47:44 +0000 (19:47 +0200)] 
man: revert dynamic paths for split-usr setups

This did not really work out as we had hoped. Trying to do this upstream
introduced several problems that probably makes it better suited as a
downstream patch after all. At any rate, it is not releaseable in the
current state, so we at least need to revert this before the release.

 * by adjusting the path to binaries, but not do the same thing to the
   search path we end up with inconsistent man-pages. Adjusting the search
   path too would be quite messy, and it is not at all obvious that this is
   worth the effort, but at any rate it would have to be done before we
   could ship this.

 * this means that distributed man-pages does not make sense as they depend
   on config options, and for better or worse we are still distributing
   man pages, so that is something that definitely needs sorting out before
   we could ship with this patch.

 * we have long held that split-usr is only minimally supported in order
   to boot, and something we hope will eventually go away. So before we start
   adding even more magic/effort in order to make this work nicely, we should
   probably question if it makes sense at all.

9 years agonspawn: suppress warning when /etc/resolv.conf is a valid symlink 291/head
Lennart Poettering [Thu, 18 Jun 2015 17:42:59 +0000 (19:42 +0200)] 
nspawn: suppress warning when /etc/resolv.conf is a valid symlink

In such a case let's suppress the warning (downgrade to LOG_DEBUG),
under the assumption that the user has no config file to update in its
place, but a symlink that points to something like resolved's
automatically managed resolve.conf file.

While we are at it, also stop complaining if we cannot write /etc/resolv.conf
due to a read-only disk, given that there's little we could do about it.

9 years agoupdate TODO
Lennart Poettering [Thu, 18 Jun 2015 17:40:47 +0000 (19:40 +0200)] 
update TODO

9 years agoman: udev_device - finish new_* man page 292/head
Tom Gundersen [Thu, 18 Jun 2015 17:15:59 +0000 (19:15 +0200)] 
man: udev_device - finish new_* man page

A description of device_id lacked. We still need to do the other
udev_device_* man pages.

9 years agoMerge pull request #288 from phomes/cgroup-util
Lennart Poettering [Thu, 18 Jun 2015 16:57:16 +0000 (18:57 +0200)] 
Merge pull request #288 from phomes/cgroup-util

cgroup-util: actually use the path callback

9 years agoMerge pull request #285 from poettering/audit-table-fix
Tom Gundersen [Thu, 18 Jun 2015 16:38:40 +0000 (18:38 +0200)] 
Merge pull request #285 from poettering/audit-table-fix

Audit table fix

9 years agoMerge pull request #286 from jsynacek/fix-edit-v3
Lennart Poettering [Thu, 18 Jun 2015 16:30:31 +0000 (18:30 +0200)] 
Merge pull request #286 from jsynacek/fix-edit-v3

systemctl: fix edit when EDITOR contains arguments

9 years agoMerge pull request #289 from michich/hashmap-small-cleanup
Lennart Poettering [Thu, 18 Jun 2015 16:29:11 +0000 (18:29 +0200)] 
Merge pull request #289 from michich/hashmap-small-cleanup

a tiny hashmap cleanup

9 years agocgroup-util: actually use the path callback 288/head
Thomas Hindoe Paaboel Andersen [Thu, 18 Jun 2015 15:21:21 +0000 (17:21 +0200)] 
cgroup-util: actually use the path callback

We allow to specify a callback but then ignore the result. Looks like a trivial typo.
From 7b3fd6313c4b07b6f822a9f979d0c22350a401d9#diff-f010fa21ba7b659b519c122743e55604

9 years agoMerge pull request #287 from phomes/master
Lennart Poettering [Thu, 18 Jun 2015 15:22:59 +0000 (17:22 +0200)] 
Merge pull request #287 from phomes/master

NEWS: typo fixes

9 years agoNEWS: typo fixes 287/head
Thomas Hindoe Paaboel Andersen [Thu, 18 Jun 2015 15:10:59 +0000 (17:10 +0200)] 
NEWS: typo fixes

9 years agoNEWS: fix typo
Ronny Chevalier [Thu, 18 Jun 2015 14:23:28 +0000 (16:23 +0200)] 
NEWS: fix typo

9 years agoMerge pull request #282 from martinpitt/master
Daniel Mack [Thu, 18 Jun 2015 14:01:58 +0000 (16:01 +0200)] 
Merge pull request #282 from martinpitt/master

Fix out-of-tree builds and distcheck

9 years agosystemctl: fix edit when EDITOR contains arguments 286/head
Jan Synacek [Wed, 17 Jun 2015 11:53:04 +0000 (13:53 +0200)] 
systemctl: fix edit when EDITOR contains arguments

Correctly support cases when the EDITOR environment variable and friends
also contain arguments. For example, to run emacs in terminal only, one
can say:

EDITOR="emacs -nw" systemctl edit myservice

9 years agoaudit: make sure to include libaudit-defined audit events in table 285/head
Lennart Poettering [Thu, 18 Jun 2015 11:41:09 +0000 (13:41 +0200)] 
audit: make sure to include libaudit-defined audit events in table

This change hooks up $(audit_list_includes) that was already
defined since the beginning of the audit type list, but never actually
made use of.

It thus completes 4733607eec54034d2083534ebff2dad89c28574e.

9 years agoupdate TODO
Lennart Poettering [Thu, 18 Jun 2015 11:32:18 +0000 (13:32 +0200)] 
update TODO

9 years agoMerge pull request #247 from shaded-enmity/origin/pullfix
Lennart Poettering [Thu, 18 Jun 2015 11:02:57 +0000 (13:02 +0200)] 
Merge pull request #247 from shaded-enmity/origin/pullfix

import/pull: fix for the name/reference overwrite

9 years agoimport/pull: fix pulling by image digest 247/head
Pavel Odvody [Wed, 17 Jun 2015 11:25:06 +0000 (13:25 +0200)] 
import/pull: fix pulling by image digest

When pulling by image digest the identifiers that
were produced by parsing image digest were later
overwritten by code parsing image tag.
This resulted in invalid identifiers being used
when contacting the remote endpoint, resulting in 404.

Reported here:
http://lists.freedesktop.org/archives/systemd-devel/2015-June/033039.html

9 years agotest: disable test-barrier by default
David Herrmann [Thu, 18 Jun 2015 08:18:31 +0000 (10:18 +0200)] 
test: disable test-barrier by default

The test-barrier binary uses real-time alarms and timeouts to test for
races in the thread-barrier implementation. Hence, if your system is under
high load and your scheduler decides to not run test-barrier for
>BASE_TIME, then the tests are likely to fail.

Two options:
 1) Increase BASE_TIME. This will make the test take significantly longer
    for no real good. Furthermore, it is still not guaranteed that the
    task is scheduled.
 2) Don't rely on real-time timers, but use explicit synchronization. This
    would basically test one barrier implementation with another.. kinda
    ironic.. but maybe something worth looking into.
 3) Disable test-barrier by default.

This patch chooses option 3) and makes sure test-barrier only runs if you
pass any argument.

Side note:
        test-barrier is written in a way that if it fails under load, but
        does not on idle systems, then it is very _unlikely_ that the
        barrier implementation is the culprit. Hence, it makes little
        sense to run it under load, anyway. It will not improve the test
        coverage of barrier.c, but rather the coverage of the test itself.

9 years agoMerge pull request #281 from michaelolbrich/glibc-2.16-fix
Daniel Mack [Thu, 18 Jun 2015 08:18:28 +0000 (10:18 +0200)] 
Merge pull request #281 from michaelolbrich/glibc-2.16-fix

exit-status: add missing include for SIG* defines

9 years agobuild-sys: don't dist man/systemd.directives.xml 282/head
Martin Pitt [Thu, 18 Jun 2015 06:42:15 +0000 (08:42 +0200)] 
build-sys: don't dist man/systemd.directives.xml

It depends on man/custom-entities.ent which is (and needs to be) a built file,
so we need to always build man/systemd.directives.xml as well.

We also need to drop this from update-man-list so that it doesn't get disted
from Makefile-man.am.

Fixes distcheck failure.

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