]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
8 years agoMerge commit 'refs/pull/436/head' of https://github.com/systemd/systemd
David Herrmann [Tue, 14 Jul 2015 17:19:39 +0000 (19:19 +0200)] 
Merge commit 'refs/pull/436/head' of https://github.com/systemd/systemd

This merges:
  sd-netlink: respect attribute type flags

..fixing a conflict due to a typo fix.

8 years agoMerge pull request #530 from dvdhrm/resolve-host-dbus
Daniel Mack [Tue, 14 Jul 2015 16:41:29 +0000 (12:41 -0400)] 
Merge pull request #530 from dvdhrm/resolve-host-dbus

resolve-host: enable dbus-activation

8 years agoMerge pull request #579 from ssahani/tap-vnet-hdr
Daniel Mack [Tue, 14 Jul 2015 16:03:45 +0000 (12:03 -0400)] 
Merge pull request #579 from ssahani/tap-vnet-hdr

networkd: tap add support for vnet_hdr

8 years agoman: add man for tap vnet_hdr 579/head
Susant Sahani [Tue, 14 Jul 2015 15:18:09 +0000 (20:48 +0530)] 
man:  add man for tap vnet_hdr

8 years agonetworkd: tap add support for vnet_hdr
Susant Sahani [Tue, 14 Jul 2015 08:25:52 +0000 (13:55 +0530)] 
networkd: tap add support for vnet_hdr

 This patch adds support to configure IFF_VNET_HDR flag
for a tap device. It allows whether sending and receiving
large pass larger (GSO) packets. This greatly increases the
achievable throughput.

8 years agoMerge pull request #576 from zonque/resolved-cleanups
Tom Gundersen [Mon, 13 Jul 2015 17:30:30 +0000 (19:30 +0200)] 
Merge pull request #576 from zonque/resolved-cleanups

resolved: assorted cleanups

8 years agoresolved: make LLMNR checks conditional 576/head
Daniel Mack [Sat, 11 Jul 2015 16:37:17 +0000 (12:37 -0400)] 
resolved: make LLMNR checks conditional

Make all LLMNR related packet inspections conditional to p->protocol.
Use switch-case statements while at it, which will make future additions
more readable.

8 years agoresolved: separate LLMNR specific header bits
Daniel Mack [Sat, 11 Jul 2015 00:35:16 +0000 (20:35 -0400)] 
resolved: separate LLMNR specific header bits

The C and T bits in the DNS packet header definitions are specific to LLMNR.
In regular DNS, they are called AA and RD instead. Reflect that by calling
the macros accordingly, and alias LLMNR specific macros.

While at it, define RA, AD and CD getters as well.

8 years agoresolved: use a #define for LLMNR port
Daniel Mack [Fri, 10 Jul 2015 19:28:09 +0000 (15:28 -0400)] 
resolved: use a #define for LLMNR port

De-duplicate some magic numbers.

8 years agoresolved: move LLMNR related functions into separate file
Daniel Mack [Fri, 10 Jul 2015 19:02:38 +0000 (15:02 -0400)] 
resolved: move LLMNR related functions into separate file

8 years agoMerge pull request #573 from cmacq2/html-man-fixes
Daniel Mack [Mon, 13 Jul 2015 14:46:26 +0000 (10:46 -0400)] 
Merge pull request #573 from cmacq2/html-man-fixes

Reproducible ID/name values for auto generated anchors in HTML output

8 years agodoc: configure docbook stylesheet to generate reproducible IDs 573/head
Johan Ouwerkerk [Mon, 13 Jul 2015 08:39:09 +0000 (10:39 +0200)] 
doc: configure docbook stylesheet to generate reproducible IDs

This makes auto generated anchor tags in HTML output reproducible.

8 years agodhcp: add support for vendor specific DHCP option
Beniamino Galvani [Thu, 9 Jul 2015 16:04:01 +0000 (18:04 +0200)] 
dhcp: add support for vendor specific DHCP option

This adds support for option 43 (Vendor Specific Information) to
libsystemd-network DHCP code. The option carries an opaque object of n
octets, interpreted by vendor-specific code on the clients and
servers.

[@zonque: adopted to new unhexmem() API]

