summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* NEWS: prepare NEWS for new releaseLennart Poettering2014-12-102-4/+169
|
* nspawn: create the macvlan MAC addresses in an arch independent stable wayLennart Poettering2014-12-101-5/+9
|
* journal: optimize iteration: skip files that cannot improve current ↵Michal Schmidt2014-12-091-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | candidate entry Suppose that while iterating we have already looked into a journal file and got a candidate for the next entry. And we are considering to look into another journal file because it may contain an entry that is nearer to the current location than the candidate. We should skip the whole journal file if we can tell by looking at its header that none of its entries can precede the candidate. Before: $ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null real 0m20.518s user 0m19.989s sys 0m0.328s After: $ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null real 0m9.445s user 0m9.228s sys 0m0.213s
* journal: optimize iteration: skip whole files behind current locationMichal Schmidt2014-12-091-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Interleaving of entries from many journal files is expensive. But there is room for optimization. We can skip looking into journal files whose entries all lie before the current iterating location. We can tell if that's the case from looking at the journal file header. This saves a huge amount of work if one has many of mostly not interleaved journal files. On my workstation with 90 journal files in /var/log/journal/ID/ totalling 3.4 GB I get these results: Before: $ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null real 5m54.258s user 2m4.263s sys 3m48.965s After: $ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null real 0m20.518s user 0m19.989s sys 0m0.328s The high "sys" time in the original was caused by putting more stress on the mmap-cache than it could handle. With the patch the working set now consists of fewer mmap windows and mmap-cache is not thrashing.
* networkd: remove unused variableThomas Hindoe Paaboel Andersen2014-12-091-1/+0
| | | | It is no longer used after 45af44d47da6933b260c734ad9ff721f63f80a4d
* unit: update unit dropin paths and time when dropin file is written.WaLyong Cho2014-12-091-2/+19
| | | | | | | | If a unit is set property by "systemctl set-property", a new dropin file is generated. But the unit's dropin_paths and dropin_mtime are not updated. So the unit is shown as need daemon reload. Update unit dropin_paths and dropin_mtime also when dropin file is written.
* bus-proxy: cloning smack labelPrzemyslaw Kedzierski2014-12-097-3/+60
| | | | | | | | | | | | | | | | | | | | | | When dbus client connects to systemd-bus-proxyd through Unix domain socket proxy takes client's smack label and sets for itself. It is done before and independent of dropping privileges. The reason of such soluton is fact that tests of access rights performed by lsm may take place inside kernel, not only in userspace of recipient of message. The bus-proxyd needs CAP_MAC_ADMIN to manipulate its label. In case of systemd running in system mode, CAP_MAC_ADMIN should be added to CapabilityBoundingSet in service file of bus-proxyd. In case of systemd running in user mode ('systemd --user') it can be achieved by addition Capabilities=cap_mac_admin=i and SecureBits=keep-caps to user@.service file and setting cap_mac_admin+ei on bus-proxyd binary.
* run: introduce timer support optionWaLyong Cho2014-12-094-148/+596
| | | | | | | | | | | | | Support timer options --on-active=, --on-boot=, --on-startup=, --on-unit-active=, --on-unit-inactive=, --on-calendar=. Each options corresponding with OnActiveSec=, OnBootSec=, OnStartupSec=, OnUnitActiveSec=, OnUnitInactiveSec=, OnCalendar= of timer respectively. And OnCalendar= and WakeSystem= supported by --timer-property= option like --property= of systemd-run. And if --unit= option and timer options are specified the command can be omitted. In this case, systemd-run assumes the target service is already loaded. And just try to generate transient timer unit only.
* update TODOLennart Poettering2014-12-091-2/+0
|
* sd-bus: get rid of PID starttime conceptLennart Poettering2014-12-0914-165/+43
| | | | As kdbus no longer exports this, remove all traces from sd-bus too
* sd-bus: properly support passing memfds around with offset/size parametersLennart Poettering2014-12-094-40/+75
|
* bus: sync with kdbus-git (ABI break)David Herrmann2014-12-094-10/+18
| | | | | | | | | kdbus-git gained two new features: * memfd offsets: This allows to specify a 'start' offset in kdbus_memfd so you can send partial memfd hunks instead of always the full memfd * KDBUS_HELLO_UNPRIVILEGED: If passed during HELLO, the client will be treated as unprivileged.
* libsystemd-network: fix writing of routes in dhcp lease fileDan Winship2014-12-091-3/+5
| | | | | inet_ntoa() uses a static buffer, so you can't call it twice in the same fprintf() call.
* sleep: drop redundant MESSAGE= prefixLennart Poettering2014-12-091-1/+1
|
* update TODOLennart Poettering2014-12-091-0/+6
|
* journalctl: respect --after-cursor semantics with --follow in all casesWesley Dawson2014-12-091-2/+6
| | | | | | In the case where no entries have been added to the journal after the specified cursor, set need_seek before the main loop to prevent display of the entry at said cursor.
* core: rename unit_destroy_cgroup() to unit_destroy_cgroup_if_empty() since ↵Lennart Poettering2014-12-094-5/+4
| | | | it's not quite as destructive as it sounds nowadays
* cgroup: Handle error when destroying cgroupRoss Lagerwall2014-12-091-1/+3
| | | | | | | | | If a cgroup fails to be destroyed (most likely because there are still processes running as part of a service after the main pid exits), don't free and remove the cgroup unit from the manager. This fixes a regression introduced by the cgroup rework in v205 where systemd would forget about processes still running after the unit becomes inactive. (This can happen when the main pid exits and KillMode=process or none).
* fstab-generator: Allow mount.usr without mount.usrflags, honor rw/roMichael Marineau2014-12-091-2/+8
| | | | | | | | | There is no need to require mount.usrflags. The original implementation assumed that a btrfs subvolume would always be needed but that is not applicable to systems that do not use btrfs for /usr. Similar to using rootflags= for the default of mount.usrflags=, append the classic 'ro' and 'rw' flags to the mount options.
* fstab-generator: free all allocated stringsLennart Poettering2014-12-091-0/+6
|
* units: make sure container-getty@.service stops restarting when the pts ↵Lennart Poettering2014-12-091-0/+1
| | | | | | | | | device it is bound to is gone We only want to restart the getty as long as the pts device is still around. As soon as it is gone, the service should be removed to. http://lists.freedesktop.org/archives/systemd-devel/2014-December/026048.html
* update TODOLennart Poettering2014-12-091-2/+0
|
* nspawn: make sure macvlan MAC addresses are stableLennart Poettering2014-12-091-12/+21
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=85527
* sd-rtnl: fix size check in sd_rtnl_message_append_string()Lennart Poettering2014-12-091-2/+2
|
* update TODOLennart Poettering2014-12-091-0/+1
|
* sd-bus: catch up with current kdbus, don't do matches on kdbus monitor ↵Lennart Poettering2014-12-091-0/+8
| | | | connections
* update TODOLennart Poettering2014-12-081-3/+11
|
* bus-proxy: fix compat with autostarted servicesLennart Poettering2014-12-083-8/+13
|
* load-fragment: remove wrong ifdef guardZbigniew Jędrzejewski-Szmek2014-12-081-2/+0
| | | | | | config_parse_warn_compat is now always used for removed options. https://bugs.freedesktop.org/show_bug.cgi?id=87125
* networkd: manager - enumerate addresses globally, rather than per-linkTom Gundersen2014-12-089-72/+84
| | | | The kernel always returns all addresses, rather than only for the given link, so let's only enumerate once.
* journal: Fix navigating backwards missing entriesOlivier Brunel2014-12-081-1/+1
| | | | | | | | With DIRECTION_UP (i.e. navigating backwards) in generic_array_bisect() when the needle was found as the last item in the array, it wasn't actually processed as match, resulting in entries being missed. https://bugs.freedesktop.org/show_bug.cgi?id=86855
* networkd: link - typoTom Gundersen2014-12-081-1/+1
|
* sd-rtnl: fix bogus warning about dropping 20 bytes from multi-part messagesTom Gundersen2014-12-081-2/+3
| | | | Nothing was being dropped, we just failed to account for the NLMSG_DONE.
* networkd: route - ignore unknown address familyTom Gundersen2014-12-081-1/+7
|
* udev: link-config - simplify net-matchTom Gundersen2014-12-082-17/+12
|
* Check return value from reading name_assign_type attrDave Reisner2014-12-081-1/+2
| | | | This file won't exist on kernels earlier than 3.17.
* networkd: update manpage for optional Gateway=Mantas Mikulėnas2014-12-081-1/+1
| | | | Following commit 59580681f5f.
* timer: timer can be a transient unitWaLyong Cho2014-12-083-0/+150
|
* bus: StartTransientUnit can have aux unitWaLyong Cho2014-12-081-12/+86
|
* update TODOLennart Poettering2014-12-081-4/+0
|
* sd-bus: rework ELF error mapping table magicLennart Poettering2014-12-088-136/+265
| | | | | | | The ELF magic cannot work for consumers of our shard library, since they are in a different module. Hence make all the ELF magic private, and instead introduce a public function to register additional static mapping table.
* remove duplicated includesThomas Hindoe Paaboel Andersen2014-12-062-2/+0
|
* net_setup/networkd: warn if matching is done on possibly unstable ifnameTom Gundersen2014-12-055-27/+53
|
* update TODOLennart Poettering2014-12-051-0/+5
|
* man: fix reference to obsolete command "systemctl dump"Felipe Sateler2014-12-051-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=87020
* sd-bus: follow kdbus changes (ABI break)Daniel Mack2014-12-051-3/+3
| | | | | | | | Implement a recent change in the kdbus pool logic: PAYLOAD_VEC_OFF items are now referencing offsets relative to the connection's pool, not to the item itself. Follow this change in sd-bus.
* cryptsetup-generator: Add support for naming luks devices on kernel cmdlineJan Janssen2014-12-053-6/+47
|
* cryptsetup-generator: Add support for UUID-specific key files on kernel ↵Jan Janssen2014-12-052-6/+22
| | | | command line
* cryptsetup-generator: Split main() into more functions and use hasmapsJan Janssen2014-12-052-190/+199
|
* man: there's actually no "fail" fstab option, but only "nofail"Lennart Poettering2014-12-051-4/+1
|