summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-07-12dhcp: add support for vendor specific DHCP optionBeniamino Galvani
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]
2015-07-12Merge pull request #566 from teg/util-base64-2Daniel Mack
util: add base64 handling
2015-07-12basic: util - add base64mem() function similar to hexmem()Tom Gundersen
This implements RFC4648 for a slightly more compact representation of binary data compared to hex (6 bits per character rather than 4).
2015-07-12basic: util - fix errorhandling in unhexmem()Tom Gundersen
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.
2015-07-12Merge pull request #561 from cmacq2/html-man-fixesDaniel Mack
Html man fixes
2015-07-12Merge pull request #558 from poettering/logind-bus-policyTom Gundersen
logind: bring bus policy up-to-date
2015-07-12Merge pull request #556 from poettering/sd-bus-life-cycleTom Gundersen
man: go further into details regarding life-cycle of default bus conn…
2015-07-12Merge pull request #554 from poettering/ntp-poolTom Gundersen
build-sys: warn if people don't change the default NTP servers when b…
2015-07-12Merge pull request #553 from poettering/rt-group-schedTom Gundersen
README: document that RT group sched should be turned off
2015-07-12Use a top-to-bottom numbering scheme for generating ids of subheadings and ↵Johan Ouwerkerk
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.
2015-07-11Merge pull request #559 from poettering/logind-osindications-missingLennart Poettering
logind: some firmware implementations remove OsIndications if it is u…
2015-07-11logind: some firmware implementations remove OsIndications if it is unsetLennart Poettering
We shouldn't fall over that, and just assume it is 0 in this case. Fixes #499.
2015-07-11logind: bring bus policy up-to-dateLennart Poettering
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.
2015-07-11man: go further into details regarding life-cycle of default bus connection ↵Lennart Poettering
objects This extends on PR #542.
2015-07-11README: document that RT group sched should be turned offLennart Poettering
https://bugs.freedesktop.org/show_bug.cgi?id=87570 https://bugzilla.redhat.com/show_bug.cgi?id=1229700
2015-07-11Merge pull request #551 from poettering/fopen-temporary-noerrnoDaniel Mack
util: make sure we don't clobber errno in error path
2015-07-11Merge pull request #552 from poettering/path-is-mount-point-simplificationDaniel Mack
basic: simplify path_is_mount_point() a bit
2015-07-11build-sys: warn if people don't change the default NTP servers when building ↵Lennart Poettering
systemd Also, explain the situation in the docs. Relates to #437
2015-07-11basic: simplify path_is_mount_point() a bitLennart Poettering
This removes two uses of the ternary operator.
2015-07-11util: make sure we don't clobber errno in error pathLennart Poettering
2015-07-11Merge pull request #535 from martinpitt/masterLennart Poettering
units: emergency.service: wait for plymouth to shut down
2015-07-10Merge pull request #548 from vcaputo/fix_path_state_debug_msgDaniel Mack
core: include unit in path state transition debug logging.
2015-07-10core: include unit in path state transition debug logging.Vito Caputo
2015-07-10Merge pull request #542 from utezduyar/sd_unref-might-keep-bus-aliveDaniel Mack
man: sd_unref does not necessarily free the bus
2015-07-10logind: rename 'pos' to 'position'David Herrmann
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.
2015-07-10logind: allow greeters to take over VTsDavid Herrmann
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.
2015-07-10man: sd_unref does not necessarily free the busUmut Tezduyar Lindskog
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.
2015-07-10units: emergency.service: wait for plymouth to shut downMartin Pitt
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
2015-07-09Merge pull request #531 from dvdhrm/boot-buildidLennart Poettering
boot: use BUILD_ID if VERSION_ID is not available
2015-07-09Merge pull request #532 from dvdhrm/bus-managed-rootLennart Poettering
sd-bus: include queried path in GetManagedObjects
2015-07-09basic/util.c fopen_temporary(): close fd if failedcee1
2015-07-09Merge pull request #529 from dvdhrm/bus-slot-descriptionLennart Poettering
sd-bus: sd_bus_slot_get_description() should return const strings
2015-07-09Merge pull request #426 from tblume/reload-system-conf-at-daemon-reloadDaniel Mack
Reload manager defaults at daemon-reload
2015-07-09sd-bus: include queried path in GetManagedObjectsDavid Herrmann
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
2015-07-09boot: use BUILD_ID if VERSION_ID is not presentDavid Herrmann
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.
2015-07-09boot: fix memleaks in os-release parserDavid Herrmann
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..
2015-07-09sd-bus: sd_bus_slot_get_description() should return const stringsDavid Herrmann
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.
2015-07-09Reload manager defaults at daemon-reloadThomas Blume
"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.
2015-07-08Merge pull request #526 from phomes/masterLennart Poettering
machine: remove unused variables
2015-07-08machine: remove unused variablesThomas Hindoe Paaboel Andersen
2015-07-08Merge pull request #522 from mbiebl/no-install-readme-mdLennart Poettering
build-sys: Do not install README.md as end-user documentation
2015-07-08build-sys: Do not install README.md as end-user documentationMichael Biebl
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.
2015-07-08Merge pull request #516 from utezduyar/consistent-get-callback-returnLennart Poettering
property callback returns are consistent
2015-07-08Merge pull request #500 from zonque/fileioLennart Poettering
fileio: consolidate write_string_file*()
2015-07-08Merge pull request #520 from zonque/pr-384-reworkLennart Poettering
man-pages: PR 384 rework
2015-07-08man: minor updates to the sd_bus_request_name() documentationLennart Poettering
2015-07-08man: document user slice sd-login calls we added a while backLennart Poettering
2015-07-08man: fix sd_bus_negotiate_timestamps documentation link-upLennart Poettering
2015-07-08man: fully document sd_bus_creds subsystemLennart Poettering
[@zonque: typo fixed, reported by @ronnychevalier]
2015-07-08man: fully document sd-bus' error APIsLennart Poettering
[@zonque: Some minor nits fixed as pointed out by @ronnychevalier, dropped class='sd-bus-errors' to fix python logic]