8 years agoMerge pull request #566 from teg/util-base64-2
Daniel Mack [Sun, 12 Jul 2015 18:10:39 +0000 (14:10 -0400)] 
Merge pull request #566 from teg/util-base64-2

util: add base64 handling

8 years agobasic: util - add base64mem() function similar to hexmem() 566/head
Tom Gundersen [Fri, 10 Jul 2015 12:38:19 +0000 (14:38 +0200)] 
basic: util - add base64mem() function similar to hexmem()

This implements RFC4648 for a slightly more compact representation of
binary data compared to hex (6 bits per character rather than 4).

8 years agobasic: util - fix errorhandling in unhexmem()
Tom Gundersen [Sat, 11 Jul 2015 17:14:52 +0000 (19:14 +0200)] 
basic: util - fix errorhandling in unhexmem()

We were ignoring failures from unhexchar, which meant that invalid
hex characters were being turned into garbage rather than the string
rejected.

Fix this by making unhexmem return an error code, also change the API
slightly, to return the size of the returned memory, reflecting the
fact that the memory is a binary blob,and not a string.

For convenience, still append a trailing NULL byte to the returned
memory (not included in the returned size), allowing callers to
treat it as a string without doing a second copy.

8 years agoMerge pull request #561 from cmacq2/html-man-fixes
Daniel Mack [Sun, 12 Jul 2015 15:33:27 +0000 (11:33 -0400)] 
Merge pull request #561 from cmacq2/html-man-fixes

Html man fixes

8 years agoMerge pull request #558 from poettering/logind-bus-policy
Tom Gundersen [Sun, 12 Jul 2015 09:44:45 +0000 (11:44 +0200)] 
Merge pull request #558 from poettering/logind-bus-policy

logind: bring bus policy up-to-date

8 years agoMerge pull request #556 from poettering/sd-bus-life-cycle
Tom Gundersen [Sun, 12 Jul 2015 09:44:14 +0000 (11:44 +0200)] 
Merge pull request #556 from poettering/sd-bus-life-cycle

man: go further into details regarding life-cycle of default bus conn…

8 years agoMerge pull request #554 from poettering/ntp-pool
Tom Gundersen [Sun, 12 Jul 2015 09:43:51 +0000 (11:43 +0200)] 
Merge pull request #554 from poettering/ntp-pool

build-sys: warn if people don't change the default NTP servers when b…

8 years agoMerge pull request #553 from poettering/rt-group-sched
Tom Gundersen [Sun, 12 Jul 2015 09:43:10 +0000 (11:43 +0200)] 
Merge pull request #553 from poettering/rt-group-sched

README: document that RT group sched should be turned off

8 years agoUse a top-to-bottom numbering scheme for generating ids of subheadings and terms. 561/head
Johan Ouwerkerk [Sun, 12 Jul 2015 01:07:24 +0000 (03:07 +0200)] 
Use a top-to-bottom numbering scheme for generating ids of subheadings and terms.
This scheme fixes permalinks to distinguish between items that would previously have the same ID attribute.

Where possible the generated ID values are the same as those generated with the previous versions of the stylesheet
to retain backwards compatibility with published links.

As a side effect of the changes xsltproc should no longer complain about duplicate IDs during build.

8 years agoMerge pull request #559 from poettering/logind-osindications-missing
Lennart Poettering [Sat, 11 Jul 2015 22:32:58 +0000 (19:32 -0300)] 
Merge pull request #559 from poettering/logind-osindications-missing

logind: some firmware implementations remove OsIndications if it is u…

8 years agologind: some firmware implementations remove OsIndications if it is unset 559/head
Lennart Poettering [Sat, 11 Jul 2015 20:29:48 +0000 (17:29 -0300)] 
logind: some firmware implementations remove OsIndications if it is unset

We shouldn't fall over that, and just assume it is 0 in this case.

Fixes #499.

8 years agologind: bring bus policy up-to-date 558/head
Lennart Poettering [Sat, 11 Jul 2015 20:00:26 +0000 (17:00 -0300)] 
logind: bring bus policy up-to-date

A while back we opened up all of logind's bus calls to unprivileged
users, via PK. However, the dbus1 policy wasn't updated accordingly.

