summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* networkd: tunnel - call tunnel modes ipip6, not ip4ipv6 to match ip(8)Tom Gundersen2015-01-28
|
* logind: handle closing sessions over daemon restartsMartin Pitt2015-01-28
| | | | | | | | | | | | | | | | | | | | | | It may happen that you have several sessions with the same VT: - Open a session c1 which leaves some processes around, and log out. The session will stay in State=closing and become Active=no. - Log back in on the same VT, get a new session "c2" which is State=active and Active=yes. When restarting logind after that, the first session that matches the current VT becomes Active=yes, which will be c1; c2 thus is Active=no and does not get the usual polkit/device ACL privileges. Restore the "closing" state in session_load(), to avoid treating all restored sessions as State=active. In seat_active_vt_changed(), prefer active sessions over closing ones if more than one session matches the current VT. Finally, fix the confusing comment in session_load() and explain it a bit better. https://launchpad.net/bugs/1415104
* util: add comment explaining hostname_is_valid()Lennart Poettering2015-01-28
|
* update TODOLennart Poettering2015-01-28
|
* sd-dhcp: chop of trailing dot of DHCP supplied host and domain namsLennart Poettering2015-01-28
|
* rules: clean up stale CD drive mounts after ejectionMartin Pitt2015-01-28
| | | | | | | | | | | | | | Ejecting a CD with the hardware drive button only causes a change uevent, but the device node stays around (just without a medium). Pick up these uevents and mark the device as SYSTEMD_READY=0 on ejection, so that systemd stops the device unit and consequently all mount units on it. On media insertion, mark the device as SYSTEMD_READY=1 again. https://bugs.freedesktop.org/show_bug.cgi?id=72206 https://bugzilla.opensuse.org/show_bug.cgi?id=909418 https://bugs.archlinux.org/task/42071 https://bugs.launchpad.net/bugs/1168742
* core/mount: add dependencies to dynamically mounted mounts tooMartin Pitt2015-01-28
| | | | | | | | | | Add unit dependencies for dynamic (i. e. not from fstab) mounts. With that, mount units properly bind to their underlying device, and thus get automatically stopped/unmounted when the underlying device goes away. This cleans up stale mounts from unplugged devices. Thanks to Lennart Poettering for pointing out the fix!
* sysv-generator: no need to check for identical symlinks source and target twiceLennart Poettering2015-01-28
| | | | http://lists.freedesktop.org/archives/systemd-devel/2015-January/027594.html
* core: output unit status output strings to console, only if we actually are ↵Lennart Poettering2015-01-28
| | | | | | | | | changing unit state Unit _start() and _stop() implementations can fail with -EAGAIN to delay execution temporarily. Thus, we should not output status messages before invoking these calls, but after, and only when we know that the invocation actually made a change.
* test: duplicate LIST_FOREACH_OTHERS test to check for corner cases of end ↵Lennart Poettering2015-01-28
| | | | and start of list
* list: properly skip over first item in LIST_FOREACH_OTHERSLennart Poettering2015-01-28
|
* manager: fix minor typoLennart Poettering2015-01-28
|
* sysv-generator: Re-fix .sh suffix handlingMartin Pitt2015-01-28
| | | | | | | | | Commit 4e48855534 caused the .sh suffix to be stripped from the original "filename", which caused the generated units to call the wrong init.d script. Only use the .sh stripped file name for comparing with Provides:, not for generating the Exec*= lines. Spotted by sysv-generator-test.
* build-sys: add check for --help widthZbigniew Jędrzejewski-Szmek2015-01-27
|
* notify,firstboot,analyze,run: trim --help output to 80 linesZbigniew Jędrzejewski-Szmek2015-01-27
|
* tmpfiles: fix help textZbigniew Jędrzejewski-Szmek2015-01-27
| | | | | The help text, apart from being too long, did not describe what the options really do.
* build-sys: make xz and zlib build-time optional againLennart Poettering2015-01-28
|
* man: document the new Ctrl-Alt-Del magicLennart Poettering2015-01-28
|
* manager: when we immediately reboot due to 7x C-A-D within 2s, mention this ↵Lennart Poettering2015-01-28
| | | | on the console too
* update TODOLennart Poettering2015-01-28
|
* core: when the user hits Ctrl-Alt-Del more than 7x per 2s, reboot immediatelyLennart Poettering2015-01-28
| | | | | This should be useful for cases where clean rebooting doesn't work, and the user wants to hurry up the reboot.
* sysv-generator: there's really no need to invoke fstatat() multiple times on ↵Lennart Poettering2015-01-28
| | | | | | | the same sysv script It's sufficient to check once if something is a regular file, hence, let's do that.
* update TODOLennart Poettering2015-01-28
|
* core: if two start jobs for the same swap device node are queued, only ↵Lennart Poettering2015-01-28
| | | | | | | | | | | | | | | | | | | | | dispatch one of them at a time If two start jobs for two seperate .swap device nodes are queued, which then turns out to be referring to the same device node, refuse dispatching more than one of them at the same time. This should solve an issue when the same swap partition is found via GPT auto-discovery and via /etc/fstab, where one uses a symlink path, and the other the raw devce node. So far we might have ended up invoking mkswap on the same node at the very same time with the two device node names. With this change only one mkswap should be executed at a time. THis mkswap should have immediate effect on the other swap unit, due to the state in /proc/swaps changing, and thus suppressing actual invocation of the second mkswap. http://lists.freedesktop.org/archives/systemd-devel/2015-January/027314.html
* swap: simplify a few things by making use of new LIST_FOREACH_OTHERS macroLennart Poettering2015-01-28
|
* list: add macro for iterating through a list an item is in, skipping the itemLennart Poettering2015-01-28
|
* swap: properly specify errno when loggingLennart Poettering2015-01-28
|
* sysv-generator: use is_symlink() utility call where appropriateLennart Poettering2015-01-27
|
* sysv-generator: minor simplificationsLennart Poettering2015-01-27
|
* man: systemd.service(5): add some simple examplesChristian Seiler2015-01-27
| | | | | Add a couple of exampels, at least one for each service type that include some explanations and pointers to various relevant options.
* man: systemd.unit(5): add examples for common tasksChristian Seiler2015-01-27
| | | | | Add examples for (a) how to allow units to be enabled and (b) overriding vendor settings to the man page.
* logind: chown+chmod /run/user/$UID if mount(tmpfs) fails with EPERMChristian Seiler2015-01-27
| | | | | | | | | | | In containers without CAP_SYS_ADMIN, it is not possible to mount tmpfs (or any filesystem for that matter) on top of /run/user/$UID. Previously, logind just failed in such a situation. Now, logind will resort to chown+chmod of the directory instead. This allows logind still to work in those environments, although without the guarantees it provides (i.e. users not being able to DOS /run or other users' /run/user/$UID space) when CAP_SYS_ADMIN is available.
* logind: remove per-user runtime dir again if setup failsChristian Seiler2015-01-27
| | | | | | | | | If setup of per-user runtime dir fails, clean up afterwards by removing the directory before returning from the function, so we don't leave the directory behind. If this is not done, the second time the user logs in logind would assume that the directory is already set up, even though it isn't.
* man: mention that 99-default.link is shipped by default, and users hence ↵Lennart Poettering2015-01-27
| | | | need to install a lexically earlier .link file for it to be honoured
* update TODOLennart Poettering2015-01-27
|
* build-sys: make bzip2 really optionalLennart Poettering2015-01-27
|
* units: turn on watchdog for resolvedLennart Poettering2015-01-27
|
* units: fix all TTY paths for container gettysLennart Poettering2015-01-27
| | | | | | Spotted by Christian Seiler: http://lists.freedesktop.org/archives/systemd-devel/2015-January/027441.html
* networkd-dhcp6: Assign DHCPv6 addresses and prefix lengthsPatrik Flykt2015-01-27
| | | | | | | | | | | Once IPv6 addresses have been acquired, assign these to the interface with the prefix lengths taken from the ICMPv6 Router Advertisement handling code. The preferred and valid IPv6 address lifetimes are handed to the kernel which will clean up them if not renewed in time. When a prefix announced via Router Advertisements expires, find all addresses that match that prefix and update the address to have a prefix length of 128 causing the prefix to be off-link.
* sd-icmp6-nd: Add support for fetching the latest expired prefixPatrik Flykt2015-01-27
| | | | | Keep the expired prefix for the duration of the prefix expiration event and remove it afterwards.
* test-icmp6-nd: Add test cases for prefixesPatrik Flykt2015-01-27
| | | | | | | | | Add test cases that feeds an Router Advertisement to the ICMPv6 code and verify that the correct prefix lengths are returned given an IPv6 address. Enhance the prefix verification test by adding a shorter prefix and check that the intended prefix lengths are now updated.
* sd-icmp6-nd: Parse ICMPv6 prefix informationPatrik Flykt2015-01-27
| | | | | | | | | | | | Save each new onlink IPv6 prefix and attach an expiry timer to it. If the prefixes overlap, take the shorter prefix and write a debug message about the event. Once the prefix is resent in a Router Advertisement, update the timer. Add a new event for the expiring prefix. Add two helper functions, one for returning a prefix length given a Router Advertisement and the other for generic prefix matching given an IPv6 prefix and address.
* test-icmp6-rs: Add trivial test case for an MTU that is not presentPatrik Flykt2015-01-27
|
* sd-icmp6-nd: Add helper function to get the IPv6 link MTUPatrik Flykt2015-01-27
| | | | Update MTU according to the latest value received.
* sd-icmp6-nd: Add link and prefix structures for ICMPv6Patrik Flykt2015-01-27
| | | | | Each ICMPv6 structure has an interface index and will therefore be associated with an IPv6 link containing a list of of prefixes.
* sd-icmp6-nd: Update Router Advertisement handlingPatrik Flykt2015-01-27
| | | | | | | As the IPv6 prefixes are needed, update the ICMPv6 Router Advertisement code to dynamically allocate a suitably sized buffer. Iterate through the ICMPv6 options one by one returning error if the option length is too big to fit the buffer.
* sd-dhcp6-lease: Revise address iteration functionsPatrik Flykt2015-01-27
| | | | | | | | Revise the address iteration functions so that one helper function resets the iterator to the start of the address list while the second one fetches addresses one by one. The test case is also updated.
* compile-unifont: Python 2 compatibilityZbigniew Jędrzejewski-Szmek2015-01-26
| | | | Under Python 2, sys.stdout.buffer is missing.
* build-sys: unbundle unifontZbigniew Jędrzejewski-Szmek2015-01-26
| | | | | | | We should prefer the unifont.hex file from the system, instead of our own. Upstream has made a few releases since our version was included, and we should follow upstream changes. But adding 2.6MB to our source repo every time upstream releases is not nice.
* TODO: remove laccess conversionZbigniew Jędrzejewski-Szmek2015-01-26
| | | | | | | | | I looked over all access invocations, and I think are using access() correctly. Accepting dangling symlinks makes sense only in special circumstances. So far we do not allow "flag" files like "/fastboot" to be dangling symlinks. We could, but I don't see a reason to.