summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-01-03networkd: link hash uses 64, not 32 bit keysTom Gundersen
2014-01-03networkd: print the ifindex of added linksTom Gundersen
This debug information may be useful when comapring to dropped rtnetlink messages.
2014-01-03networkd: improve loggingTom Gundersen
This gives a bit better messages when a link is added twice.
2014-01-03networkd: improve link state change loggingTom Gundersen
2014-01-03networkd: add some debug info about notifications we ignoreTom Gundersen
2014-01-03bus: always create --user bus when kdbus is activeKay Sievers
We set the variable in the unit file for --user, so this check is always true.
2014-01-03networkd: link - explicitly set the link to be up if the call to IFF_UP succeedsTom Gundersen
No need to wait for the NEWLINK message to arrive.
2014-01-02networkd: fix memory leak in error pathZbigniew Jędrzejewski-Szmek
2014-01-02networkd: do not deference null pointer in cleanupZbigniew Jędrzejewski-Szmek
2014-01-02core: fix gcc unused variable warningZbigniew Jędrzejewski-Szmek
2014-01-02bus: fix memleak in sd_bus_creds_new_from_pidZbigniew Jędrzejewski-Szmek
2014-01-02Introduce cleanup functions for cap_freeZbigniew Jędrzejewski-Szmek
Unfortunately a different cleanup function is necessary per type, because cap_t** and char** are incompatible with void**.
2014-01-02build-sys: add --disable-dbus autoconf optionZbigniew Jędrzejewski-Szmek
2014-01-02build-sys: make valgrind-tests target output nicerZbigniew Jędrzejewski-Szmek
2014-01-02rtnl: fix memory corruptions after reallocZbigniew Jędrzejewski-Szmek
struct sd_rtnl_message would keep two additional pointers into the hdr field. Every time hdr was realloced, those pointers should be adjusted, but weren't. It seems less error-prone to keep offsets instead.
2014-01-02bus: break reference cycle between bus and messagesZbigniew Jędrzejewski-Szmek
Because messages in the read and write queues hold a reference on the bus, and the bus holds a reference on each of them, we would never free the bus if the read or write queues were not empty. Explicitly substract the number of messages in those queue from the bus reference count when deciding whether to free or not. A simple test which creates and unrefs simple objects is added.
2014-01-02Use format patterns for usec_t, pid_t, nsec_t, usec_tZbigniew Jędrzejewski-Szmek
It is nicer to predefine patterns using configure time check instead of using casts everywhere. Since we do not need to use any flags, include "%" in the format instead of excluding it like PRI* macros.
2014-01-02Move bus path definitions to def.hZbigniew Jędrzejewski-Szmek
2014-01-02core/service: check if mainpid matches only if it is setZbigniew Jędrzejewski-Szmek
https://bugzilla.redhat.com/show_bug.cgi?id=1047304
2014-01-02core/manager: print info about interesting signalsZbigniew Jędrzejewski-Szmek
Information about signals which are not routinely received by systemd are printed at info level. This should make it easier to see what is happening in the system.
2014-01-02core/service: tweak messages on operation timeoutsZbigniew Jędrzejewski-Szmek
2014-01-03libsystemd-dhcp: don't assert on client_stop()Tom Gundersen
We need to be able to stop the dhcp client at any time, and the function appears to be written to handle this.
2014-01-03networkd: dhcp - avoid null pointer dereferenceTom Gundersen
2014-01-03networkd: add more asserts and ignore all events when link has failedTom Gundersen
2014-01-03rules: drivers - do not reset RUN listKay Sievers
2014-01-02networkd: only track state of links we are managingTom Gundersen
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).
2014-01-02networkd: improve loggingTom Gundersen
Remove redundant messages, add some debugging ones and make wording more uniform.
2014-01-02networkd: fix NULL pointer derefKay Sievers
2014-01-02networkd: fix getting initial stateTom Gundersen
We were requesting the state and then ignoring it...
2014-01-01networkd: add DHCPv4 supportTom Gundersen
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.
2014-01-01networkd: distinguish between static and dynamic addresses/routesTom Gundersen
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).
2014-01-01network: add support for dropping addressTom Gundersen
2013-12-31build-sys: make test output a bit nicerZbigniew Jędrzejewski-Szmek
2013-12-31dhcp: fix creation of req_opts arrayZbigniew Jędrzejewski-Szmek
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.
2013-12-31build-sys: make test-dhcp-* statically linkedZbigniew Jędrzejewski-Szmek
This makes them behave like everything else following 48d7417d3 'build-sys: link most internal libraries statically'.
2013-12-31sleep-config: fix double freeZbigniew Jędrzejewski-Szmek
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.
2013-12-31boot-efi: Remove superfluous assignmentStefan Beller
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.
2013-12-30sleep-config: Dereference pointer before check for NULLStefan Beller
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.
2013-12-30bootchart: Remove unneeded check for NULLStefan Beller
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>
2013-12-30tmpfiles: rename --unsafe to --bootZbigniew Jędrzejewski-Szmek
As suggested by Kay, it is better to describe what is done, not what might happen.
2013-12-30build-sys: fix systemd-stdio-bridge link to work with split /usrZbigniew Jędrzejewski-Szmek
shumski> there seems to be slight error in systemd git master Makefile.am
2013-12-30core: Forgot to dereference pointer when checking for NULLStefan Beller
Actually we already checked for !rt before, now we'd like to examine the return value of the memory allocation.
2013-12-30man: expand on some more subtle points in systemd.socket(5)Zbigniew Jędrzejewski-Szmek
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=727708#1694
2013-12-30systemd-python: fix listen_fds under Python 2Zbigniew Jędrzejewski-Szmek
2013-12-30systemd-python: fix setting of exception codesZbigniew Jędrzejewski-Szmek
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.
2013-12-30acticate: rename --environment to --setenvZbigniew Jędrzejewski-Szmek
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.
2013-12-29udev: LOG_PRIORITY -> LOG_LEVELKay Sievers
2013-12-28autogen: add shortcut for running scan-buildThomas Hindoe Paaboel Andersen
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.
2013-12-28autogen: add shortcut for building with clangThomas Hindoe Paaboel Andersen
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.
2013-12-28gitignore: add back user@.serviceMarc-Antoine Perennou