With this change, the dbus1 policy is opened up for all bus calls that
should be available to unprivileged clients.

(also rearranges some calls in the vtable, to make more sense, and be in
line with the order in the bus policy file)

Fixes #471.

8 years agoman: go further into details regarding life-cycle of default bus connection objects 556/head
Lennart Poettering [Sat, 11 Jul 2015 19:11:45 +0000 (16:11 -0300)] 
man: go further into details regarding life-cycle of default bus connection objects

This extends on PR #542.

8 years agoREADME: document that RT group sched should be turned off 553/head
Lennart Poettering [Sat, 11 Jul 2015 17:18:35 +0000 (14:18 -0300)] 
README: document that RT group sched should be turned off

https://bugs.freedesktop.org/show_bug.cgi?id=87570
https://bugzilla.redhat.com/show_bug.cgi?id=1229700

8 years agoMerge pull request #551 from poettering/fopen-temporary-noerrno
Daniel Mack [Sat, 11 Jul 2015 17:35:50 +0000 (13:35 -0400)] 
Merge pull request #551 from poettering/fopen-temporary-noerrno

util: make sure we don't clobber errno in error path

8 years agoMerge pull request #552 from poettering/path-is-mount-point-simplification
Daniel Mack [Sat, 11 Jul 2015 17:35:24 +0000 (13:35 -0400)] 
Merge pull request #552 from poettering/path-is-mount-point-simplification

basic: simplify path_is_mount_point() a bit

8 years agobuild-sys: warn if people don't change the default NTP servers when building systemd 554/head
Lennart Poettering [Sat, 11 Jul 2015 17:16:40 +0000 (14:16 -0300)] 
build-sys: warn if people don't change the default NTP servers when building systemd

Also, explain the situation in the docs.

Relates to #437

8 years agobasic: simplify path_is_mount_point() a bit 552/head
Lennart Poettering [Sat, 11 Jul 2015 17:20:38 +0000 (14:20 -0300)] 
basic: simplify path_is_mount_point() a bit

This removes two uses of the ternary operator.

8 years agoutil: make sure we don't clobber errno in error path 551/head
Lennart Poettering [Sat, 11 Jul 2015 17:19:36 +0000 (14:19 -0300)] 
util: make sure we don't clobber errno in error path

8 years agoMerge pull request #535 from martinpitt/master
Lennart Poettering [Sat, 11 Jul 2015 15:17:39 +0000 (12:17 -0300)] 
Merge pull request #535 from martinpitt/master

units: emergency.service: wait for plymouth to shut down

8 years agoMerge pull request #548 from vcaputo/fix_path_state_debug_msg
Daniel Mack [Sat, 11 Jul 2015 00:42:32 +0000 (20:42 -0400)] 
Merge pull request #548 from vcaputo/fix_path_state_debug_msg

core: include unit in path state transition debug logging.

8 years agocore: include unit in path state transition debug logging. 548/head
Vito Caputo [Fri, 10 Jul 2015 23:40:46 +0000 (16:40 -0700)] 
core: include unit in path state transition debug logging.

8 years agoMerge pull request #542 from utezduyar/sd_unref-might-keep-bus-alive
Daniel Mack [Fri, 10 Jul 2015 15:23:18 +0000 (11:23 -0400)] 
Merge pull request #542 from utezduyar/sd_unref-might-keep-bus-alive

man: sd_unref does not necessarily free the bus

8 years agologind: rename 'pos' to 'position'
David Herrmann [Fri, 10 Jul 2015 13:08:24 +0000 (15:08 +0200)] 
logind: rename 'pos' to 'position'

Spell out the proper name. Use 'pos' over 'position', and also update the
logind state file to do the same. Note that this breaks live updates.
However, we only save 'POSITION' on non-seat0, so this shouldn't bother
anyone for real. If you run multi-seat setups, you better restart a
machine on updates, anyway.

8 years agologind: allow greeters to take over VTs
David Herrmann [Fri, 10 Jul 2015 12:53:08 +0000 (14:53 +0200)] 
logind: allow greeters to take over VTs

Make sure a greeter can forcefully spawn a session on a VT that is
in-use. A recent patch prevented this (this used to be possible for all
session types) as it is highly fragile. However, as it turns out,
greeters seem to rely on that feature. Therefore, make sure we allow it
explicitly for greeters.

