summaryrefslogtreecommitdiff
path: root/src/libsystemd
Commit message (Collapse)AuthorAge
* bus: send attach flags on BUS_MAKEDavid Herrmann2014-12-12
| | | | | Make sure to set send-attach-flags on BUS_MAKE. These control which information is revealed about the bus-owner.
* bus: fix assert() on HELLO error-pathDavid Herrmann2014-12-12
| | | | | | Make sure we don't call into any bus_kernel_*() functions before b->is_kernel is set to true. Hard-code the CMD_FREE just like the other helpers do.
* bus: sync with kdbus.gitDavid Herrmann2014-12-11
| | | | | | Changes: * bloom parameters are returned in an offset via HELLO * FREE now takes items just like any other ioctl
* treewide: correct spacing near eol in code commentsTorstein Husebø2014-12-11
|
* sd-bus: correct spacing near eol in code commentsTorstein Husebø2014-12-11
|
* libsystemd: add sd-hwdb libraryTom Gundersen2014-12-11
| | | | | | | | | | | | | | | | This is libudev-hwdb, but decoupled from libudev and in the libsystemd style. The core code is unchanged, apart from the following minor changes: - hwdb.bin located in /**/systemd/hwdb/ take preference over the ones located in /**/udev/ - properties are stored internally in an OrderedHashmap, rather than a linked list. - a new API call allows individual properties to be queried directly, rather than iterating over them all - the iteration over properties have been moved inside the library, rather than exposing a list directly - the unused 'flags' parameter was dropped
* bus: sync with kdbus.gitDavid Herrmann2014-12-11
| | | | | | | | | | Sync up with recent kdbus changed: * several ioctls gained .size and .items members (but still unused) * CMD_SEND gained its own ioctl structure * several members of kdbus_msg were dropped as they were only used during SEND, not during RECV etc. * CMD_RECV and CMD_SEND now share a kdbus_reply member which contains the offset and size of the returned message.
* bus: zero cmd_free before passing to ioctlDavid Herrmann2014-12-11
| | | | | Make sure the whole cmd_free object is zeroed before passing it into the kernel. This makes valgrind happy and makes us future proof.
* bus: fix memfd-cache regarding memfd offsetsDavid Herrmann2014-12-11
| | | | | | | | | We must restore part->mmap_begin when poping memfds from the memfd-cache. We rely on the memfds to be unsealed, so we can be sure that we own the whole FD. Therefore, simply set part->mmap_begin to the same as part->data. This fixes test-bus-kernel-benchmark.
* sd-bus: make BUS_ERROR_MAP_ELF_USE() use a const variableLennart Poettering2014-12-10
|
* sd-bus: move common errors src/shared/bus-errors.h → ↵Lennart Poettering2014-12-10
| | | | | | src/libsystemd/sd-bus/bus-common-errors.h Stuff in src/shared/ should not use stuff from src/libsystemd/ really.
* kdbus: downgrade warning if we cannot patch kdbus attach mask to DEBUG if ↵Lennart Poettering2014-12-10
| | | | kdbus is not available
* util: introduce our own gperf based capability listLennart Poettering2014-12-10
| | | | | This way, we can ensure we have a more complete, up-to-date list of capabilities around, always.
* run: introduce timer support optionWaLyong Cho2014-12-09
| | | | | | | | | | | | | Support timer options --on-active=, --on-boot=, --on-startup=, --on-unit-active=, --on-unit-inactive=, --on-calendar=. Each options corresponding with OnActiveSec=, OnBootSec=, OnStartupSec=, OnUnitActiveSec=, OnUnitInactiveSec=, OnCalendar= of timer respectively. And OnCalendar= and WakeSystem= supported by --timer-property= option like --property= of systemd-run. And if --unit= option and timer options are specified the command can be omitted. In this case, systemd-run assumes the target service is already loaded. And just try to generate transient timer unit only.
* sd-bus: get rid of PID starttime conceptLennart Poettering2014-12-09
| | | | As kdbus no longer exports this, remove all traces from sd-bus too
* sd-bus: properly support passing memfds around with offset/size parametersLennart Poettering2014-12-09
|
* bus: sync with kdbus-git (ABI break)David Herrmann2014-12-09
| | | | | | | | | kdbus-git gained two new features: * memfd offsets: This allows to specify a 'start' offset in kdbus_memfd so you can send partial memfd hunks instead of always the full memfd * KDBUS_HELLO_UNPRIVILEGED: If passed during HELLO, the client will be treated as unprivileged.
* sd-rtnl: fix size check in sd_rtnl_message_append_string()Lennart Poettering2014-12-09
|
* sd-bus: catch up with current kdbus, don't do matches on kdbus monitor ↵Lennart Poettering2014-12-09
| | | | connections
* bus-proxy: fix compat with autostarted servicesLennart Poettering2014-12-08
|
* networkd: manager - enumerate addresses globally, rather than per-linkTom Gundersen2014-12-08
| | | | The kernel always returns all addresses, rather than only for the given link, so let's only enumerate once.
* sd-rtnl: fix bogus warning about dropping 20 bytes from multi-part messagesTom Gundersen2014-12-08
| | | | Nothing was being dropped, we just failed to account for the NLMSG_DONE.
* sd-bus: rework ELF error mapping table magicLennart Poettering2014-12-08
| | | | | | | The ELF magic cannot work for consumers of our shard library, since they are in a different module. Hence make all the ELF magic private, and instead introduce a public function to register additional static mapping table.
* sd-bus: follow kdbus changes (ABI break)Daniel Mack2014-12-05
| | | | | | | | Implement a recent change in the kdbus pool logic: PAYLOAD_VEC_OFF items are now referencing offsets relative to the connection's pool, not to the item itself. Follow this change in sd-bus.
* sd-bus: add extra assert checkLennart Poettering2014-12-04
|
* sd-rtnl: rename sd_rtnl_message_route_get_{dst,src}_len to *_prefixlenTom Gundersen2014-12-04
| | | | This makes the API more consistent.
* networkd: add support for source routingTom Gundersen2014-12-04
|
* rtnl: order local addresses/gateways by the address itself as last resortLennart Poettering2014-12-04
| | | | | This way we can be sure that the returned list is stable regarding modifications in the kernel.
* rtnl: when querying local addresses and gateways, take address family into ↵Lennart Poettering2014-12-04
| | | | account
* sd-bus: avoid a null dereferenceThomas Hindoe Paaboel Andersen2014-12-04
|
* rtnl: make checks for default routes more strictLennart Poettering2014-12-03
| | | | | Also check that the source netmask is 0, not only the destination netmask.
* nss-myhostname: always resolve the host name "gateway" to the local default ↵Lennart Poettering2014-12-03
| | | | | | | | gateway This is useful inside of containers or local networks to intrdouce a stable name of the default gateway host (in case of containers usually the host, in case of LANs usually local router).
* busctl: fix 'command line' style output of propertiesLennart Poettering2014-12-02
|
* sd-rtnl: route - allow GETROUTE with AF_UNSPECTom Gundersen2014-12-02
|
* sd-rtnl: add sd_rtnl_message_{new_neigh,neigh_get_{family,ifindex}}Tom Gundersen2014-12-02
|
* sd-rtnl: add typesystem for RTM_*NEIGHTom Gundersen2014-12-02
|
* sd-rtnl: add a bit more debugging in case a message is droppedTom Gundersen2014-12-02
|
* sd-rtnl: message - allow checking for attributes without reading out their ↵Tom Gundersen2014-12-02
| | | | contents
* sd-rtnl: add sd_rtnl_message_route_get_familyTom Gundersen2014-12-02
|
* sd-bus: move packet header definition to bus-protocol.hLennart Poettering2014-11-28
|
* treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1Lennart Poettering2014-11-28
|
* sd-bus: add support for matches against arrays of strings in messagesLennart Poettering2014-11-28
|
* sd-bus: if a NULL signatures is passed to sd_bus_message_skip(), make it ↵Lennart Poettering2014-11-28
| | | | skip a single element of any type
* sd-bus: add arrays of strings in the bloom filterLennart Poettering2014-11-28
| | | | | | Let's do this right from the beginning, to prepare ground for udev messages that most likely want to store list of strings (for device tags) in messages, and filter on them.
* sd-bus: make more connection properties readableLennart Poettering2014-11-28
|
* sd-bus: add new sd_bus_get_address() for querying the current bus addressLennart Poettering2014-11-28
| | | | Also, update "busctl" to show this in its output.
* sd-bus: rename sd_bus_get_owner_id() → sd_bus_get_bus_id()Lennart Poettering2014-11-28
| | | | | | | The ID returned really doesn't identify the owner, but the bus instance, hence fix this misnaming. Also, update "busctl status" to show the ID in its output.
* treewide: use log_*_errno whenever %m is in the format stringMichal Schmidt2014-11-28
| | | | | | | | | | | If the format string contains %m, clearly errno must have a meaningful value, so we might as well use log_*_errno to have ERRNO= logged. Using: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/' Plus some whitespace, linewrap, and indent adjustments.
* treewide: a few more log_*_errno + return simplificationsMichal Schmidt2014-11-28
| | | | The one in tmpfiles.c:create_item() even looks like it fixes a bug.
* treewide: yet more log_*_errno + return simplificationsMichal Schmidt2014-11-28
| | | | | | | | | | | | | Using: find . -name '*.[ch]' | while read f; do perl -i.mmm -e \ 'local $/; local $_=<>; s/(if\s*\([^\n]+\))\s*{\n(\s*)(log_[a-z_]*_errno\(\s*([->a-zA-Z_]+)\s*,[^;]+);\s*return\s+\g4;\s+}/\1\n\2return \3;/msg; print;' $f done And a couple of manual whitespace fixups.