]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
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 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 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

9 years agoexit-status: add missing include for SIG* defines 281/head
Michael Olbrich [Thu, 18 Jun 2015 07:00:01 +0000 (09:00 +0200)] 
exit-status: add missing include for SIG* defines

Otherwise building fails with glibc 2.16. It works with glibc >= 2.17
because it is implicitly included via macro.h -> sys/param.h -> signal.h

9 years agobuild-sys: make SOURCE_XML_FILES array relative to $(top_srcdir)
Daniel Mack [Wed, 17 Jun 2015 20:52:24 +0000 (22:52 +0200)] 
build-sys: make SOURCE_XML_FILES array relative to $(top_srcdir)

When calling the build commands from another directory than the toplevel:

  mkdir build
  cd build
  ../configure [...]

... the compilation fails with the following error:

 GEN      man/systemd.directives.xml
Traceback (most recent call last):
  File "../tools/make-directive-index.py", line 313, in make_page
    _extract_directives(directive_groups, formatting, page)
  File "../tools/make-directive-index.py", line 191, in _extract_directives
    t = xml_parse(page)
  File "/home/martin/upstream/systemd/tools/xml_helper.py", line 30, in xml_parse
    doc = tree.parse(page, _parser)
  File "lxml.etree.pyx", line 3301, in lxml.etree.parse (src/lxml/lxml.etree.c:72453)
  File "parser.pxi", line 1791, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:105915)
  File "parser.pxi", line 1817, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:106214)
  File "parser.pxi", line 1721, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:105213)
  File "parser.pxi", line 1122, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:100163)
  File "parser.pxi", line 580, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:94286)
  File "parser.pxi", line 690, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:95722)
  File "parser.pxi", line 618, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:94754)
OSError: Error reading file 'man/bootup.xml': failed to load external entity "man/bootup.xml"

That is because the file names in the XML_FILES array are not relative
to $(top_srcdir), and hence ../tools/make-directive-index.py is called
with non-existant arguments.

To fix this, call patsubst when generating SOURCE_XML_FILES from
NON_INDEX_XML_FILES.

9 years agoMerge pull request #269 from teg/udev-docs-1
Kay Sievers [Wed, 17 Jun 2015 22:45:51 +0000 (00:45 +0200)] 
Merge pull request #269 from teg/udev-docs-1

man: libudev - add description to udev_device_*

9 years agoMerge pull request #272 from poettering/nspawn-flush-copy-fd
Daniel Mack [Wed, 17 Jun 2015 22:34:22 +0000 (00:34 +0200)] 
Merge pull request #272 from poettering/nspawn-flush-copy-fd

nspawn: when exiting, flush all remaining bytes from the pty to stdout

9 years agobuild-sys: bump versions and sonames
Lennart Poettering [Wed, 17 Jun 2015 22:28:06 +0000 (00:28 +0200)] 
build-sys: bump versions and sonames

9 years agoMerge pull request #276 from poettering/dbus-search-path
Kay Sievers [Wed, 17 Jun 2015 22:26:46 +0000 (00:26 +0200)] 
Merge pull request #276 from poettering/dbus-search-path

bus-proxy: add new dbus policy search paths from /usr

9 years agoNEWS: update
Kay Sievers [Wed, 17 Jun 2015 22:25:17 +0000 (00:25 +0200)] 
NEWS: update

9 years agoMerge pull request #277 from poettering/journal-interleaving-monotonic
Lennart Poettering [Wed, 17 Jun 2015 22:22:22 +0000 (00:22 +0200)] 
Merge pull request #277 from poettering/journal-interleaving-monotonic

journal: make sure the clock increases strict monotonic

9 years agoNEWS: prepare for v221
Lennart Poettering [Wed, 17 Jun 2015 22:18:49 +0000 (00:18 +0200)] 
NEWS: prepare for v221

9 years agohwdb: update databases from upstream
Lennart Poettering [Wed, 17 Jun 2015 21:54:35 +0000 (23:54 +0200)] 
hwdb: update databases from upstream

9 years agoman: minor typo fix
Lennart Poettering [Wed, 17 Jun 2015 21:50:13 +0000 (23:50 +0200)] 
man: minor typo fix

9 years agoman: run make update-man-list
Lennart Poettering [Wed, 17 Jun 2015 21:50:02 +0000 (23:50 +0200)] 
man: run make update-man-list

9 years agoMerge pull request #270 from phomes/master
Tom Gundersen [Wed, 17 Jun 2015 21:27:39 +0000 (23:27 +0200)] 
Merge pull request #270 from phomes/master

udevd: remove dead code

9 years agojournal: make sure the clock increases strict monotonic 277/head
Lennart Poettering [Wed, 17 Jun 2015 21:04:02 +0000 (23:04 +0200)] 
journal: make sure the clock increases strict monotonic

Let's work around crappy clocks in test-journal-interleaving.c too. This
does the same as 98d2a5341788b49e82d628dfdc2e241af6d70dcd but for
test-journal-interlaving.c rather than test-journal-stream.c.

9 years agoMerge pull request #275 from poettering/acl-fixes
Martin Pitt [Wed, 17 Jun 2015 21:10:19 +0000 (23:10 +0200)] 
Merge pull request #275 from poettering/acl-fixes

acl-util: various smaller fixes to parse_acl()

9 years agoupdate TODO
Lennart Poettering [Wed, 17 Jun 2015 21:03:27 +0000 (23:03 +0200)] 
update TODO

9 years agoMerge pull request #271 from poettering/test-journal-stream-crappy-clock
Lennart Poettering [Wed, 17 Jun 2015 20:56:09 +0000 (22:56 +0200)] 
Merge pull request #271 from poettering/test-journal-stream-crappy-clock

journal: ensure test-journal-stream doesn't get confused by crappy cl…