summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* busctl: add --timeout= option to specify method call timeoutLennart Poettering2014-11-21
|
* busctl: add options to control message header flags when invoking methodsLennart Poettering2014-11-21
|
* nspawn: Add try-{host,guest} journal link modesMartin Pitt2014-11-21
| | | | | | | | | | | | | | | | | --link-journal={host,guest} fail if the host does not have persistent journalling enabled and /var/log/journal/ does not exist. Even worse, as there is no stdout/err any more, there is no error message to point that out. Introduce two new modes "try-host" and "try-guest" which don't fail in this case, and instead just silently skip the guest journal setup. Change -j to mean "try-guest" instead of "guest", and fix the wrong --help output for it (it said "host" before). Change systemd-nspawn@.service.in to use "try-guest" so that this unit works with both persistent and non-persistent journals on the host without failing. https://bugs.debian.org/770275
* units: make sure rfkill service is bount to the actual hardwareLennart Poettering2014-11-21
|
* Revert "systemd-logind.service: set Type=notify"Lennart Poettering2014-11-21
| | | | | | | | | | | This reverts commit a4962513c555fe3ac4b5bebf97a71701361a45b0. logind.service is a D-Bus service, hence we should use the dbus name as indication that we are up. Type=dbus is implied if BusName= is specified, as it is in this case. This removes a warning that is printed because a BusName= is specified for a Type=notify unit.
* tmpfiles.d: Create /var/lib/containersMartin Pitt2014-11-21
| | | | | | | | | Create /var/lib/containers so that it exists with an appropriate mode. We want 0700 by default so that users on the host aren't able to call suid root binaries in the container. This becomes a security issue if a user can enter a container as root, create a suid root binary, and call that from the host. (This assumes that containers are caged by mandatory access control or are started as user).
* busctl: show property values in "introspect" output, add "set-property" ↵Lennart Poettering2014-11-21
| | | | command, and support both a terse and a verbose output format
* busctl: when --address is specified do not assume we connect to a full busLennart Poettering2014-11-21
|
* busctl: use canned error message on parse failureLennart Poettering2014-11-21
|
* sd-bus: create clean error when a property Set() call with incorrect ↵Lennart Poettering2014-11-21
| | | | signature is passed in
* build: avoid trailing whitespace in feature stringLennart Poettering2014-11-21
|
* util: add functions getting proc cwd and rootJakub Filak2014-11-21
| | | | | | | /proc/[pid]/cwd and /proc/[pid]/root are symliks to corresponding directories The added functions returns values of that symlinks.
* sd-dhcp-lease: fix copy-paste error asserting wrong function argumentThomas Haller2014-11-20
|
* busctl: pass error output to stdout (rather than stderr) when generate tree ↵Lennart Poettering2014-11-20
| | | | | | | for all objects This is a ton more useful when some services fail, since we continue crawling then and output everything to a pager.
* busctl: improve output of service credsLennart Poettering2014-11-20
|
* busctl: add new "introspect" verb for introspecting objectsLennart Poettering2014-11-20
|
* sd-bus: refuse properties that claim to be both writable and constant at the ↵Lennart Poettering2014-11-20
| | | | same time
* core: watchdog bus properties cannot be both writable and constantLennart Poettering2014-11-20
|
* tests: fix minor memory leakLennart Poettering2014-11-20
|
* set: make set_consume() actually free the allocated string if the string ↵Lennart Poettering2014-11-20
| | | | already is in the set
* busctl: split out introspection parser from tree logic so that we can reuse ↵Lennart Poettering2014-11-20
| | | | it for a future "busctl introspect" command
* systemd-logind.service: set Type=notifyDave Reisner2014-11-19
| | | | | | The code already calls sd_notify("READY=1"), so we may as well take advantage of the startup behavior in the unit. The same was done for the journal in a87a38c20.
* sd-dhcp-lease: load/save client IDDan Williams2014-11-19
| | | | | The lease is usually tied to the client ID, so users of the lease may want to know what client ID it was acquired with.
* sd-dhcp-client: allow getting/setting the client IDDan Williams2014-11-19
| | | | | | | | | The client identifier can be in many different formats, not just the one that systemd creates from the Ethernet MAC address. Non- ethernet interfaces may have different client IDs formats. Users may also have custom client IDs that the wish to use to preserve lease options delivered by servers configured with the existing client ID.
* update TODOLennart Poettering2014-11-19
|
* sd-dhcp-lease: expose load/save functionsTom Gundersen2014-11-18
| | | | Based on patch by Dan Williams.
* sd-dhcp-client: fix REBOOT state handlingDan Williams2014-11-18
| | | | | | | | | | | | | | | client->secs wasn't getting set in the REBOOT state, causing an assertion. REBOOT should work the same way as INIT, per RFC 2131: secs 2 Filled in by client, seconds elapsed since client began address acquisition or renewal process. REBOOT is necessary because some DHCP servers (eg on home routers) do not hand back the same IP address unless the 'ciaddr' field is filled with that address, which DISCOVER cannot do per the RFCs. This leads to multiple leases on machine reboot or DHCP client restart.
* namespace: unchecked return value from librarySusant Sahani2014-11-17
| | | | | | | | | | | | | | | | | | | fix: CID 1237553 (#1 of 6): Unchecked return value from library (CHECKED_RETURN CID 1237553 (#3 of 6): Unchecked return value from library (CHECKED_RETURN) CID 1237553 (#4 of 6): Unchecked return value from library (CHECKED_RETURN) CID 1237553 (#5 of 6): Unchecked return value from library (CHECKED_RETURN CID 1237553 (#6 of 6): Unchecked return value from library (CHECKED_RETURN)
* bus-socket: fix CID#996290 Unchecked return valueSusant Sahani2014-11-17
|
* resolve: fix CID#1237549 Unchecked return valueSusant Sahani2014-11-17
|
* log: unchecked return value from librarySusant Sahani2014-11-17
| | | | fix 1237557 Unchecked return value from library
* udev: silence TOCTOU warning when creating a directoryRonny Chevalier2014-11-16
| | | | | | | | | | | | CID#979416. There is no real race here to fix, but lets make coverity happy and rework the code. Note that we still fail if the directory is removed _after_ we ran mkdir(), so the same race is still there. Coverity is complaining, though. Rewrite the code to make it happy. (David: rewrote the commit-message to note that this is not a race. If I'm wrong, blame me, not Ronny!)
* pam_systemd: remove unused null checkThomas Hindoe Paaboel Andersen2014-11-15
| | | | | | | username was already checked with isempty() and cannot be null at this point. CID#1237766
* autogen: drop unnecessary -Wno-gnu for the clang shortcutThomas Hindoe Paaboel Andersen2014-11-15
| | | | | | It is no longer necessary after 65e3a2cf7c3b399853dd309f702ca5078b7d16ea where -Wno-gnu-variable-sized-type-not-at-end is added if we detect that the compiler is clang.
* bus-proxy: avoid redundant name validity checksLennart Poettering2014-11-14
| | | | | Our API calls check the validity of bus names anyway, hence we don't have to do this before calling them...
* bus-proxy: properly check for bus name prefixes when enforcing policyLennart Poettering2014-11-14
|
* bus-proxy: drop broken access check in driverLennart Poettering2014-11-14
| | | | | | | The access check call was broken (as it tried to read a service name from the UpdateActivationEnvironment() method call which doesn't carry any). Also, it's unnecessary to make any access checks here, as we just forward the call to PID 1 which should do the access checks necessary.
* kmod-setup: improve for "kdbus" word on the kernel cmdlineLennart Poettering2014-11-14
| | | | We really shouldn't check for words with "strstr()"...
* kmod: move #ifdef checks for kmod-setup out of main.c into kmod-setup.cLennart Poettering2014-11-14
|
* update TODOLennart Poettering2014-11-14
|
* busctl: introduce busctl "get-property" command for reading and dumping ↵Lennart Poettering2014-11-14
| | | | object properties
* mount-setup: remove mount_setup_late()Daniel Mack2014-11-14
| | | | | | Turns out we can just do kmod_setup() earlier, before we do mount_setup(), so there's no need for mount_setup_late() anymore. Instead, put kdbusfs in mount_table[].
* busctl: various tweaks to "busctl tree" outputLennart Poettering2014-11-14
|
* man: various tweaks for busctl(1) man pageLennart Poettering2014-11-14
|
* busctl: add new "call" command to invoke methods on a serviceLennart Poettering2014-11-14
|
* sd-bus: add sd_bus_message_is_empty() for checking whether a message carries ↵Lennart Poettering2014-11-14
| | | | any body
* man: hostnamectl understands -M tooLennart Poettering2014-11-14
|
* sd-bus: sync with kdbus upstream (ABI break)Daniel Mack2014-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kdbus has seen a larger update than expected lately, most notably with kdbusfs, a file system to expose the kdbus control files: * Each time a file system of this type is mounted, a new kdbus domain is created. * The layout inside each mount point is the same as before, except that domains are not hierarchically nested anymore. * Domains are therefore also unnamed now. * Unmounting a kdbusfs will automatically also detroy the associated domain. * Hence, the action of creating a kdbus domain is now as privileged as mounting a filesystem. * This way, we can get around creating dev nodes for everything, which is last but not least something that is not limited by 20-bit minor numbers. The kdbus specific bits in nspawn have all been dropped now, as nspawn can rely on the container OS to set up its own kdbus domain, simply by mounting a new instance. A new set of mounts has been added to mount things *after* the kernel modules have been loaded. For now, only kdbus is in this set, which is invoked with mount_setup_late().
* bus-proxyd: temporarily disable policy checks againDaniel Mack2014-11-13
| | | | | | There are issues to investigate on with policies shipped by some packages, which we'll address later. Move that topic out of the way for now to bring sd-bus in sync with upstream kdbus.
* udev: support ENV{}=="" global property matchesKay Sievers2014-11-13
|