8 years agoman: sd_unref does not necessarily free the bus 542/head
Umut Tezduyar Lindskog [Fri, 10 Jul 2015 12:31:53 +0000 (14:31 +0200)] 
man: sd_unref does not necessarily free the bus

Document that sd_unref() does not necessarily free the bus,
even if no part of the program explicitly refs it, due to
the queued messages.

8 years agounits: emergency.service: wait for plymouth to shut down 535/head
Martin Pitt [Thu, 9 Jul 2015 14:25:00 +0000 (16:25 +0200)] 
units: emergency.service: wait for plymouth to shut down

Merely calling "plymouth quit" isn't sufficient, as plymouth needs some time to
shut down. This needs plymouth --wait (which is a no-op when it's not running).

Fixes invisible emergency shell with plymouth running endlessly.

https://launchpad.net/bugs/1471258

8 years agoMerge pull request #531 from dvdhrm/boot-buildid
Lennart Poettering [Thu, 9 Jul 2015 14:50:03 +0000 (11:50 -0300)] 
Merge pull request #531 from dvdhrm/boot-buildid

boot: use BUILD_ID if VERSION_ID is not available

8 years agoMerge pull request #532 from dvdhrm/bus-managed-root
Lennart Poettering [Thu, 9 Jul 2015 14:47:55 +0000 (11:47 -0300)] 
Merge pull request #532 from dvdhrm/bus-managed-root

sd-bus: include queried path in GetManagedObjects

8 years agobasic/util.c fopen_temporary(): close fd if failed
cee1 [Thu, 9 Jul 2015 05:52:16 +0000 (13:52 +0800)] 
basic/util.c fopen_temporary(): close fd if failed

8 years agoMerge pull request #529 from dvdhrm/bus-slot-description
Lennart Poettering [Thu, 9 Jul 2015 14:38:11 +0000 (11:38 -0300)] 
Merge pull request #529 from dvdhrm/bus-slot-description

sd-bus: sd_bus_slot_get_description() should return const strings

8 years agoMerge pull request #426 from tblume/reload-system-conf-at-daemon-reload
Daniel Mack [Thu, 9 Jul 2015 14:01:06 +0000 (10:01 -0400)] 
Merge pull request #426 from tblume/reload-system-conf-at-daemon-reload

Reload manager defaults at daemon-reload

8 years agosd-bus: include queried path in GetManagedObjects 532/head
David Herrmann [Thu, 9 Jul 2015 11:27:57 +0000 (13:27 +0200)] 
sd-bus: include queried path in GetManagedObjects

If GetManagedObjects is called on /foo/bar, then it should also include
the object /foo/bar, if it exists. Right now, we only include objects
underneath /foo/bar/.

This follows the behavior of existing dbus implementations.

Obsoletes #527 and fixes #525. Reported by: Nathaniel McCallum

8 years agoboot: use BUILD_ID if VERSION_ID is not present 531/head
David Herrmann [Thu, 9 Jul 2015 11:04:58 +0000 (13:04 +0200)] 
boot: use BUILD_ID if VERSION_ID is not present

According to os-release(5), VERSION_ID is not mandatory and BUILD_ID only
needs to be unique underneath VERSION_ID. Therefore, assuming a missing
VERSION_ID field means 'empty', we can rely on BUILD_ID to be unique.

Use BUILD_ID if VERSION_ID is not present. This way, rolling-release
distros can still provide a proper os-release entry without crafting
random VERSION_ID strings.

This fixes #186.

8 years agoboot: fix memleaks in os-release parser
David Herrmann [Thu, 9 Jul 2015 11:02:54 +0000 (13:02 +0200)] 
boot: fix memleaks in os-release parser

There is no guarantee that the os-release section contains each key only
once, nor any guarantee that all keys are present. Make sure we properly
free memory in both cases.

Not that it matters much, as we're short-living, anyway. But correct code
is always nicer to read..

8 years agoresolve-host: enable dbus-activation 530/head
David Herrmann [Thu, 9 Jul 2015 09:37:26 +0000 (11:37 +0200)] 
resolve-host: enable dbus-activation

Right now, systemd-resolve-host fails if resolved is not running.
However, resolved supports bus-activation (at least on kdbus) just fine.
Enable this so we can use resolve-host at all times.

This was disabled right from the beginning, without any comment why.

8 years agosd-bus: sd_bus_slot_get_description() should return const strings 529/head
David Herrmann [Thu, 9 Jul 2015 08:40:41 +0000 (10:40 +0200)] 
sd-bus: sd_bus_slot_get_description() should return const strings

All other *_get_description() functions use 'const char**', so make sure
sd_bus_slot_get_description() does the same.

This changes API, but ABI stays stable. I think this is fine, but I
wouldn't mind bumping SONAME.

Reported in #528.

8 years agoReload manager defaults at daemon-reload 426/head
Thomas Blume [Mon, 29 Jun 2015 09:26:27 +0000 (11:26 +0200)] 
Reload manager defaults at daemon-reload

"systemctl daemon-reload" should also update the manager defaults from
/etc/systemd/system.conf.
For details, see:
http://lists.freedesktop.org/archives/systemd-devel/2015-June/033062.html

Amended to use  manager_set_defaults() as common function.

8 years agoMerge pull request #526 from phomes/master
Lennart Poettering [Wed, 8 Jul 2015 22:00:18 +0000 (19:00 -0300)] 
Merge pull request #526 from phomes/master

machine: remove unused variables

8 years agomachine: remove unused variables 526/head
Thomas Hindoe Paaboel Andersen [Wed, 8 Jul 2015 21:45:49 +0000 (23:45 +0200)] 
machine: remove unused variables

8 years agoMerge pull request #522 from mbiebl/no-install-readme-md
Lennart Poettering [Wed, 8 Jul 2015 20:37:06 +0000 (17:37 -0300)] 
Merge pull request #522 from mbiebl/no-install-readme-md

build-sys: Do not install README.md as end-user documentation

8 years agobuild-sys: Do not install README.md as end-user documentation 522/head
Michael Biebl [Wed, 8 Jul 2015 20:27:27 +0000 (22:27 +0200)] 
build-sys: Do not install README.md as end-user documentation

This file is mostly GitHub glue and not particularly useful to
end-users. So only add it to the dist tarball but do not install it as
documentation.

8 years agoMerge pull request #516 from utezduyar/consistent-get-callback-return
Lennart Poettering [Wed, 8 Jul 2015 20:24:20 +0000 (17:24 -0300)] 
Merge pull request #516 from utezduyar/consistent-get-callback-return

property callback returns are consistent

8 years agoMerge pull request #500 from zonque/fileio
Lennart Poettering [Wed, 8 Jul 2015 20:13:53 +0000 (17:13 -0300)] 
Merge pull request #500 from zonque/fileio

fileio: consolidate write_string_file*()

8 years agoMerge pull request #520 from zonque/pr-384-rework
Lennart Poettering [Wed, 8 Jul 2015 19:50:48 +0000 (16:50 -0300)] 
Merge pull request #520 from zonque/pr-384-rework

man-pages: PR 384 rework

8 years agoman: minor updates to the sd_bus_request_name() documentation 520/head
Lennart Poettering [Tue, 23 Jun 2015 19:41:15 +0000 (21:41 +0200)] 
man: minor updates to the sd_bus_request_name() documentation

8 years agoman: document user slice sd-login calls we added a while back
Lennart Poettering [Tue, 23 Jun 2015 19:22:56 +0000 (21:22 +0200)] 
man: document user slice sd-login calls we added a while back

8 years agoman: fix sd_bus_negotiate_timestamps documentation link-up
Lennart Poettering [Tue, 23 Jun 2015 18:44:15 +0000 (20:44 +0200)] 
man: fix sd_bus_negotiate_timestamps documentation link-up

8 years agoman: fully document sd_bus_creds subsystem
Lennart Poettering [Tue, 23 Jun 2015 18:42:57 +0000 (20:42 +0200)] 
man: fully document sd_bus_creds subsystem

[@zonque: typo fixed, reported by @ronnychevalier]

8 years agoman: fully document sd-bus' error APIs
Lennart Poettering [Tue, 23 Jun 2015 17:37:28 +0000 (19:37 +0200)] 
man: fully document sd-bus' error APIs

[@zonque: Some minor nits fixed as pointed out by @ronnychevalier,
 dropped class='sd-bus-errors' to fix python logic]

8 years agoMerge pull request #519 from poettering/man-bus-message-append
Daniel Mack [Wed, 8 Jul 2015 16:17:47 +0000 (12:17 -0400)] 
Merge pull request #519 from poettering/man-bus-message-append

man: update and extend the various sd_bus_message_append_*() man pages

8 years agoMerge pull request #514 from teg/resolved-rrsig-marshal
Lennart Poettering [Wed, 8 Jul 2015 16:00:20 +0000 (13:00 -0300)] 
Merge pull request #514 from teg/resolved-rrsig-marshal

resolved: fix marshalling of RRSIG records

8 years agoMerge pull request #515 from xnox/no-dot-files
Lennart Poettering [Wed, 8 Jul 2015 15:46:49 +0000 (12:46 -0300)] 
Merge pull request #515 from xnox/no-dot-files

automake: Do not install developer files on end-user systems.

8 years agoMerge pull request #510 from zonque/journal-gatewayd
Tom Gundersen [Wed, 8 Jul 2015 14:16:44 +0000 (16:16 +0200)] 
Merge pull request #510 from zonque/journal-gatewayd

journal-gatewayd: fix tmpfile logic

8 years agoMerge pull request #501 from keszybz/remove-python-systemd
Daniel Mack [Wed, 8 Jul 2015 13:38:38 +0000 (09:38 -0400)] 
Merge pull request #501 from keszybz/remove-python-systemd

Remove python-systemd

8 years agoproperty callback returns are consistent 516/head
Umut Tezduyar Lindskog [Wed, 8 Jul 2015 12:35:32 +0000 (14:35 +0200)] 
property callback returns are consistent

It is no different to return 0 over 1 in the property
callback. It is confusing to return 1 which made me think
1 has a special purpose. This way code is consistent with
the rest of the tree.

8 years agoautomake: Do not install developer files on end-user systems. 515/head
Dimitri John Ledkov [Wed, 8 Jul 2015 11:37:47 +0000 (12:37 +0100)] 
automake: Do not install developer files on end-user systems.

autogen.sh, .dir-locals.el, .vimrc, .ycm_extra_conf.py, .travis.yml,
.mailmap files are only useful with the source tree, for the
developers. Do not install these files as documentation on the
end-user systems, but keep them distributed with the tarball.

8 years agoresolved: fix marshalling of RRSIG records 514/head
Tom Gundersen [Wed, 8 Jul 2015 11:52:48 +0000 (13:52 +0200)] 
resolved: fix marshalling of RRSIG records

The key tag is 16, not 8 bits.

8 years agojournal-gatewayd: fix tmpfile logic 510/head
Daniel Mack [Tue, 7 Jul 2015 21:21:03 +0000 (17:21 -0400)] 
journal-gatewayd: fix tmpfile logic

"rw" is not a valid mode string for f*open(). This got broken in
cc02a7b33049 ("journal-gatewayd: factor out opening of temp
file").

8 years agoman: update and extend the various sd_bus_message_append_*() man pages 519/head
Lennart Poettering [Tue, 7 Jul 2015 18:35:45 +0000 (20:35 +0200)] 
man: update and extend the various sd_bus_message_append_*() man pages

Some calls changed their signature since the man pages were written.
Also extend on a number of details.

8 years agoMerge pull request #509 from dvdhrm/logind v222
Kay Sievers [Tue, 7 Jul 2015 17:43:28 +0000 (19:43 +0200)] 
Merge pull request #509 from dvdhrm/logind

logind: fix CreateSession for lightdm

8 years agologind: fail on CreateSession if already in session 509/head
David Herrmann [Tue, 7 Jul 2015 17:38:41 +0000 (19:38 +0200)] 
logind: fail on CreateSession if already in session

Right now, if you're already in a session and call CreateSession, we
return information about the current session of yours. This is highy
confusing and a nasty hack. Avoid that, and instead return a commonly
known error, so the caller can detect that.

This has the side-effect, that we no longer override XDG_VTNR and XDG_SEAT
in pam_systemd, if you're already in a session. But this sounds like the
right thing to do, anyway.

8 years agohwdb: Update database of Bluetooth company identifiers
Marcel Holtmann [Tue, 7 Jul 2015 17:22:10 +0000 (19:22 +0200)] 
hwdb: Update database of Bluetooth company identifiers

8 years agologind: allow sessions to share a VT if it's a greeter
David Herrmann [Tue, 7 Jul 2015 17:13:52 +0000 (19:13 +0200)] 
logind: allow sessions to share a VT if it's a greeter

Old gdm and lightdm start the user-session during login before they
destroy the greeter-session. Therefore, the user-session will take over
the VT from the greeter. We recently prevented this by never allowing
multiple sessions on the same VT. Fix this now, by explicitly allowing
this if the owning session is a GREETER.

Note that gdm no longer behaves like this. Instead, due to wayland, they
always use a different VT for each session. All other login-managers are
highly encouraged to destroy the greeter-session _before_ starting the
user-session. We now work around this, but this will probably not last
forever (and will already have nasty side-effects on the greeter-session).

8 years agoBump version to 222
David Herrmann [Tue, 7 Jul 2015 15:13:39 +0000 (17:13 +0200)] 
Bump version to 222

8 years agoRemove repeated 'the's
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2015 11:40:53 +0000 (07:40 -0400)] 
Remove repeated 'the's

8 years agoNEWS: give packagers a heads-up on the upcoming python bindings removal
Daniel Mack [Tue, 7 Jul 2015 01:19:57 +0000 (21:19 -0400)] 
NEWS: give packagers a heads-up on the upcoming python bindings removal

8 years agoMerge pull request #502 from keszybz/login-small-cleanup
Daniel Mack [Tue, 7 Jul 2015 00:45:17 +0000 (20:45 -0400)] 
Merge pull request #502 from keszybz/login-small-cleanup

Login small cleanup

8 years agoRemove python-systemd 501/head
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2015 00:32:12 +0000 (20:32 -0400)] 
Remove python-systemd

