summaryrefslogtreecommitdiff
path: root/src/libsystemd
Commit message (Collapse)AuthorAge
...
* treewide: more log_*_errno + return simplificationsMichal Schmidt2014-11-28
|
* sd-bus: make sure %m resolves to the specified error in bus_error_set_errnofv()Lennart Poettering2014-11-28
|
* sd-bus: rename default bus address constants, they aren't "paths" but ↵Lennart Poettering2014-11-28
| | | | "addresses"
* sd-bus: add new call sd_bus_get_scope() for querying whether one is ↵Lennart Poettering2014-11-28
| | | | connected to a system or a user bus
* sd-bus: rework credential query logicLennart Poettering2014-11-28
| | | | Also, make the call to free kdbus slices generic and use it everywhere
* treewide: more log_*_errno() conversionsMichal Schmidt2014-11-28
|
* treewide: drop unnecessary trailing \n in log_*() callsMichal Schmidt2014-11-28
|
* treewide: no need to negate errno for log_*_errno()Michal Schmidt2014-11-28
| | | | It corrrectly handles both positive and negative errno values.
* treewide: auto-convert the simple cases to log_*_errno()Michal Schmidt2014-11-28
| | | | | | | | | | | | | As a followup to 086891e5c1 "log: add an "error" parameter to all low-level logging calls and intrdouce log_error_errno() as log calls that take error numbers", use sed to convert the simple cases to use the new macros: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/' Multi-line log_*() invocations are not covered. And we also should add log_unit_*_errno().
* kdbus: when running in a container, don't complain that we cannot write to /sysLennart Poettering2014-11-28
|
* sd-bus: the attach_mask kernel module parameter is 64bit now, hence ↵Lennart Poettering2014-11-28
| | | | initialize it as such
* kdbus: set kernel attach mask before creating the first busLennart Poettering2014-11-27
|
* sd-bus: set creds info for "org.freedesktop.DBus.Local" generated messages, tooLennart Poettering2014-11-27
|
* sd-bus: when we get the list of well-known names back from kdbus we ↵Lennart Poettering2014-11-27
| | | | shouldn't confuse the empty list with unknown information
* sd-bus: deal with whitespace in matchesLennart Poettering2014-11-27
|
* sd-bus: unify logic how we patch the message source of driver messagesLennart Poettering2014-11-27
|
* sd-bus: fake valid well-known-names metadata for faked bus messagesLennart Poettering2014-11-27
|
* sd-bus: optimize how we generate the well-known-names lists in messages from ↵Lennart Poettering2014-11-27
| | | | kdbus
* sd-bus: be stricter with mismatches between dbus1 and kdbus message headersLennart Poettering2014-11-27
|
* bus-proxy: check passed parameter signature of all driver method callsLennart Poettering2014-11-27
|
* networkd: fix kernel rtnl receive buffer overrun errorAlin Rauta2014-11-27
| | | | | | | | | | | | | | | | | | | | | | We got the following error when running systemd on a device with many ports: "rtnl: kernel receive buffer overrun Event source 'rtnl-receive-message' returned error, disabling: No buffer space available" I think the kernel socket receive buffer queue should be increased. The default value is taken from: "/proc/sys/net/core/rmem_default", but we can overwrite it using SO_RCVBUF socket option. This is already done in networkd for other sockets. For example, the bus socket (sd-bus/bus-socket.c) has a receive queue of 8MB. In our case, the default is 208KB. Increasing the buffer receive queue for manager socket to 512KB should be enough to get rid of the above error. [tomegun: bump the limit even higher to 8M]
* bus: prefix custom endpoints with "$UID-"David Herrmann2014-11-27
| | | | | | The kdbus module will later get a policy that endpoint-names are restricted to "<uid>-<name>" just like bus-names. Make sure that systemd is already compatible to that.
* sd-bus: make sure that when we connect to the system bus we have enough ↵Lennart Poettering2014-11-26
| | | | creds to make security decisions
* sd-bus: update kdbus.h from upstreamLennart Poettering2014-11-26
|
* sd-bus: given that the kernel now passes the auxgroups list as 32bit array ↵Lennart Poettering2014-11-26
| | | | | | | to us, no need to convert to uid_t manually This way, we can save one allocation and avoid copying the array unnecesarily.
* bus: update kdbus.h (ABI break)David Herrmann2014-11-26
| | | | We changed creds to u32, so fix systemd sd-bus to acknowledge that.
* bus-kernel: when installing an activator, ask for any kind of metadata to be ↵Lennart Poettering2014-11-26
| | | | | | | attached to incoming messages We don't know what the activated service might want in the end, hence enable everything current and future, just to be sure.
* sd-bus: don't clobber return values on failure in bus_kernel_open_bus_fd()Lennart Poettering2014-11-26
|
* sd-bus: set per-bus attach flag requirement mask to ANYLennart Poettering2014-11-26
| | | | | | | On the system and user busses we create it's the receiver that chooses which metadata is attched, not the sender, hence set the requirement mask to ANY, to allow any current of future credential bit to be attached.
* sd-bus: add suppot for renegotiating message credential attach flagsLennart Poettering2014-11-26
|
* sd-bus: use free_and_strdup() where appropriateLennart Poettering2014-11-26
| | | | | This simplifies things a bit and makes sure we free any previously set creds component before writing in a new one.
* core: show log message about process triggering kdbus service activationLennart Poettering2014-11-25
|
* sd-bus: react properly to EOVERFLOW by generating a log message about ↵Lennart Poettering2014-11-25
| | | | dropped broadcast messages and proceeding
* kdbus: update header file to current upstream versionLennart Poettering2014-11-25
|
* kdbus: minor simplificationLennart Poettering2014-11-25
|
* sd-bus: fix error handling when receiving invalid service nameLennart Poettering2014-11-25
| | | | Also, properly keep track of incoming additional service names.
* sd-bus: properly handle non-initialized audit records attached to incoming ↵Lennart Poettering2014-11-25
| | | | kernel messages
* sd-bus: properly copy selinux label and description field when duplicating ↵Lennart Poettering2014-11-25
| | | | creds object
* sd-bus: add supplementary groups list to creds objectLennart Poettering2014-11-25
|
* busctl: if no parameter is specified for "busctl status" show credentials of ↵Lennart Poettering2014-11-25
| | | | bus owner
* sd-bus: properly handle uninitialized audit creds from kdbusLennart Poettering2014-11-25
|
* sd-bus: don't fail when querying creds and dbus1 refuses to tell us the ↵Lennart Poettering2014-11-25
| | | | selinux context
* busctl: add new --augment-creds= switch for controlling whether shown ↵Lennart Poettering2014-11-25
| | | | credential data shall be augment with data from /proc
* sd-bus: update to current kernel version, by splitting off the extended ↵Lennart Poettering2014-11-25
| | | | | | | | | | | | | | | | | | | | | | KDBUS_ITEM_PIDS structure from KDBUS_ITEM_CREDS Also: - adds support for euid, suid, fsuid, egid, sgid, fsgid fields. - makes augmentation of creds with data from /proc explicitly controllable to give apps better control over this, given that this is racy. - enables augmentation for kdbus connections (previously we only did it for dbus1). This is useful since with recent kdbus versions it is possible for clients to control the metadata they want to send. - changes sd_bus_query_sender_privilege() to take the euid of the client into consideration, if known - when we don't have permissions to read augmentation data from /proc, don't fail, just don't add the data in
* busctl: improve readability a bitLennart Poettering2014-11-25
|
* bus: change creds dumping order to be more close to internal storage orderLennart Poettering2014-11-25
|
* sd-bus: don't blindly take incomplete ucred bits from AF_UNIX when ↵Lennart Poettering2014-11-25
| | | | constructing message
* 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
|
* 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