summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-12Merge pull request #5690 from yuwata/fix-5621Djalal Harouni
core: downgrade error message if command is prefixed with `-` and the…
2017-04-11man: document how to include an equals sign in a value provided to ↵Mark Stosberg
Environment= (#5710) It wasn't clear before how an equals sign in an "Environment=" value might be handled. Ref: http://stackoverflow.com/questions/43278883/how-to-write-systemd-environment-variables-value-which-contains/43280157
2017-04-11networkd: Add bridge port priority setting (#5545)Dimitri John Ledkov
Allow setting bridge port priority in the Bridge section of the network file, similar to e.g. port path cost setting. Set the default to an invalid value of 128, and only set the port priority when it's not 128. Unlike e.g. path cost, zero is a valid priority value. Add a networkd-test.py to check that bridge port priority is correctly set. Incidently, fix bridge port cost type and document valid ranges.
2017-04-11test/TEST-12-ISSUE-3171: specify -w1 option to netcat due to default change. ↵Dimitri John Ledkov
(#5722) On Ubuntu 17.04 (zesty zapus) netcat-openbsd was upgraded from 1.105-7ubuntu1 to 1.130-3, at the same time the defaults got changed from -q0 to -q-1 (infinity) the net result is that `echo A | nc -U' call now hangs, preventing the testcase to complete. One could use the old default of -q0, but that option is not available in some netcat implementations. Thus settle to specify -w1 instead to mitigate the testcase hang.
2017-04-10tmpfiles: downgrade error message when operation is not supported (#5692)Yu Watanabe
Fixes #5607
2017-04-10core: fix values of BindPaths and BindReadOnlyPaths properties on 32-bit ↵Evgeny Vereshchagin
platforms (#5713) $ busctl get-property \ org.freedesktop.systemd1 \ /org/freedesktop/systemd1/unit/run_2dr471de87550554a6dbb165501c33c5dab_2eservice \ org.freedesktop.systemd1.Service BindReadOnlyPaths a(ssbt) 1 "/etc" "/etc" false 9228635523571007488 The correct values are 0 and 16384
2017-04-10core: downgrade legit error logs (#5705)umuttl
manager_sync_bus_names() function retrieves the dbus names and compares it with unit bus names. It could be right after the list is retrieved, the dbus peer is disconnected. In this case it is really not an ERROR print if sd_bus_get_name_creds() or sd_bus_creds_get_unique_name() fail.
2017-04-06Remove BTN_DPAD_* keys from ID_INPUT_KEY test (#5701)Nathaniel R. Lewis
At present, devices implementing the BTN_DPAD_UP/DOWN/LEFT/RIGHT codes will be incorrectly classified as key devices. This causes devices respecting the Linux gamepad spec (such as the DS3 as of kernel 4.12) to be classified as keyboards by X11. This is caused by the test_key function checking all codes on [KEY_OK, BTN_TRIGGER_HAPPY). Unfortunately the BTN_DPAD_* codes are placed between KEY_LIGHTS_TOGGLE and KEY_ALS_TOGGLE. This patch splits the upper key block check into the block before and after the BTN_DPAD_* codes. An array is used to avoid dedicated, per block loops in the event that more event codes are added in the future.
2017-04-05Merge pull request #5706 from keszybz/make-cleanupsLennart Poettering
Move busctl to its own dir and other cleanups
2017-04-05logind: Stopped inhibitions should be considered inactive (#5698)afrantzis
2017-04-04build-sys: drop obsolete hook from Makefile.amZbigniew Jędrzejewski-Szmek
2017-04-04udev: rename gperf struct name to match other headersZbigniew Jędrzejewski-Szmek
This makes it easier to use the same generator script as for other gperf scripts. With automake each gperf file had it's own rule, but with meson I'm trying to use one script, and this inconsistency made that harder.
2017-04-04tree-wide: standardize on $(PACKAGE_VERSION) for the version stringZbigniew Jędrzejewski-Szmek
We defined both $(VERSION) and $(PACKAGE_VERSION) with the same contents. $(PACKAGE_VERSION) is slightly more descriptive, so settle on that, and drop the other define.
2017-04-04build-sys: drop undefined target ref from Makefile.amZbigniew Jędrzejewski-Szmek
2017-04-04build-sys: drop undefined var ref from Makefile.amZbigniew Jędrzejewski-Szmek
2017-04-04build-sys: use a single ENABLE_LOGIND conditionalZbigniew Jędrzejewski-Szmek
We used ENABLE_LOGIND for the automake conditional, and HAVE_LOGIND for the ifdef. That wasn't wrong, but it certainly was confusing. Also, move the ifdeffery to avoid warning about unused static function logind_set_wall_message() when logind is disabled.
2017-04-04shared/dissect-image: fix warning about unused function when !HAVE_BLKIDZbigniew Jędrzejewski-Szmek
2017-04-04Move busctl sources to src/busctlZbigniew Jędrzejewski-Szmek
busctl is not part of libsystemd, and should not be stored under libsystemd. In particular this is confusing because busctl is linked with libshared, but stuff in libsystemd is not supposed to depend on libshared.
2017-04-04po: fix typo in pt_BRMartin Pitt
See https://github.com/systemd/systemd/pull/5694#issuecomment-291446842
2017-04-04man: fix <function> tag (#5686)Lucas Werkmeister
2017-04-03Update Brazilian Portuguese translation (#5694)Rafael Fontenelle
2017-04-03hwdb: Asus TP300LJ accelerometer quirks (#5681)wiertel
iio-sensor-proxy expects the accelerometer oriented as follows: positive x - to the right, positive y - up (opposite to gravity). The hardware in the Asus TP300LJ-DW049H is however oriented differently: positive x - down, positive y - to the left This commit adds a ACCEL_MOUNT_MATRIX quirk for this particular laptop model.
2017-04-03core: downgrade error message if command is prefixed with `-` and the ↵Yu Watanabe
command is not found Fixes #5621
2017-04-01Merge pull request #5589 from jasonreeder/claimed_address_fixLennart Poettering
libsystemd-network: sd-ipv4ll: acquire new address after claimed addr…
2017-04-01Merge pull request #5558 from dm0-/nspawn-resolvedLennart Poettering
nspawn: fix DNS when the stub listener is disabled
2017-03-31libsystemd-network: sd-ipv4ll: acquire new address after claimed address ↵Jason Reeder
conflict If a conflict occurs on a claimed ipv4ll address, the device releases the address and then does not attempt to acquire a new ipv4ll address. According to RFC3927, releasing the address in this situation is correct. However, this should be followed by an attempt to configure a new ipv4ll address. This commit restarts the ipv4ll address acquisition state machine after releasing the conflicting address. From RFC3927 Section 2.5 conflict defense method (b): ... However, if this is not the first conflicting ARP packet the host has seen, and the time recorded for the previous conflicting ARP packet is recent, within DEFEND_INTERVAL seconds, then the host MUST immediately cease using this address and configure a new IPv4 Link-Local address as described above. ... Signed-off-by: Jason Reeder <jasonreeder@gmail.com>
2017-03-31libsystemd-network: sd-ipv4ll: Wrapper to restart address aquisition after ↵Jason Reeder
conflict After an ipv4ll claimed address conflict occurs a new address needs to be chosen and then the acquisition state machine needs to be restarted. This commit adds a function (sd_ipv4ll_restart) that clears the previously acquired address (ll->address) and then calls the existing sd_ipv4ll_start function to choose the new address and start the acquisition. Signed-off-by: Jason Reeder <jasonreeder@gmail.com>
2017-03-31nspawn: check if the DNS stub is listening for requestsDavid Michael
2017-03-31resolved: add a DNSStubListener property to ManagerDavid Michael
2017-03-31udev: net_id - support predictable ifnames on vio buses (#5675)Franck Bui
For IBM PowerVM Virtual I/O network devices, we can build predictable names based on the slot number passed as part of the OF "reg" property. Valid slot numbers range between 2-32767, so we only need the bottom half of the unit address passed. For example: /proc/device-tree/vdevice/l-lan@30000002 /proc/device-tree/vdevice/vnic@30000005 would initially map to something like: /sys/devices/vio/30000002/net/eth0 /sys/devices/vio/30000005/net/eth1 and would then translate to env2 and env5 This patch ignores the bus number, as there should only ever be one bus, and then remove leading zeros.
2017-03-31networkd: RFC compliant autonomous prefix handling (#5636)hendrikw01
Previously, `lifetime_valid` of a Router Advertisement was not handled the way RFC4862 has specified. In particular: Sections 5.5.3.d and 5.5.3.e
2017-03-31Merge pull request #5534 from ssahani/vxlan-labelLennart Poettering
networkd: vxlan support setting IPv6 flow label
2017-03-31networkd: fix route_new_static assert when IPv4LLRoute=true (#5676)Susant Sahani
fixes: #5664
2017-03-31doc: spell out handle-* options, use <literal> syntax (#5673)Michael Biebl
2017-03-30journal-upload: add state file directory to ReadWritePaths (#5578)Yu Watanabe
The commit c7fb922d6250543ba5462fa7a6ff03cc8f628e94 prohibits journal-upload to save its state in /var/lib/systemd/journal-upload/state, thus the daemon fails and outputs the following error message even if the directory is not read-only file system ```Cannot save state to /var/lib/systemd/journal-upload/state: Read-only file system``` This commit adds the permission the daemon to write the state file.
2017-03-30Merge pull request #5670 from poettering/trivialitiesMartin Pitt
trivial doc fixes
2017-03-30journal: fix up syslog facility when forwarding native messages (#5667)Michael Biebl
Native journal messages (_TRANSPORT=journal) typically don't have a syslog facility attached to it. As a result when forwarding the messages to syslog they ended up with facility 0 (LOG_KERN). Apply syslog_fixup_facility() so we use LOG_USER instead. Fixes: #5640
2017-03-30man: use <varlistentry> for all unit entriesLennart Poettering
So far, all sections of the systemd.special(7) man page used <varlistentry> for listing the targets, with one exception: the "Special Passive User Units" one. Let's clean this up and use the same formatting everywhere.
2017-03-30README: document that gperf 3.1 is required for building nowLennart Poettering
2017-03-30units: move Before deps for quota services to remote-fs.target (#5627)tblume
Creating quota on an iscsi device is causing dependency loops at next reboot. Reason is that systemd-quotacheck and quotaon.service are ordered before local-fs.target and quota enabled mounts have a before dependency to them. This cannot work for _netdev mounts, because network activation is ordered after local-fs.target. Moving the Before dependency for systemd-quotacheck and quotaon.service to remote-fs.target fixes this.
2017-03-30sysv-generator: Provides: $network should also pull network.target to ↵Lukáš Nykrýn
transaction (#5652) network.target should be pulled in to the transaction by the unit that provides network services, but currently for initscripts it only pulls in network-online.target.
2017-03-30serial-getty@.service.m4: add Conflicts=/Before= against rescue.service (#5632)Franck Bui
Commit 5ed020d8d10fc100c68edddb519f085b7397a45c already fixed this issue for getty@.service but forgot serial console. Note that this is not needed for emergency target as the sysinit target conflicts against this target already.
2017-03-30man: clarify that handle-lid-switch is a low level inhibitor lock (#5662)Michael Biebl
… like the other handle-*-key inhibitor locks. Follow-up for 05b2a8fd7a0533758d2f532df798cabc3c442683 Fixes: #5647
2017-03-30Merge pull request #5663 from keszybz/test-sizeof-moreLennart Poettering
Add a few `struct timespec`-related types to `test-sizeof`
2017-03-29test-sizeof: add some struct-timespec related fieldsZbigniew Jędrzejewski-Szmek
Might help with #5264.
2017-03-29test-sizeof: do not link with libsystemd-sharedZbigniew Jędrzejewski-Szmek
This makes it much quicker to compile.
2017-03-29basic: forbid rm_rf() to remove paths ending with ".." (#5653)Jan Synacek
Fixes: #5644
2017-03-27units: make enablement of s-n-wait-online.service follow ↵Zbigniew Jędrzejewski-Szmek
systemd-networkd.service (#5635) In 58a6dd15582c038a25bd7059435833943e2e4617 s-n-wait-online.service was added to presets to synchronize the presets with the state after installation. But it is harmful to have s-n-wait-online.service enabled when s-n.service is disabled, because s-n-wait-online.service has Requsite=s-n.service and cannot be activated. Thus remove s-n-wait-online.service from presets again, and let it be enabled whenever s-n.service is enabled. During installation we create enablement symlinks by hand, and since s-n.service is enabled, s-n-w-o.service should be enabled too, so the symlink should still be created during installation. https://bugzilla.redhat.com/show_bug.cgi?id=1433459#c15
2017-03-27rules: add a rule to set /dev/kvm access mode and ownership (#5597)Zbigniew Jędrzejewski-Szmek
Kernel default mode is 0600, but distributions change it to group kvm, mode either 0660 (e.g. Debian) or 0666 (e.g. Fedora). Both approaches have valid reasons (a stricter mode limits exposure to bugs in the kvm subsystem, a looser mode makes libvirt and other virtualization mechanisms work out of the box for unprivileged users over ssh). In Fedora the qemu package carries the relevant rule, but it's nicer to have it in systemd, so that the permissions are not dependent on the qemu package being installed. Use of packaged qemu binaries is not required to make use of /dev/kvm, e.g. it's possible to use a self-compiled qemu or some alternative. https://bugzilla.redhat.com/show_bug.cgi?id=1431876 To accomodate both approaches, add a rule to set the mode in 50-udev-default.rules, but allow the mode to be overridden with a --with-dev-kvm-mode configure rule. The default is 0660, as the (slightly) more secure option.
2017-03-26hwdb: add resolution values for Waltop USB tablet (#5634)flussence
Newer versions of libinput need this to recognise it as an input device. https://bugs.freedesktop.org/show_bug.cgi?id=99664