summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* networkd: logging - align messagesTom Gundersen2014-05-15
|
* networkd: log ifindices when links and netdevs are addedTom Gundersen2014-05-15
|
* networkd: rename NetDev variable for consistency with LinkTom Gundersen2014-05-15
|
* sd-bus: make sure we properly handle NULL callback functionsLennart Poettering2014-05-15
|
* selinux: fix build for non-selinux systemsLennart Poettering2014-05-15
|
* sd-bus: fix an assert when running in kdbus modeLennart Poettering2014-05-15
|
* resolve: fix copy/paste errorLennart Poettering2014-05-15
|
* sd-bus: don't hit assert when installing matchLennart Poettering2014-05-15
|
* sd-bus: always keep slot reference while dispatching callbackLennart Poettering2014-05-15
| | | | | Also, make sure we automatically destroy reply callbacks that are floating.
* sd-resolve: add "floating" resolve queriesLennart Poettering2014-05-15
| | | | | Same story as for sd-bus and sd-event: allow passing NULL to store query in in which case the query is freed automatically.
* sd-event: introduce concept of "floating" event sourcesLennart Poettering2014-05-15
| | | | | | These are the counterpart of "floating" bus slots, i.e. event sources that are bound to the lifetime of the event object itself, and thus don't require an explicit reference to be kept.
* core: close socket fds asynchronouslyZbigniew Jędrzejewski-Szmek2014-05-15
| | | | http://lists.freedesktop.org/archives/systemd-devel/2014-April/018928.html
* systemctl: small cleanupZbigniew Jędrzejewski-Szmek2014-05-15
|
* readahead: add test to show fs_on_ssd() resultZbigniew Jędrzejewski-Szmek2014-05-15
|
* networkd, build-sys: spelling fixZbigniew Jędrzejewski-Szmek2014-05-15
|
* Make sure that keys are properly removed from hashmapZbigniew Jędrzejewski-Szmek2014-05-15
| | | | | | | | | | This is a speculative fix for https://bugzilla.redhat.com/show_bug.cgi?id=1088865. Even though I cannot find a code path that where this would be an issue, for consistency, if we assume that cgroup_path might have been set before we got to unit_deserialize, we should make sure that the unit is removed from the hashmap before we free the key. This seems to be the only place where the key could be prematurely freed, leading to hashmap corruption.
* Remove unnecessary casts in printfsZbigniew Jędrzejewski-Szmek2014-05-15
| | | | No functional change expected :)
* Make systemctl --root look for files in the proper placesZbigniew Jędrzejewski-Szmek2014-05-15
| | | | | | | | | | | | | | | | | | | | Running systemctl enable/disable/set-default/... with the --root option under strace reveals that it accessed various files and directories in the main fs, and not underneath the specified root. This can lead to correct results only when the layout and configuration in the container are identical, which often is not the case. Fix this by adding the specified root to all file access operations. This patch does not handle some corner cases: symlinks which point outside of the specified root might be interpreted differently than they would be by the kernel if the specified root was the real root. But systemctl does not create such symlinks by itself, and I think this is enough of a corner case not to be worth the additional complexity of reimplementing link chasing in systemd. Also, simplify the code in a few places and remove an hypothetical memory leak on error.
* shared/install: do not prefix created symlink with root pathZbigniew Jędrzejewski-Szmek2014-05-15
| | | | | Before: /var/tmp/inst1//etc/systemd/system/default.target -> /var/tmp/inst1//usr/lib/systemd/system/graphical.target After: /var/tmp/inst1/etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target
* udev: do not skip the execution of RUN when renaming a network device failsKay Sievers2014-05-15
|
* sd-bus: introduce sd_bus_slot objects encapsulating callbacks or vtables ↵Lennart Poettering2014-05-15
| | | | | | | | | | | attached to a bus connection This makes callback behaviour more like sd-event or sd-resolve, and creates proper object for unregistering callbacks. Taking the refernce to the slot is optional. If not taken life time of the slot will be bound to the underlying bus object (or in the case of an async call until the reply has been recieved).
* sd-event: reorder header slightlyLennart Poettering2014-05-15
|
* hashmap: add hashmap_remove2() to remove item from hashtable and return both ↵Lennart Poettering2014-05-15
| | | | value and key
* core: no need to pass bus object to selinux access check calls anymoreLennart Poettering2014-05-14
|
* bus: add userdata API for bus name tracker objectsLennart Poettering2014-05-14
|
* core: sysvcompat - avoid repeated function callTom Gundersen2014-05-14
|
* core: sysvcompat - $network should be equivalent to network-online, rather ↵Tom Gundersen2014-05-14
| | | | | | | | | | | | | | | | | | than network target Most likely the facility needed is actual connectivity, rather than whether or not the network managment daemon is running. We also need to explicitly pull in the network-online.target, as it is not active by default. This means {systemd-networkd,NetworkManager}-wait-online.service, can be enabled by default as part of network-online.target, and only delay boot when some service actively pulls it in. See: <https://bugzilla.gnome.org/show_bug.cgi?id=728965> Cc: Pavel Šimerda <psimerda@redhat.com> Cc: Michal Sekletar <msekleta@redhat.com>
* shared: add ring bufferDavid Herrmann2014-05-13
| | | | | | | New "struct ring" object that implements a basic ring buffer for arbitrary byte-streams. A new basic runtime test is also added. This will be needed for our pty helpers for systemd-console and friends.
* shared: add ALIGN_POWER2 macroDavid Herrmann2014-05-13
| | | | | | Sounds easy, turns out to be horrible to implement: ALIGN_POWER2 returns the next higher power of 2. clz(0) is undefined, same is true for left-shift-overflows, yey, C rocks!
* replace more dup() by F_DUPFD_CLOEXECLennart Poettering2014-05-13
|
* pam_systemd: use F_DUPFD_CLOEXEC when dupping session fdsLennart Poettering2014-05-13
| | | | http://lists.freedesktop.org/archives/systemd-devel/2014-May/019034.html
* udev: rename netif - properly break lines in kmsgTom Gundersen2014-05-13
| | | | | | | | | | | | | Before: 30,997,4553484,-;systemd-udevd[439]: renamed network interface wwan0 to wwp0s20u4i6systemd-udevd[439]: renamed network interface wlan0 to wlp3s0 30,998,1175077801,c;systemd-udevd[2345]: renamed network interface wwan0 to wwp0s20u4i6 After: 30,834,4553484,-;systemd-udevd[439]: renamed network interface wwan0 to wwp0s20u4i6 30,835,4732949,-;systemd-udevd[439]: renamed network interface wlan0 to wlp3s0 30,988,1175077801,-;systemd-udevd[2345]: renamed network interface wwan0 to wwp0s20u4i6
* networkd-ipip-tunnel: add support ttlSusant Sahani2014-05-12
| | | | Add support for ipip tunnel ttl.
* networkd: manager - don't leak kmod contextTom Gundersen2014-05-12
| | | | Also, keep the kmod_new internal to networkd-manager.c
* networkd: introduce ipip tunnelSusant Sahani2014-05-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables basic ipip tunnel support. It works with kernel module ipip example conf: file: ipip.netdev [NetDev] Name=ipip-tun Kind=ipip MTUBytes=1480 [Tunnel] Local=192.168.223.238 Remote=192.169.224.239 TTL=64 file: ipip.network [Match] Name=em1 [Network] Tunnel=ipip-tun [tomegun: - drop unused variable - take ref when enslaving]
* job: always add waiting jobs to run queue during coldplugMichael Marineau2014-05-12
| | | | | | | commit 20a83d7bf was not equivalent to the original bug fix proposed by Michal Sekletar <msekleta@redhat.com>. The committed version only added the job to the run queue if the job had a timeout, which most jobs do not have. Just re-ordering the code gets us the intended functionality
* networkd: get preexiting addresses when a link is addedTom Gundersen2014-05-11
|
* networkd: listen for address changesTom Gundersen2014-05-10
| | | | | This is proof-of-concept only, as we only log the changes but don't do anything with it.
* rtnl: message - fix check for broadcast messagesTom Gundersen2014-05-10
|
* rtnl: message - read group membership of incoming messagesTom Gundersen2014-05-10
|
* rtnl: message - verify that we read the pending message size from the kernelTom Gundersen2014-05-10
| | | | Reuse the auth-checking for both the peek and the real read.
* rtnl: message - move code aroundTom Gundersen2014-05-10
| | | | No functional change.
* rtnl: change from bitmask to enum for rtnl groupsTom Gundersen2014-05-10
| | | | | The bitmask is deprecated in the kernel, so move to the new interface. At the moment this does not make a difference for us, but it avoids having to change the API in the future.
* networkd: link - redo flag change loggingTom Gundersen2014-05-10
| | | | | | | | | Make the logging less verbose by only printing all the changed flags on one line, at the same time make it more complete by supporting all flags currently supported by the kernel. We still fall back to printing the raw flags in case we get something we do not recognize This may be useful when running on new kernels.
* sd-rtnl: message - add support for getting prefixlen from address messagesTom Gundersen2014-05-10
|
* networkd: network - fix leakTom Gundersen2014-05-10
|
* networkd: manager - initialize variablesTom Gundersen2014-05-10
|
* networkd: netdev - rephrase logging message a bitTom Gundersen2014-05-10
| | | | Make it fit with what is logged from the link.
* networkd: manager - refactor link tracking a bitTom Gundersen2014-05-10
|
* systemctl: return an error code is status failsZbigniew Jędrzejewski-Szmek2014-05-10
| | | | | | | | | This got lost in the refactoring in f74294c1dabb4. Also make sure that the return code corresponds to the *first* failure, not the last. https://lists.fedoraproject.org/pipermail/devel/2014-May/199080.html