python-system has moved to it's own repository:
https://github.com/systemd/python-systemd

8 years agotreewide: fix typos of let's
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2015 00:09:54 +0000 (20:09 -0400)] 
treewide: fix typos of let's

8 years agologin: use normal comparison to zero for integers 502/head
Zbigniew Jędrzejewski-Szmek [Tue, 7 Jul 2015 00:04:13 +0000 (20:04 -0400)] 
login: use normal comparison to zero for integers

! is supposed to be used for booleans and pointers.

8 years agotree-wide: fix write_string_file() user that should not create files 500/head
Daniel Mack [Mon, 6 Jul 2015 23:27:20 +0000 (19:27 -0400)] 
tree-wide: fix write_string_file() user that should not create files

The latest consolidation cleanup of write_string_file() revealed some users
of that helper which should have used write_string_file_no_create() in the
past but didn't. Basically, all existing users that write to files in /sys
and /proc should not expect to write to a file which is not yet existant.

8 years agofileio: consolidate write_string_file*()
Daniel Mack [Mon, 6 Jul 2015 23:19:25 +0000 (19:19 -0400)] 
fileio: consolidate write_string_file*()

Merge write_string_file(), write_string_file_no_create() and
write_string_file_atomic() into write_string_file() and provide a flags mask
that allows combinations of atomic writing, newline appending and automatic
file creation. Change all users accordingly.

