summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* rules: drivers - do not reset RUN listKay Sievers2014-01-03
|
* networkd: only track state of links we are managingTom Gundersen2014-01-02
| | | | | If a network is not (yet) set for a link, we do not care about its state (as we anyway don't know what to do with it).
* networkd: improve loggingTom Gundersen2014-01-02
| | | | Remove redundant messages, add some debugging ones and make wording more uniform.
* networkd: fix NULL pointer derefKay Sievers2014-01-02
|
* networkd: fix getting initial stateTom Gundersen2014-01-02
| | | | We were requesting the state and then ignoring it...
* networkd: add DHCPv4 supportTom Gundersen2014-01-01
| | | | | | | | | This adds basic DHCPv4 support. Link-sense is enabled unconditionally, but the plan is to make that configurable. I tested this in a VM with lots of NICs and over wifi in the various coffee shops I found this Christmas, but more testing would definitely be appreciated.
* networkd: distinguish between static and dynamic addresses/routesTom Gundersen2014-01-01
| | | | | | Static addresses/routes are associated with a network. Dynamic addresses/routes are associtade with links (as the corresponding network may be shared by several links).
* network: add support for dropping addressTom Gundersen2014-01-01
|
* build-sys: make test output a bit nicerZbigniew Jędrzejewski-Szmek2013-12-31
|
* dhcp: fix creation of req_opts arrayZbigniew Jędrzejewski-Szmek2013-12-31
| | | | | | | GREEDY_REALLOC needs to have two size variables: one for the allocated size, and a second one for the used size. Using the allocated size only lead to leaving some elements unitialized and assigning some more than once.
* build-sys: make test-dhcp-* statically linkedZbigniew Jędrzejewski-Szmek2013-12-31
| | | | | This makes them behave like everything else following 48d7417d3 'build-sys: link most internal libraries statically'.
* sleep-config: fix double freeZbigniew Jędrzejewski-Szmek2013-12-31
| | | | | | | | | Before 34a3baa4d 'sleep-config: Dereference pointer before check for NULL' oom conditions would not be detected properly. After that commit, a double free was performed. Rework the whole function to be easier to understand, and also replace strv_split_nulstr with strv_new, since we know the strings anyway.
* boot-efi: Remove superfluous assignmentStefan Beller2013-12-31
| | | | | 2 lines after the changed line we assign err to efi_get_variable(...) unconditionally, so it makes no sense to initialize it to some value.
* sleep-config: Dereference pointer before check for NULLStefan Beller2013-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug pointed out by http://css.csail.mit.edu/stack/ (Optimization-unstable code) It is a similar fix as f146f5e159 (2013-12-30, core: Forgot to dereference pointer when checking for NULL) To explain this bug consider the following similar, but simpler code: if (!p) free(*p) Assume the if condition evaluates to true, then we will access *p, which means the compiler can assume p is a valid pointer, so it could dereference p and use the value *p. Assuming p as a valid pointer, !p will be false. But initally we assumed the condition evaluates to true. By this reasoning the optimizing compiler can deduce, we have dead code. ("The if will never be taken, as *p must be valid, because otherwise accessing *p inside the if would segfault") This led to an error message of the static code checker, so I checked the code in question. As we access *modes and *states before the check in the changed line of this patch, I assume the line to be wrong and we actually wanted to check for *modes and *states being both non null.
* bootchart: Remove unneeded check for NULLStefan Beller2013-12-30
| | | | | | | | | | | | | | Directly before the changed line there is: while ((parent->next_ps && parent->pid != ps->ppid)) parent = parent->next_ps; which looks one element ahead of the list, hence we can rely on parent being non null here. If 'parent' were NULL at that while loop already, it would crash as we're dereferencing 'parent' when checking for next_ps already. Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
* tmpfiles: rename --unsafe to --bootZbigniew Jędrzejewski-Szmek2013-12-30
| | | | | As suggested by Kay, it is better to describe what is done, not what might happen.
* build-sys: fix systemd-stdio-bridge link to work with split /usrZbigniew Jędrzejewski-Szmek2013-12-30
| | | | shumski> there seems to be slight error in systemd git master Makefile.am
* core: Forgot to dereference pointer when checking for NULLStefan Beller2013-12-30
| | | | | Actually we already checked for !rt before, now we'd like to examine the return value of the memory allocation.
* man: expand on some more subtle points in systemd.socket(5)Zbigniew Jędrzejewski-Szmek2013-12-30
| | | | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=727708#1694
* systemd-python: fix listen_fds under Python 2Zbigniew Jędrzejewski-Szmek2013-12-30
|
* systemd-python: fix setting of exception codesZbigniew Jędrzejewski-Szmek2013-12-30
| | | | | | | The return value of 0 would be treated as failure by mistake, resulting in " SystemError: error return without exception set". The way that set_error() is used is changed to be the same everywhere.
* acticate: rename --environment to --setenvZbigniew Jędrzejewski-Szmek2013-12-30
| | | | | | | Nspawn has --setenv, and systemd itself accepts systemd.setenv. It is nice to have the same parameter name everywhere. Old name is accepted, but not advertised.
* udev: LOG_PRIORITY -> LOG_LEVELKay Sievers2013-12-29
|
* autogen: add shortcut for running scan-buildThomas Hindoe Paaboel Andersen2013-12-28
| | | | | | | | | | | | | | | | | | scan-build is a static analyzer in llvm. As ususal static analyzers tend to mostly find theoretical bugs in software that has been in production for a while. For in-development code it can be useful to check if new issues is added as there is a chance to spot real problems before release. For systemd we are now down to 297 issues - the vast majority are false positives because the tool does not understand the cleanup attribute. Running clang's static analyzer scan-build is a bit messy. You have to run both configure and make "inside" the build-scan tool. To have an easy shortcut from autogen.sh I thus call both directly from it. This makes it different from the other options in autogen.sh. I chose 's' for static analysis. scan-build is in the package clang-analyzer on fedora.
* autogen: add shortcut for building with clangThomas Hindoe Paaboel Andersen2013-12-28
| | | | | | | | | | | For a while I have been cleaning up warnings when building with clang. There are currently only two sources of warnings left: Wcast-align and Wgnu. I am not convinced that fixing up those up is feasible so I run with them disabled to spot regressions. E.g. clang is a bit more strict wrt to unused variables with the cleanup attribute and I have fixed a number of those since. Like the other options in autogen.sh I have a shortcut for clang as well. I use 'l' for llvm.
* gitignore: add back user@.serviceMarc-Antoine Perennou2013-12-28
|
* bus: fix a couple of format string mistakesLennart Poettering2013-12-28
|
* bus: driverd; add missing format string parameterMarc-Antoine Perennou2013-12-28
| | | | This was causing a nasty coredump
* bus: correct a number of gcc format string attribute usagesLennart Poettering2013-12-28
|
* man: include autoconf snippet in daemon(7)Michał Górny2013-12-27
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=40446
* selinux: Check access vector for enable/disable perm for each unit fileLubomir Rintel2013-12-27
| | | | | | | | SELinux check will be done using the context of the unit file as as a target instead of the default init_t context, allowing selinux control on the level of individual units. https://bugzilla.redhat.com/show_bug.cgi?id=1022762
* shared: add simplistic XML parser for usage in the D-Bus policy language ↵Lennart Poettering2013-12-28
| | | | compat parser
* bus: fix running tests in parallelZbigniew Jędrzejewski-Szmek2013-12-27
|
* man: add a note about propagating signalsZbigniew Jędrzejewski-Szmek2013-12-27
|
* hwdb: Update database of Bluetooth company identifiersMarcel Holtmann2013-12-27
|
* build-sys: fix generation of user@.serviceZbigniew Jędrzejewski-Szmek2013-12-27
|
* units: user@.service: fix user bus pathMantas Mikulėnas2013-12-27
|
* bus: PORTING-DBUS1: fix user bus pathMantas Mikulėnas2013-12-27
|
* systemctl: remove unused variableThomas Hindoe Paaboel Andersen2013-12-27
|
* bus: PORTING-DBUS1 typo fixesThomas Hindoe Paaboel Andersen2013-12-27
|
* man: fix Type= reference v2Zbigniew Jędrzejewski-Szmek2013-12-27
| | | | | | | | | grawity: It looks like the old version _was_ correct – the default value will be "Type=dbus" if the service has a BusName set. Suggested change: "if neither Type= nor BusName= is specified"
* bus: PORTING-DBUS1 clarify pool size valueKay Sievers2013-12-27
|
* bus: PORTING-DBUS1 updateKay Sievers2013-12-27
|
* bus: update PORTING-DBUS1Kay Sievers2013-12-27
|
* bus: actually, the kernel does enforce validity of bus names...Lennart Poettering2013-12-27
|
* bus: explain obsoletion of dbus1 .service filesLennart Poettering2013-12-27
|
* bus: refuse invalid names from kbus meta dataLennart Poettering2013-12-27
|
* bus: add some preliminary docs for porting existing dbus1 client libraries ↵Lennart Poettering2013-12-27
| | | | to kdbus
* bus: update kdbus.hKay Sievers2013-12-26
|
* man: fix Type= referenceMarcos Felipe Rasia de Mello2013-12-26
| | | | | | | | | | | | Simple man page fix attached. -- Marcos From 268d10a2f8769fd1dcb9440670af15ac02c5df89 Mon Sep 17 00:00:00 2001 From: Marcos Mello <marcosfrm@gmail.com> Date: Thu, 26 Dec 2013 17:19:04 -0200 Subject: [PATCH 1/1] man: fix Type= reference