summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* 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
|
* core: two more log_unit_*_errno() conversionsMichal Schmidt2014-11-28
|
* core: convert log_unit_*() to log_unit_*_errno()Michal Schmidt2014-11-28
| | | | | | Using: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_unit_(debug|info|notice|warning|error|emergency)\(([^"]+), "(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_unit_\1_errno(\2, \5, "\3%m"\4);/'
* core: add log_unit_*_errno() macrosMichal 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().
* shared: fix log_emergency_errno macroMichal Schmidt2014-11-28
| | | | It was not passing the error argument.
* update TODOLennart Poettering2014-11-28
|
* kdbus: when running in a container, don't complain that we cannot write to /sysLennart Poettering2014-11-28
|
* log: change log_xyz_errno() calls to always return the negative errorLennart Poettering2014-11-28
| | | | | | | | | | | | | | | | This enables us to write things like this: int open_some_file(void) { fd = open("/dev/foobar", O_RDWR|O_CLOEXEC); if (fd < 0) return log_error_errno(errno, "Failed to reboot: %m"); return fd; } Which is function that returns -errno on failure, as well as printing an error message, all in one line.
* log: make socket address structs static constLennart Poettering2014-11-28
|
* log: also set errno to the passed error code before processing format string ↵Lennart Poettering2014-11-28
| | | | | | in log_struct() That way the caller may use %m to print the specified error.
* core: only override kdbus attach mask when running as PID 1Lennart Poettering2014-11-28
|
* sd-bus: the attach_mask kernel module parameter is 64bit now, hence ↵Lennart Poettering2014-11-28
| | | | initialize it as such
* log: allow negative errno valuesLennart Poettering2014-11-28
| | | | | sd_bus_error_set_errno() allows negative errors too, hence, be equally nice.
* log: fix order of log_unit_struct() to match other logging callsLennart Poettering2014-11-28
| | | | | Also, while we are at it, introduce some syntactic sugar for creating ERRNO= and MESSAGE= structured logging fields.
* networkd: update logging macros for parameter order, and errno, to match ↵Lennart Poettering2014-11-28
| | | | rest of the code
* update TODOLennart Poettering2014-11-28
|
* networkd: remove duplicate macro definitionsLennart Poettering2014-11-28
|
* Update TODODavid Herrmann2014-11-28
| | | | kdbus eavesdropping was fixed!
* sysv-generator: advertise the man pageZbigniew Jędrzejewski-Szmek2014-11-27
|
* man: add systemd-sysv-generator(8)Zbigniew Jędrzejewski-Szmek2014-11-27
| | | | | | | | In principle SysV stuff is only for compatibility, but we are stuck with it for the forseeable future, so documentation might as well be provided. https://bugs.debian.org/771172
* fix build with --enable-terminalThomas Hindoe Paaboel Andersen2014-11-27
| | | | Broke with 086891e5c119abb9854237fc32e736fe2d67234c
* kmod-setup: simplify kernel command line parsingLennart Poettering2014-11-27
|
* kdbus: set kernel attach mask before creating the first busLennart Poettering2014-11-27
|
* selinux: log selinux log messages with LOG_AUTH facilityLennart Poettering2014-11-27
|
* log: rearrange log function namingLennart Poettering2014-11-27
| | | | | | | | | | - Rename log_meta() → log_internal(), to follow naming scheme of most other log functions that are usually invoked through macros, but never directly. - Rename log_info_object() to log_object_info(), simply because the object should be before any other parameters, to follow OO-style programming style.
* log: be a bit less wasteful when allocating buffersLennart Poettering2014-11-27
|
* log: add an "error" parameter to all low-level logging calls and intrdouce ↵Lennart Poettering2014-11-27
| | | | | | | | | | | | | | | | | | | | log_error_errno() as log calls that take error numbers This change has two benefits: - The format string %m will now resolve to the specified error (or to errno if the specified error is 0. This allows getting rid of a ton of strerror() invocations, a function that is not thread-safe. - The specified error can be passed to the journal in the ERRNO= field. Now of course, we just need somebody to convert all cases of this: log_error("Something happened: %s", strerror(-r)); into thus: log_error_errno(-r, "Something happened: %m");
* 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: beef up policy enforcementLennart Poettering2014-11-27
| | | | | | | | | | | | | | | | | - actually return permission errors to clients - use the right ucreds field - fix error paths when we cannot keep track of locally acquired names due to OOM - avoid unnecessary global variables - log when the policy denies access - enforce correct policy rule order - always request all the metadata its we need to make decisions
* update TODOLennart 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]
* resolve: reject empty TXT recordsStanisław Pitucha2014-11-27
| | | | | | | TXT records should have at least one character, so enforce this. Before 0f84a72 parser SIGSEGV'd on ->txt.strings being NULL, but even if this is fixed we should reject invalid TXT records.
* resolve: set error code on failureStanisław Pitucha2014-11-27
| | | | | Set the error code in case of incorrect name. This prevents continuing and failing an assert(name) later on.
* resolve: fix redirection loops in compressed RRStanisław Pitucha2014-11-27
| | | | | | | | | | | Loops in RR compression were only detected for the first entry. Multiple redirections should be allowed, each one checking for an infinite loop on its own starting point. Also update the pointer on each redirection to avoid longer loops of labels and redirections, in names like: (start) [len=1] "A", [ptr to start] (David: rename variable to "jump_barrier" and add reference to RFC)
* core: fix transaction destructiveness check once moreMichal Schmidt2014-11-27
| | | | | | | | | | | | | | The previous fix e0312f4db "core: fix check for transaction destructiveness" broke test-engine (noticed by Zbyszek). Apparently I had a wrong idea of the intended semantics of --fail. The manpage says the operation should fail if it "conflicts with a pending job (more specifically: causes an already pending start job to be reversed into a stop job or vice versa)". So let's check job_type_is_conflicting, instead of !is_superset. This makes both test-engine and TEST-03-JOBS pass again.
* resolve: fix NULL deref on strv comparisonDavid Herrmann2014-11-27
| | | | | | | | A strv might be NULL if it is empty. The txt.strings comparison doesn't take that into account. Introduce strv_equal() to provide a proper helper for this and fix resolve to use it. Thanks to Stanisław Pitucha <viraptor@gmail.com> for reporting this!
* 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.