summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bus-proxy: extract proxy into Proxy objectDavid Herrmann2015-01-174-804/+922
| | | | | | | | Move all the proxy code into a "struct Proxy" object that can be used from multiple binaries. We now dropped SMACK as we have to refactor it to work properly. We can introduce it later on.
* bus-proxy: refactor bus-creationDavid Herrmann2015-01-171-105/+104
| | | | | Move local and destination bus creation into a helper function. This further reduces the line count of main().
* update TODOLennart Poettering2015-01-161-0/+2
|
* import: support importing qcow2 imagesLennart Poettering2015-01-168-11/+560
| | | | | | | | With this change the import tool will now unpack qcow2 images into normal raw disk images, suitable for usage with nspawn. This allows has the benefit of also allowing importing Ubuntu Cloud images for usage with nspawn.
* import: support downloading .xz compressed imagesLennart Poettering2015-01-163-30/+169
| | | | | That way we can download fedora cloud raw images as-is and decompress them on-the-fly.
* build-sys: add libsystemd-fw where neededKay Sievers2015-01-161-0/+5
|
* build-sys: add missing HAVE_LIBIPTCKay Sievers2015-01-161-1/+7
|
* hwbd: add click angle for the Logitech M325Peter Hutterer2015-01-161-0/+1
| | | | | This device has 18 stops per rotation == 20 degree angle. Advertised as "Micro-precise scrolling"
* os-release: Add PRIVACY_POLICY_URLBastien Nocera2015-01-151-3/+8
|
* LLDP: Support locally assigned port subtypeSusant Sahani2015-01-151-0/+1
| | | | | | | The Zyxel switch sends port subtype as Locally assigned (7). Add LLDP_PORT_SUBTYPE_LOCALLY_ASSIGNED as supported type reported by Mantas Mikulėnas <grawity@gmail.com>
* TODO: updateDavid Herrmann2015-01-151-2/+0
|
* udev: merge evdev_id into input_idDavid Herrmann2015-01-156-107/+49
| | | | | There is no reason to keep both separated. We want to avoid API specific tools and instead keep generic terms like 'input'.
* udev: fix NULL-ptr derefDavid Herrmann2015-01-151-1/+7
| | | | | Make sure we properly validate the return value of udev_device_get_sysattr_value(). It might be NULL for several reasons.
* bus-proxyd: move synthesize_name_acquired()Daniel Mack2015-01-153-66/+68
| | | | Move synthesize_name_acquired() to synthesize.c.
* bus-proxy: factor out code for driver handling and message synthesisDaniel Mack2015-01-156-732/+877
| | | | | Move synthesize_*() into synthesize.c and bus_proxy_process_driver() into driver.c for better code separation.
* nspawn: fix log typosJonathan Boulle2015-01-151-2/+2
|
* hwdb: add MOUSE_WHEEL_CLICK_ANGLE as propertyPeter Hutterer2015-01-151-13/+31
| | | | | | | | | | | | | | | | Most mice have a wheel click angle of 15 degrees, i.e. 24 clicks per full wheel rotation. Some mice, like the Logitech M325 have a larger angle. To allow userspace to make use of that knowledge, add a property to the hwdb. This allows for better predictive scrolling. e.g. a mouse that has a smaller click angle will scroll faster, with this value you can accommodate this where needed. Likewise, using "half turn of the wheel" or "full turn of the wheel" as a UI element becomes possible. This addition is mainly driven by libinput 0.8, having the angle enables libinput to provide an API that distinguishes between a physical distance (like touchpad scrolling does) and discrete steps (wheel clicks). Callers can choose what they prefer based on the device.
* update TODOLennart Poettering2015-01-151-8/+0
|
* nspawn,machined: change default container image location from ↵Lennart Poettering2015-01-155-16/+64
| | | | | | | | | | | /var/lib/container to /var/lib/machines Given that this is also the place to store raw disk images which are very much bootable with qemu/kvm it sounds like a misnomer to call the directory "container". Hence, let's change this sooner rather than later, and use the generic name, in particular since we otherwise try to use the generic "machine" preferably over the more specific "container" or "vm".
* import: rename "gpt" disk image type to "raw"Lennart Poettering2015-01-157-93/+93
| | | | | | | After all, nspawn can now dissect MBR partition levels, too, hence ".gpt" appears a misnomer. Moreover, the the .raw suffix for these files is already pretty popular (the Fedora disk images use it for example), hence sounds like an OK scheme to adopt.
* fix zsh completion typoMoez Bouhlel2015-01-151-1/+1
| | | | json-see => json-sse
* test-path: do not skip tests if we are not rootRonny Chevalier2015-01-151-4/+0
| | | | We can properly run the tests without being root
* test-exec: do not skip all the testsRonny Chevalier2015-01-151-6/+20
| | | | | Only 5 tests cannot be executed if we are not root, so just skip them but not the whole set.
* spawn: downgrade loopback detach errors to debugLennart Poettering2015-01-151-2/+2
| | | | | | | | | Sometimes udev or some other background daemon might keep the loopback devices busy while we already want to detach them. Downgrade the warning about it. Given that we use autodetach downgrading these messages should be with little risk.
* nspawn: add support for limited dissecting of MBR disk images with nspawnLennart Poettering2015-01-151-52/+100
| | | | | | | | | | | | | | | | | With this change nspawn's -i switch now can now make sense of MBR disk images too - however only if there's only a single, bootable partition of type 0x83 on the image. For all other cases we cannot really make sense from the partition table alone. The big benefit of this change is that upstream Fedora Cloud Images can now be booted unmodified with systemd-nspawn: # wget http://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/x86_64/Fedora-Cloud-Base-20141203-21.x86_64.raw.xz # unxz Fedora-Cloud-Base-20141203-21.x86_64.raw.xz # systemd-nspawn -i Fedora-Cloud-Base-20141203-21.x86_64.raw -b Next stop: teach the import logic to automatically download these images, uncompress and verify them.
* nspawn: pass the container's init PID out via sd_notify()Lennart Poettering2015-01-141-3/+4
| | | | | | This is useful for nspawn managers that want to learn when nspawn is finished with initialiuzation, as well what the PID of the init system in the container is.
* update TODOLennart Poettering2015-01-141-3/+1
|
* nspawn: fix an incorrect assert comparisonLennart Poettering2015-01-141-1/+1
|
* loginctl: fix misuse compound literalsLennart Poettering2015-01-141-2/+11
| | | | | The lifetime of compound literals is bound to the local scope, we hence cannot refernce them outside of it.
* sd-bus: tell Coverity that it's OK not to care for return values in some casesLennart Poettering2015-01-141-4/+4
|
* nspawn: add file system locks for controlling access to container imagesLennart Poettering2015-01-145-32/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds three kinds of file system locks for container images: a) a file system lock next to the actual image, in a .lck file in the same directory the image is located. This lock has the benefit of usually being located on the same NFS share as the image itself, and thus allows locking container images across NFS shares. b) a file system lock in /run, named after st_dev and st_ino of the root of the image. This lock has the advantage that it is unique even if the same image is bind mounted to two different places at the same time, as the ino/dev stays constant for them. c) a file system lock that is only taken when a new disk image is about to be created, that ensures that checking whether the name is already used across the search path, and actually placing the image is not interrupted by other code taking the name. a + b are read-write locks. When a container is booted in read-only mode a read lock is taken, otherwise a write lock. Lock b is always taken after a, to avoid ABBA problems. Lock c is mostly relevant when renaming or cloning images.
* sysv-generator: always use fstatat() if we canLennart Poettering2015-01-141-10/+14
|
* sysv-generator: fix memory leak on failureLennart Poettering2015-01-141-5/+9
| | | | | This fixes a memory leak introduced by 1ed0c19f81fd13cdf283c6def0168ce122a853a9
* machinectl: fix minor memory leakLennart Poettering2015-01-141-2/+2
|
* pty: minor modernizationLennart Poettering2015-01-141-5/+4
| | | | We initialize structs during declartion if possible
* machined: use the FS_IMMUTABLE_FL file flag, if available, to implement a ↵Lennart Poettering2015-01-143-10/+73
| | | | "read-only" concept for raw disk images, too
* util: the chattr flags field is actually unsigned, judging by kernel sourcesLennart Poettering2015-01-144-9/+17
| | | | Unlike some client code suggests...
* ptyfw: add missing error checkLennart Poettering2015-01-141-1/+3
|
* nspawn: remove the right propagation directoryLennart Poettering2015-01-141-1/+1
|
* test: hashmap_put behaviour for equal keysMartin Pitt2015-01-141-1/+6
| | | | | Check string ops hashmap_put() for keys with a different pointer but the same value.
* man: remove "nofail" from systemd.swap(5)Zbigniew Jędrzejewski-Szmek2015-01-131-4/+1
| | | | As suggested by Marcos Felipe Rasia de Mello <marcosfrm@gmail.com>.
* machinectl: use GNU basename, not the XPG versionCristian Rodríguez2015-01-131-1/+1
|
* refcnt: refcnt is unsigned, fix comparisonsTom Gundersen2015-01-139-9/+9
| | | | This does not make a difference, but the code was confusing.
* nspawn: --help typo fixLennart Poettering2015-01-131-1/+1
|
* update TODOLennart Poettering2015-01-131-2/+4
|
* networkd: propagate IPFoward= per-interface setting also to ↵Lennart Poettering2015-01-131-2/+28
| | | | | | | | | | | | | | /proc/sys/net/ipv4/ip_forward We need to turn on /proc/sys/net/ipv4/ip_forward before the per-interface forwarding setting is useful, hence let's propagate the per-interface setting once to the system-wide setting. Due to the unclear ownership rules of that flag, and the fact that turning it on also has effects on other sysctl flags we try to minimize changes to the flag, and only turn it on once. There's no logic to turning it off again, but this should be fairly unproblematic as the per-interface setting defaults to off anyway.
* udev: make use of new one_zero() helper where appropriateLennart Poettering2015-01-131-1/+1
|
* networkd: make IP forwarding for IPv4 and IPv6 individually configurableLennart Poettering2015-01-138-20/+62
|
* network: IPMasquerade= implies IPForward=, hence remove itLennart Poettering2015-01-131-1/+0
|
* networkd: rename misnamed booleanLennart Poettering2015-01-132-5/+5
|