summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-08-18shell-completion: bash: make list-transfers and cancel-transfer STANDALONESeth Jennings
list-transfers and cancel-transfers don't take machine arguments.
2015-08-18shell-completion: bash: add image transfer subcommandsSeth Jennings
2015-08-18Merge pull request #984 from whot/hwdb-updatesLennart Poettering
hwdb: fix capitalization of product version for the Macbooks
2015-08-18Merge pull request #983 from phomes/journal_dead_checkLennart Poettering
journal: remove error check that never happens
2015-08-18hwdb: fix capitalization of product version for the MacbooksPeter Hutterer
We need uppercase hex here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2015-08-18journal: remove error check that never happensThomas Hindoe Paaboel Andersen
remove_directory will always return 0 so this can never happen. Besides that, d->path and d are freed so we would end up with a null pointer dereference anyway.
2015-08-17Merge pull request #982 from evverx/add-systemd-cglsDaniel Mack
man: add systemd-cgls as tool that shows the cgroup hierarchy
2015-08-17man: add systemd-cgls as tool that shows the cgroup hierarchyEvgeny Vereshchagin
2015-08-17Merge pull request #977 from richardmaw-codethink/machinectl-userns-login-v2Lennart Poettering
Fix machinectl login with containers in user namespaces (v2)
2015-08-17Merge pull request #976 from elfring/Remove_unnecessary_checks2Lennart Poettering
Delete unnecessary checks before some function calls
2015-08-17Merge pull request #958 from stefwalter/fix-journalctl-f-regressionLennart Poettering
Regression: 'journalctl -f -t unmatched' doesn't block properly
2015-08-17namespace helpers: Allow entering a UID namespaceRichard Maw
To be able to use `systemd-run` or `machinectl login` on a container that is in a private user namespace, the sub-process must have entered the user namespace before connecting to the container's D-Bus, otherwise the UID and GID in the peer credentials are garbage. So we extend namespace_open and namespace_enter to support UID namespaces, and we enter the UID namespace in bus_container_connect_{socket,kernel}. namespace_open will degrade to a no-op if user namespaces are not enabled in the kernel. Special handling is required for the setns call in namespace_enter with a user namespace, since transitioning to your own namespace is forbidden, as it would result in re-entering your user namespace as root. Arguably it may be valid to check this at the call site, rather than inside namespace_enter, but it is less code to do it inside, and if the intention of calling namespace_enter is to *be* in the target namespace, rather than to transition to the target namespace, it is a reasonable approach. The check for whether the user namespace is the same must happen before entering namespaces, as we may not be able to access /proc during the intermediate transition stage. We can't instead attempt to enter the user namespace and then ignore the failure from it being the same namespace, since the error code is not distinct, and we can't compare namespaces while mid-transition.
2015-08-17Bug #944: Deletion of unnecessary checks before a few calls of systemd functionsMarkus Elfring
The following functions return immediately if a null pointer was passed. * calendar_spec_free * link_address_free * manager_free * sd_bus_unref * sd_journal_close * udev_monitor_unref * udev_unref It is therefore not needed that a function caller repeats a corresponding check. This issue was fixed by using the software Coccinelle 1.0.1.
2015-08-17Merge pull request #953 from poettering/ebadfDaniel Mack
tree-wide: generate EBADF when we get invalid fds
2015-08-17Merge pull request #970 from poettering/timedatectl-set-netpDaniel Mack
man: extend documentation for timedatectl's set-ntp command
2015-08-17Merge pull request #973 from poettering/sd-bus-error-retDaniel Mack
sd-bus: always fill in sd_bus_error paramters, on error
2015-08-17Merge pull request #974 from teg/resolved-fixes-2Daniel Mack
resolved: debugging improvements
2015-08-17journalctl: make sure 'journalctl -f -t unmatched' blocksStef Walter
Previously the following command: $ journalctl -f -t unmatchedtag12345 ... would block when called with criteria that did not match any journal lines. Once log lines appeared that matched the criteria they were displayed. Commit 02ab86c732576a71179ce12e97d44c289833236d broke this behavior and the journal was not followed, but the command exits with '-- No entries --' displayed. This commit fixes the issue. More information downstream: https://bugzilla.redhat.com/show_bug.cgi?id=1253649
2015-08-17Bug #944: Deletion of unnecessary checks before calls of the function "free"Markus Elfring
The function "free" is documented in the way that no action shall occur for a passed null pointer. It is therefore not needed that a function caller repeats a corresponding check. http://stackoverflow.com/questions/18775608/free-a-null-pointer-anyway-or-check-first This issue was fixed by using the software Coccinelle 1.0.1.
2015-08-17Bug #944: Replacement of a free() call by mfree()Markus Elfring
The function "mfree" should be called instead of "free" at a specific source code place.
2015-08-17resolved: cache - add more detailed cache debug loggingTom Gundersen
2015-08-16sd-bus: always fill in sd_bus_error paramters, on errorLennart Poettering
Whenever one of our calls is invoked with a non-NULL, writable sd_bus_error parameter, let's fill in some valid error on failure. We previously only filled in remote errors, but never local errors, which is hard to handle by users. Hence, let's clean this up to always fill in the error. This introduces a new bus_assert_return() macro that works like assert_return() but optionally also initializes a bus_error struct. Fixes #224. Based on a patch by Umut Tezduyar.
2015-08-16update TODOLennart Poettering
2015-08-16Merge pull request #908 from richardmaw-codethink/nspawn-path-escapes-v3Lennart Poettering
Allow arbitrary file paths to be passed to nspawn (v3)
2015-08-16README: drop reference to EndocodeLennart Poettering
Chris Kühl does not work at Endocode anymore, the contact data is no longer valid.
2015-08-16TODOTom Gundersen
2015-08-16resolve-host: print RTTTom Gundersen
2015-08-16resolved: packet - fix typo in read_rr()Tom Gundersen
2015-08-16Merge pull request #955 from poettering/resolved-localhost-xyzTom Gundersen
resolved: enable synthesizing of A, AAAA and PTR records for "localhost"
2015-08-16Merge pull request #954 from poettering/nss-myhostname-loopbackTom Gundersen
nss-myhostname: use LOOPBACK_IFINDEX instead of if_nametoindex("lo")
2015-08-16Merge pull request #972 from poettering/resolve-host-auto-startTom Gundersen
resolve-host: enable auto start of resolved
2015-08-16resolve-host: enable auto start of resolvedLennart Poettering
There's no reason to explicitly turn off bus activation for resolved here. The reason this was done before was that the code was copied from nss-resolve, which has a fallback to glibc's nss-dns if resolved is not reachable. However, such a logic makes no sense for resolve-host since such a fallback doesn't make sense here, which means we can actually turn on activation. Let's do it hence.
2015-08-16Merge pull request #971 from evverx/news-fixLennart Poettering
NEWS: fix the "indirect" state description
2015-08-16NEWS: fix the "indirect" state descriptionEvgeny Vereshchagin
2015-08-16Merge pull request #931 from spartacus06/update-completion-machinectlLennart Poettering
Update shell completion for machinectl
2015-08-16man: extend documentation for timedatectl's set-ntp commandLennart Poettering
This extends on the relationship between timedatectl's set-ntp command and its effect on the systemd-timesyncd.service unit. This also links that unit back to the timedatectl man page. Closes #798.
2015-08-16update TODOLennart Poettering
2015-08-16shell-completion: use list-images rather than listSeth Jennings
"machinectl list" only lists running machines while many of the MACHINES commands use names of images; both running and non-running. List machines from both "list" and "list-images" and use sort -u to avoid duplicates.
2015-08-16shell-completion: update machinectl bash completionSeth Jennings
Many new subcommands have been added since the bash completion was last updated. Bring it up to speed.
2015-08-16Merge pull request #930 from richardmaw-codethink/man-when-exec-start-postLennart Poettering
man: Describe when ExecStartFoo= commands are run in more detail
2015-08-16Merge pull request #918 from thomasmey/uml-fixLennart Poettering
UML: Fix block device setup
2015-08-16Merge pull request #947 from evverx/bash-completionLennart Poettering
Update bash-completion: generate all unit types
2015-08-16bash-completion: generate unit type list from systemctl -t help optionEvgeny Vereshchagin
2015-08-16Merge pull request #932 from kaysievers/busLennart Poettering
sd-bus: do not connect to dbus-1 socket when kdbus is available
2015-08-15Merge pull request #968 from alkino/masterRonny Chevalier
zsh completion: update busctl
2015-08-15zsh completion: update busctlNicolas Cornu
2015-08-14tree-wide: generate EBADF when we get invalid fdsLennart Poettering
This is a follow-up to #907, and makes the same change for all our other public APIs.
2015-08-14Merge pull request #948 from phomes/masterDaniel Mack
logind: actually fail on OOM
2015-08-14resolved: never allow routing of "localhost" queries to DNS or LLMNRLennart Poettering
We should never allow leaking of "localhost" queries onto the network, even if there's an explicit domain rotue set for this.
2015-08-14resolved: locally synthesize replies for "localhost"Lennart Poettering
Let's make sure that clients querying resolved via the bus for A, AAAA or PTR records for "localhost" get a synthesized, local reply, so that we do not hit the network. This makes part of nss-myhostname redundant, if used in conjunction. However, given that nss-resolve shall be optional we need to keep this code in both places for now.