8 years agofileio: add 'enforce_newline' argument to write_string_stream()
Daniel Mack [Mon, 6 Jul 2015 21:31:44 +0000 (17:31 -0400)] 
fileio: add 'enforce_newline' argument to write_string_stream()

Add a flag to control whether write_string_stream() should always enforce a
trailing newline character in the file.

8 years agoget_process_environ: exit early when there is nothing to read
Kay Sievers [Mon, 6 Jul 2015 21:00:49 +0000 (23:00 +0200)] 
get_process_environ: exit early when there is nothing to read

8 years agoMerge pull request #492 from richardmaw-codethink/nspawn-automatic-uid-shift-fix-v2
Lennart Poettering [Mon, 6 Jul 2015 18:53:56 +0000 (20:53 +0200)] 
Merge pull request #492 from richardmaw-codethink/nspawn-automatic-uid-shift-fix-v2

nspawn: Communicate determined UID shift to parent version 2

8 years agoMerge pull request #497 from phomes/master
Daniel Mack [Mon, 6 Jul 2015 18:45:50 +0000 (14:45 -0400)] 
Merge pull request #497 from phomes/master

man: sd-bus: typo fix

8 years agoMerge pull request #496 from poettering/ipv6-privacy
Daniel Mack [Mon, 6 Jul 2015 18:44:33 +0000 (14:44 -0400)] 
Merge pull request #496 from poettering/ipv6-privacy

