summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-01-17sd-resolve: get rid of _t post-fixes for sd_ objectsDaniel Buch
We dont want _t prefixes, right?
2014-01-17bus: Fix read_word_le() functionLukasz Skalski
2014-01-17libsystemd: rename LIBSYSTEMD_BUS to LIBSYSTEMDTom Gundersen
2014-01-17bus: update kdbus.h (ABI break)Kay Sievers
2014-01-16networkd: resolv.conf - extend the comment a bitTom Gundersen
2014-01-16sd-dhcp-client: minor style fixesTom Gundersen
Also introduce a cleanup macro for DHCPLease
2014-01-16sd-dhcp-client: refactor DNS supportTom Gundersen
Rather than keeping an array of pointers to addresses, just keep an array of addresses.
2014-01-16sd-dhcp-client/networkd: add transient hostname supportTom Gundersen
2014-01-16networkd: dhcp - only set the MTU option onceTom Gundersen
Only set MTU request when creating the dhcp client, not every time it is restarted.
2014-01-16networkd: link - only save original MTU when necessaryTom Gundersen
2014-01-16networkd: improve loggingTom Gundersen
2014-01-16bus: fix issue with reference countingZbigniew Jędrzejewski-Szmek
b7fc42e03 introduced a regression.
2014-01-16bus: break reference cycle between bus and messagesZbigniew Jędrzejewski-Szmek
Previously (6ee4f99 bus: break reference cycle between bus and messages) I committed the test code, but not the actual fix :)
2014-01-16sd-dhcp-client/networkd: add interface MTU supportTom Gundersen
2014-01-16sd-rtnl: only alter link flags when reqeusted toTom Gundersen
2014-01-16sd-dhcp-client: fix memory corruptionTom Gundersen
2014-01-15event: extend priority raneg to 64bitLennart Poettering
The kdbus prioq logic will use 64bit prios too, so let's keep this similar in style. Using 64bit here has the advantage, that pointers and pretty much anything else can be mapped naturally to priorities if so desired.
2014-01-15systemctl: introduce new "import-environment" commandLennart Poettering
This may be used in graphical session start-up scripts to upload environment variables such as $DISPLAY into the systemd manager easily.
2014-01-15logind: get rid of X11 display socket symlinkLennart Poettering
X11 never made use of it anyway and it's probably better to just push $DISPLAY into the systemd daemon from gnome-session (or equivalent program) than to change libX11 to look for this socket. In particular since we won't need this for Wayland anyway and we shouldn't add infrastructure for stuff that's on its way out anyway.
2014-01-15Revert "Revert "coredumpctl: in case of error free pattern after print""Lukas Nykryn
In the case of the error set_consume will free the pointer 'pattern' which is later used in log_error. Either we should stop priniting that or use simple set_put and free pattern manually. This reverts commit ece6b8fd5bbc1fee16f652e680e3033f2f3efc4a.
2014-01-14sd-resolv: rename to sd-resolveTom Gundersen
Lennart pointed out that we were misspelling 'resolve'. Let's not repeat the mistakes of 'umount' and 'resolv.conf'.
2014-01-14Revert "coredumpctl: in case of error free pattern after print"Zbigniew Jędrzejewski-Szmek
This reverts commit cf50a55277ee432e1217ad894afcbd9a664ff96c. set_consume frees on error.
2014-01-14coredumpctl: in case of error free pattern after printLukas Nykryn
2014-01-14sd-resolv: remove left-over commentTom Gundersen
We are anyway breaking the API by renaming everything, so that is not a concern.
2014-01-14sd-resolv: require SOCK_CLOEXECTom Gundersen
2014-01-14sd-resolv: rename old asyncns variablesDaniel Buch
2014-01-14sd_resolv: Rename structs- and function names to sd_resolvDaniel Buch
2014-01-14bus: update kdbus.h (ABI break)Kay Sievers
2014-01-14bus: update kdbus.h (ABI break)Kay Sievers
2014-01-13networkd: DHCPv4 - allow opting out of using DNS serversTom Gundersen
Setting UseDNS=no will ignore any received DNS servers.
2014-01-13libsystemd-dns: merge into libsystemdTom Gundersen
Also rename sd-dns -> sd-resolv.
2014-01-13libsystemd-rtnl: merge into libsystemdTom Gundersen
2014-01-13libsystemd-dhcp: merge into libsystemdTom Gundersen
2014-01-13libsystemd-bus: rename to libsystemdTom Gundersen
Documentation was updated to refer to either 'libsystemd' or 'sd-bus' in place of libsystemd-bus.
2014-01-13sd-dns: coding style cleanupDaniel Buch
2014-01-12networkd: fix wordingTom Gundersen
2014-01-12networkd: generate resolv.confTom Gundersen
This adds support to generate a basic resolv.conf in /run/systemd/network. This file will not take any effect unless a symlink is created from /etc/resolv.conf. Nameservers received over DHCP takes precedence over statically configured ones. Note: /etc/resolv.conf is severely limited, so in the future we will likely rather provide a much more powerfull nss plugin (or something to that effect), but this should allow current users to function without any loss of functionality.
2014-01-12networkd: bridge - remove redundant stateTom Gundersen
We will not insist on getting the reply from rtnl that the bridge was created before considering the bridge ready, as we will be notified about that via udev. We will listen for the rtnl response however, in case the creation of the bridge failed.
2014-01-12networkd: don't automatically reload config at runtimeTom Gundersen
We don't know if the config will be consistent, so do as systemd itself and only load config when the daemon starts (and possibly, in the future, when explicitly requested).
2014-01-12networkd: improve logging a bitTom Gundersen
2014-01-12bus-proxyd: add some more debuggingTom Gundersen
Make sure we print a message when exiting with an error.
2014-01-12core: don't allow setting NOTIFY_SOCKET and similar env vars we need ↵Lennart Poettering
ourselves via SetEnvironment bus calls We just quietly eat them up, so that simple environment importing still works without error.
2014-01-12core: clean up environment block for --user instances a bitLennart Poettering
2014-01-12bus: add test case for signature typeLennart Poettering
2014-01-12bus: properly handle EOF error conditions in proxydLennart Poettering
EOF is not an error so we should not print an error message about it.
2014-01-11journald: do not free space when disk space runs lowZbigniew Jędrzejewski-Szmek
Before, journald would remove journal files until both MaxUse= and KeepFree= settings would be satisfied. The first one depends (if set automatically) on the size of the file system and is constant. But the second one depends on current use of the file system, and a spike in disk usage would cause journald to delete journal files, trying to reach usage which would leave 15% of the disk free. This behaviour is surprising for the user who doesn't expect his logs to be purged when disk usage goes above 85%, which on a large disk could be some gigabytes from being full. In addition attempting to keep 15% free provides an attack vector where filling the disk sufficiently disposes of almost all logs. Instead, obey KeepFree= only as a limit on adding additional files. When replacing old files with new, ignore KeepFree=. This means that if journal disk usage reached some high point that at some later point start to violate the KeepFree= constraint, journald will not add files to go above this point, but it will stay (slightly) below it. When journald is restarted, it forgets the previous maximum usage value, and sets the limit based on the current usage, so if disk remains to be filled, journald might use one journal-file-size less on each restart, if restarts happen just after rotation. This seems like a reasonable compromise between implementation complexity and robustness.
2014-01-11gpt-auto-generator: use EBADSLT code when unable to detect partition typeZbigniew Jędrzejewski-Szmek
ENODEV suggests that something is missing, which is be misleading here.
2014-01-11gpt-auto-generator: skip nonexistent devicesŁukasz Stelmach
The devices we work with have eMMC chips for storage. The chips provide four "hardware" partitions. The first is /dev/mmcblk0, it takes almost whole space and holds a GPT with several real partitions (/dev/mmcblk0p?). Then there are three block devices (mmcblk0boot0, mmcblk0boot1, rpmb) that are part of the same hardware as mmcblk0 that are presented by the kernel as children of the latter. That relationship makes gpt-auto-generator try to peek them but since they are not GPT partitions blkid_do_safeprobe() returns -2 making verify_gpt_parition() function return -ENODEV.
2014-01-12pam: skip DBUS_SESSION_BUS_ADDRESS export when kdbus is not activeKay Sievers
2014-01-11make socket_instantiate_service use cleanup gcc attributeMichael Scherer