summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* polkit: actually generate new InteractiveAuthorizationRequired error on the ↵Lennart Poettering2014-10-28
| | | | right occasions
* sd-bus: add support for new InteractiveAuthorizationRequired error from dbus ↵Lennart Poettering2014-10-28
| | | | spec
* mac: add mac_ prefix to distinguish origin security apisWaLyong Cho2014-10-28
|
* swap: drop noauto/nofail bools from Swap structureLennart Poettering2014-10-28
| | | | | We nowadays always set them to "false" anyway, hence let's get rid of them entirely.
* swap: replace Discard= setting by a more generic Options= settingLennart Poettering2014-10-28
| | | | | | For now, it's systemd itself that parses the options string, but as soon as util-linux' swapon can take the option string directly with -o we should pass it on unmodified.
* udev hwdb: Support shipping pre-compiled database in system imagesMartin Pitt2014-10-28
| | | | | | | | | | | | | | | | In some cases it is preferable to ship system images with a pre-generated binary hwdb database, to avoid having to build it at runtime, avoid shipping the source hwdb files, or avoid storing large binary files in /etc. So if hwdb.bin does not exist in /etc/udev/, fall back to looking for it in UDEVLIBEXECDIR. This keeps the possibility to add files to /etc/udev/hwdb.d/ and re-generating the database which trumps the one in /usr/lib. Add a new --usr flag to "udevadm hwdb --update" which puts the database into UDEVLIBEXECDIR. Adjust systemd-udev-hwdb-update.service to not generate the file in /etc if we already have it in /usr.
* sd-login: let's not needlessly yell at usersLennart Poettering2014-10-28
| | | | | | While GNOME/KDE are generally capitalized, systemd tools generally are not, hence let's not start doing so in the XDG_CURRENT_SESSION environment variable.
* manager: print warning on console before rebootZbigniew Jędrzejewski-Szmek2014-10-27
| | | | It will be printed even if a prompt is blocking other messages.
* manager: convert ephemeral to enumZbigniew Jędrzejewski-Szmek2014-10-27
| | | | In preparation for subsequent changes.
* rpm: add user macrosZbigniew Jędrzejewski-Szmek2014-10-27
|
* manager: do not print anything while passwords are being queriedZbigniew Jędrzejewski-Szmek2014-10-27
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=73942
* cdrom_id: do not attempt to read past end of bufferZbigniew Jędrzejewski-Szmek2014-10-27
| | | | CID #1238437
* selinux: make sure we do not try to print missing fieldsZbigniew Jędrzejewski-Szmek2014-10-27
| | | | | | | | | UID or GID of 0 is valid, so we cannot use that to distinguish whether calls to sd_bus_creds_get_* succeeded, and the return value from the function is the only way to know about missing fields. Print "n/a" if the fields are missing. CID #1238779
* login: remove multi-seat-xTimofey Titovets2014-10-28
|
* job: optionally, when a job timeout is hit, also execute a failure actionLennart Poettering2014-10-28
|
* core: remove system start timeout logic againLennart Poettering2014-10-28
| | | | | | | | | | | | The system start timeout as previously implemented would get confused by long-running services that are included in the initial system startup transaction for example by being cron-job-like long-running services triggered immediately at boot. Such long-running jobs would be subject to the default 15min timeout, esily triggering it. Hence, remove this again. In a subsequent commit, introduce per-target job timeouts instead, that allow us to control these timeouts more finegrained.
* journald: be nice to coverity, add an extra assertLennart Poettering2014-10-27
| | | | coverity otherwise assumes that the chain object might be NULL.
* calendarspec: parse 'quarterly' and 'semi-annually' as shortcutsLennart Poettering2014-10-27
|
* networkd: network - if no prefixlength is given, try to deduce one from the ↵Tom Gundersen2014-10-27
| | | | | | address class In case of a class E or F address, ignore the address.
* shared: in-addr-utils - add default_subnet_mask and default_prefixlen methodsTom Gundersen2014-10-27
| | | | | | | These use the (deprecated) IPv4 address classes to deduce the corresponding subnet masks. This is useful when addresses without subnet masks and prefix lengths are given. Make use of these new functions from sd-dhcp-lease.
* sd-bus: sync kdbus.h (ABI break)Daniel Mack2014-10-27
| | | | | Some comment fixes and header cleanups in kdbus.h, and the task capability meta information has been factored out to its own struct.
* calendar: new case 'minutely'Daniele Medri2014-10-27
|
* sd-bus: explicitly cast asprintf() return value away we are not interested inLennart Poettering2014-10-27
| | | | Let's give coverity a hint what's going on here.
* Revert "sd-bus: check return value of asprintf()"Lennart Poettering2014-10-27
| | | | | | | | This reverts commit b1543c4c93855b61b40118e9f14a0423dac2e078. We check b->address anyway, no need to check the return value, especially given that the other #ifdef branch don't get the same treatment.
* shutdown: do final unmounting only if not running inside the containerMichal Sekletar2014-10-27
| | | | | | | | | | If we run in the container then we run in a mount namespace. If namespace dies then kernel should do unmounting for us, hence we skip unmounting in containers. Also, it may be the case that we no longer have capability to do umount, because we are running in the unprivileged container. See: http://lists.freedesktop.org/archives/systemd-devel/2014-October/023536.html
* networkd: don't stop the dhcp server when link goes downTom Gundersen2014-10-27
|
* util: fix copy-paste error and actually set the new hostnameMichal Sekletar2014-10-27
| | | | Reported-by: sztanpet on irc
* util: introduce sethostname_idempotentMichal Sekletar2014-10-27
| | | | | Function queries system hostname and applies changes only when necessary. Also, migrate all client of sethostname to sethostname_idempotent while at it.
* journald: fix flushingZbigniew Jędrzejewski-Szmek2014-10-26
| | | | | | | | Commit 74055aa762 'journalctl: add new --flush command and make use of it in systemd-journal-flush.service' broke flushing because journald checks for the /run/systemd/journal/flushed file before opening the permanent journal. When the creation of this file was postponed, flushing stoppage ensued.
* systemctl: do not ignore errors in symlink removalZbigniew Jędrzejewski-Szmek2014-10-25
| | | | On an ro fs, systemctl disable ... would fail silently.
* Rearrange Unit to make pahole happyZbigniew Jędrzejewski-Szmek2014-10-25
| | | | After all we have lots of those.
* calendarspec: fix typo in "annually"Zbigniew Jędrzejewski-Szmek2014-10-25
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=85447
* journalctl: correct help text for --untilSantiago Vila2014-10-25
| | | | http://bugs.debian.org/766598
* bus-proxy: it's OK if getpeercred doesn't workLennart Poettering2014-10-24
| | | | | | | | We should use the data if we can (if stdin/stdout is an AF_UNIX socket), but still work if we can't (if stdin/stdout are pipes, like in the SSH case). This effectively reverts 55534fb5e4742b0db9ae5e1e0202c53804147697
* sd-bus: if we don't manage to properly allocate the error message for an ↵Lennart Poettering2014-10-24
| | | | | | | | | | | | | sd_bus_error, just go on sd_bus_error_setfv() must initialize the sd_bus_error value to some sensible value and then return a good errno code matching that. If it cannot work at all it should set the error statically to the OOM error. But if it can work half-way (i.e. initialize the name, but not the message) it should do so and still return the correct errno number for it. This effectively reverts 8bf13eb1e02b9977ae1cd331ae5dc7305a305a09
* time: don't do comparison twiceLennart Poettering2014-10-24
|
* time: minor simplificationLennart Poettering2014-10-24
|
* time: earlier exit from format_timestamp_relative() on special timesLennart Poettering2014-10-24
|
* time: also support 'infinity' syntax in parse_nsec()Lennart Poettering2014-10-24
| | | | Let's make parse_usec() and parse_nsec() work similar
* delta: use wait_for_terminate_and_warn() to generate warnin when diff failsLennart Poettering2014-10-24
|
* calendar: make freeing a calendar spec object deal fine with NULLLennart Poettering2014-10-24
| | | | | | In order to make object destruction easier (in particular in combination with _cleanup_) we usually make destructors deal with NULL objects as NOPs. Change the calendar spec destructor to follow the same scheme.
* timesyncd: the IP_TOS sockopt is really just an optimization, we shouldn't ↵Lennart Poettering2014-10-24
| | | | | | fail if we can't set it This partially undos 2f905e821e0342c36f5a5d3a51d53aabccc800bd
* journalctl: Unify boot id lookup into common function get_bootsJan Janssen2014-10-24
|
* udev: do NOT re-label smackWaLyong Cho2014-10-24
| | | | | If selinux is disabled and smack is only enabled, smack label is relable-ed by label_fix. To avoid, make only be labeled for selinux.
* manager: Linux on hppa has fewer rtsigs, hence avoid using the higher ones thereLennart Poettering2014-10-24
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=84931
* journald: removed gendered pronouns in commentKlaus Purer2014-10-24
|
* cryptsetup: Fix timeout on dm device.Hugo Grostabussiat2014-10-24
| | | | | | | | Fix a bug in systemd-cryptsetup-generator which caused the drop-in setting the job timeout for the dm device unit to be written with a name different than the unit name. https://bugs.freedesktop.org/show_bug.cgi?id=84409
* shutdown: pass own argv to /run/initramfs/shutdownMarius Tessmann2014-10-24
| | | | | | | | | | | | | | Since commit b1e90ec515408aec2702522f6f68c4920b56375b systemd passes its log settings to systemd-shutdown via command line parameters. However, systemd-shutdown doesn't pass these parameters to /run/initramfs/shutdown, causing it to fall back to the default log settings. This fixes the following bugs about the shutdown not being quiet despite "quiet" being in the kernel parameters: https://bugs.freedesktop.org/show_bug.cgi?id=79582 https://bugs.freedesktop.org/show_bug.cgi?id=57216
* selinux: fix handling of relative paths when setting up create labelLennart Poettering2014-10-24
|
* socket: properly label socket symlinksLennart Poettering2014-10-23
|