networkd: various fixes for the IPv6 privacy extensions support

8 years agoman: sd-bus: typo fix 497/head
Thomas Hindoe Paaboel Andersen [Mon, 6 Jul 2015 18:34:09 +0000 (20:34 +0200)] 
man: sd-bus: typo fix

8 years agonetworkd: various fixes for the IPv6 privacy extensions support 496/head
Lennart Poettering [Mon, 6 Jul 2015 18:29:33 +0000 (20:29 +0200)] 
networkd: various fixes for the IPv6 privacy extensions support

- Make sure that the IPv6PrivacyExtensions=yes results in
  prefer-temporary, not prefer-public.

- Introduce special enum value "kernel" to leave setting unset, similar
  how we have it for the IP forwarding settings.

- Bring the enum values in sync with the the strings we parse for them,
  to the level this makes sense (specifically, rename "disabled" to
  "no", and "prefer-temporary" to "yes").

- Make sure we really set the value to to "no" by default, the way it is
  already documented in the man page.

- Fix whitespace error.

- Make sure link_ipv6_privacy_extensions() actually returns the correct
  enum type, rather than implicitly casting it to "bool".

- properly size formatting buffer for ipv6 sysctl value

- Don't complain if /proc/sys isn't writable

- Document that the enum follows the kernel's own values (0 = off, 1 =
  prefer-public, 2 = prefer-temporary)

