summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* systemd-python: add wrappers for easy functions in sd-loginZbigniew Jędrzejewski-Szmek2013-05-086-13/+200
| | | | sd_get_uids, sd_get_seats, sd_get_sessions, and sd_get_machine_names.
* systemd-python: add __version__ stringsZbigniew Jędrzejewski-Szmek2013-05-087-10/+31
|
* Rearrange a few fields to reduce holesZbigniew Jędrzejewski-Szmek2013-05-083-10/+11
|
* hostnamectl: suppress outputting of pretty hostname field in status if emptyLennart Poettering2013-05-071-4/+8
|
* hostname: only suppress setting of pretty hostname if it is non-equal to the ↵Lennart Poettering2013-05-077-38/+24
| | | | | | static hostname and if the static hostname is set, too https://bugzilla.redhat.com/show_bug.cgi?id=957814
* journald: don't recalculate the ACL maskLennart Poettering2013-05-071-2/+2
| | | | | Otherwise we might end up with executable files if some default ACL is set for the journal directory.
* build-sys: support builds without EAs againLennart Poettering2013-05-072-6/+11
|
* hashmap: document trivial_hash_func()Lennart Poettering2013-05-071-0/+3
|
* kmod-setup: properly iterate through module tableLennart Poettering2013-05-071-33/+39
| | | | | | Previously we skipped every second entry. This also cleans up much of the code and removes some dead code.
* systemd-sleep: it is not an error if the config file is missingZbigniew Jędrzejewski-Szmek2013-05-071-11/+8
|
* login: add missing _public_ to sd_get_machine_names()Lennart Poettering2013-05-071-1/+1
|
* journald: be more careful when we try to flush the runtime journal to disk ↵v203Lennart Poettering2013-05-072-1/+7
| | | | | | | | and the disk is close to being full Bump the minimal size of the journal so that we can be sure creating the journal file will always succeed. Previously the minimum size was smaller than a empty jounral file...
* core: escape unit name from udevMUNEDA Takahiro2013-05-061-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | This patch escapes a unit name which was derived from udev. Please imagine following udev rule. ACTION=="online|offline", TAG+="systemd", ENV{SYSTEMD_WANTS}="muneda@%p.service" ACTION=="online|offline", TAG+="systemd", ENV{SYSTEMD_WANTS}="muneda@%r.service" ACTION=="online|offline", TAG+="systemd", ENV{SYSTEMD_WANTS}="muneda@%S.service" When unit name is derived from udev via udev_device_get_property_value(), the name may contains '/' if ENV{SYSTEMD_WANTS} has the udev options $devpath(%p), $root(%r), or $sys(%S). However, '/' is a invalid char for unit name so processing of this rule fails as Invalid argument with following message. Apr 22 13:21:37 localhost systemd[1]: Failed to load device unit: Invalid argument Apr 22 13:21:37 localhost systemd[1]: Failed to process udev device event: Invalid argument This patch escapes those invalid chars in a unit name. Tested with 202, and confirmed to apply cleanly on top of commit 195f8e36. Thanks, Takahiro
* systemd-sleep: add support for freeze and standbyZbigniew Jędrzejewski-Szmek2013-05-069-180/+423
| | | | | | | | | | | | | | | | | | | | | | | | | A new config file /etc/systemd/sleep.conf is added. It is parsed by systemd-sleep and logind. The strings written to /sys/power/disk and /sys/power/state can be configured. This allows people to use different modes of suspend on systems with broken or special hardware. Configuration is shared between systemd-sleep and logind to enable logind to answer the question "can the system be put to sleep" as correctly as possible without actually invoking the action. If the user configured systemd-sleep to only use 'freeze', but current kernel does not support it, logind will properly report that the system cannot be put to sleep. https://bugs.freedesktop.org/show_bug.cgi?id=57793 https://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=7e73c5ae6e7991a6c01f6d096ff8afaef4458c36 http://lists.freedesktop.org/archives/systemd-devel/2013-February/009238.html SYSTEM_CONFIG_FILE and USER_CONFIG_FILE defines were removed since they were used in only a few places and with the addition of /etc/systemd/sleep.conf it becomes easier to just append the name of each file to the dir name.
* fileio: split write_one_line_file into twoZbigniew Jędrzejewski-Szmek2013-05-062-9/+18
| | | | | The new function allows one to write to an already open file.
* core: unit_inactive_or_pending() should actually do as it claimsLennart Poettering2013-05-061-0/+3
|
* condition, man: Add support for ConditionSecurity=apparmorNirbheek Chauhan2013-05-061-0/+2
| | | | | | | Checking for the apparmor directory in securityfs means the apparmor module is loaded and enabled, and hence should suffice as a test. https://bugs.freedesktop.org/show_bug.cgi?id=63312
* quota: use QUOTACHECK path correctly as tested in configure.acLennart Poettering2013-05-061-15/+13
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=63555
* nspawn: explain that we look for /etc/os-release in the container directoryLennart Poettering2013-05-061-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=64014
* kernel-install: add default install scriptsHarald Hoyer2013-05-063-57/+96
| | | | | | | | | | | | | Do the depmod in the kernel-install hooks, so hooks can produce/install kernel modules and be part of the depmod. Also move the basic boot loader entry creation and removal to a plugin script. If PRETTY_NAME is not defined in /etc/os-release, fallback to PRETTY_NAME="Linux $KERNEL_VERSION". Add documentation for everything in the man page.
* keymap/findkeyboards: avoid throwaway attribute-walkVille Skyttä2013-05-031-1/+1
|
* Spelling fixesVille Skyttä2013-05-033-3/+3
|
* systemctl: use GREEDY_REALLOC in one more placeZbigniew Jędrzejewski-Szmek2013-05-031-2/+1
|
* journal: as a µ-opt, use sizeof instead of strlenZbigniew Jędrzejewski-Szmek2013-05-031-10/+14
|
* cgroup: when escaping a cgroup object name, also escape names that start ↵Lennart Poettering2013-05-032-1/+10
| | | | with a dot
* systemctl: add --plain option to list-dependenciesLukas Nykryn2013-05-031-17/+33
| | | | This patch adds more script-friendly output for list-dependencies.
* journal: Set the default keep free value to 15% (up from 5%)Colin Guthrie2013-05-031-1/+1
| | | | | | | As some SSDs are still seeing performance degredation when reaching 85% usage the default value of 5% seems a little low. Set this to 15% by default.
* core: bump simultaneous bus connection limit to 512Lennart Poettering2013-05-031-1/+1
|
* cryptsetup: downgrade world-writable warning againLennart Poettering2013-05-031-1/+5
| | | | This semi-reverts 8973790ee6f62132b1b57de15c4edaef2c097004.
* time-dst: use _cleanup_Zbigniew Jędrzejewski-Szmek2013-05-022-40/+32
|
* Add __attribute__((const, pure, format)) in various placesZbigniew Jędrzejewski-Szmek2013-05-0272-275/+291
| | | | | | | | I'm assuming that it's fine if a _const_ or _pure_ function calls assert. It is assumed that the assert won't trigger, and even if it does, it can only trigger on the first call with a given set of parameters, and we don't care if the compiler moves the order of calls.
* hashmap.h: fix coding style issueDaniel Buch2013-05-031-7/+7
|
* test-hashmap.c: add unit-test for hashmapDaniel Buch2013-05-031-0/+508
|
* kdbus: update kdbus.h from upstreamKay Sievers2013-05-022-75/+47
|
* bootchart: cleanup unused structs and globalsAuke Kok2013-05-021-8/+0
|
* Dynamically allocate bootchart logsNathaniel Chen2013-05-025-143/+437
| | | | | | | Instead of storing bootchart sample data in arrays, this patch moves storage to linked lists so that there is no more limit on samples. This patch also fixes parsing of /proc/<pid>/smaps in kernels > 3.7.
* kdbus: update kdbus.h from upstreamKay Sievers2013-05-022-69/+81
|
* nspawn: inherit the exit status of containerDave Reisner2013-05-021-1/+1
| | | | | If we get as far as successfully starting the container, nspawn should inherit the exit status of the child container process as its own.
* Annotate some functions as _const_Cristian Rodríguez2013-05-011-6/+6
| | | | | hexchar,unhexchar,octchar,unoctchar,decchar,undecchar are all const functions.
* dbus-execute: fix introspectionRonny Chevalier2013-05-011-3/+2
| | | | | Add missing property and remove duplicate properties already in src/core/dbus-kill.h
* cgls: add --machine/-MZbigniew Jędrzejewski-Szmek2013-05-017-45/+49
| | | | | cg_get_machine_path is modified to include the escaped machine name + ".nspawn" if the machine argument is nonnull.
* zsh-completion: add s-a critical-chainZbigniew Jędrzejewski-Szmek2013-05-011-0/+4
|
* util: Add _sentinel_ to strextend()Colin Walters2013-04-301-1/+1
| | | | Since it must be NULL terminated.
* kdbus: update kdbus.h from upstreamKay Sievers2013-04-302-21/+29
|
* units: add an easy-to-use unit template file systemd-nspawn@.service for ↵Lennart Poettering2013-04-301-6/+12
| | | | running containers as system services
* build-sys: add makefile stub link to nss-myhostname/Lennart Poettering2013-04-301-0/+1
|
* cgroup: make cg_pid_get_path() work properly for co-mounted controllers and ↵Lennart Poettering2013-04-301-10/+34
| | | | normalized named hierarchies
* cryptsetup: warn if keyfiles are world-readableLennart Poettering2013-04-301-4/+14
|
* cryptsetup: warn if /etc/crypttab is world-readableLennart Poettering2013-04-302-5/+22
|
* cgroup: do not allow manipulating the cgroup path of units within the ↵Lennart Poettering2013-04-303-19/+49
| | | | systemd:/system subtree