- Drop redundant negating of error code passed to log_syntax()

- Manpage fixes

This fixes a number of issues from PR #417

8 years agoMerge pull request #495 from poettering/forwarding-fix
Daniel Mack [Mon, 6 Jul 2015 18:22:23 +0000 (14:22 -0400)] 
Merge pull request #495 from poettering/forwarding-fix

networkd: be more defensive when writing to ipv4/ipv6 forwarding sett…

8 years agoNEWS: mention ipv6 privacy extensions
David Herrmann [Mon, 6 Jul 2015 17:07:10 +0000 (19:07 +0200)] 
NEWS: mention ipv6 privacy extensions

8 years agobus-proxyd: fix log message and explain dbus-1 compat matches
Kay Sievers [Mon, 6 Jul 2015 15:54:40 +0000 (17:54 +0200)] 
bus-proxyd: fix log message and explain dbus-1 compat matches

8 years agodocs: add .gitignore
Kay Sievers [Mon, 6 Jul 2015 15:46:43 +0000 (17:46 +0200)] 
docs: add .gitignore

8 years agobus-proxyd: subscribe to unicast signals directed to the proxy connection
Kay Sievers [Mon, 6 Jul 2015 15:45:26 +0000 (17:45 +0200)] 
bus-proxyd: subscribe to unicast signals directed to the proxy connection

8 years agosd-bus: support matching on destination names
David Herrmann [Mon, 6 Jul 2015 15:43:36 +0000 (17:43 +0200)] 
sd-bus: support matching on destination names

Right now, we never install destination matches on kdbus as the kernel did
not support MATCH rules on those. With the introduction of
KDBUS_ITEM_DST_ID we can now match on destination IDs, so add explicit
support for those.

This requires a recent kdbus module to work. However, there seems to be no
user-space that uses "Destination=''" matches, yet, so old kdbus modules
still work fine (we couldn't find any real user).

This is needed to match on unicast signals in bus-proxy. A followup will
add support for this.

8 years agoMerge pull request #491 from torstehu/fix-typo
Daniel Mack [Mon, 6 Jul 2015 13:00:04 +0000 (09:00 -0400)] 
Merge pull request #491 from torstehu/fix-typo

treewide: fix typos