summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* utf8: fix utf8_is_printableZbigniew Jędrzejewski-Szmek2013-10-05
|
* core: do not add "what" to RequiresMountsFor for network mountsZbigniew Jędrzejewski-Szmek2013-10-05
| | | | | | | | | For cifs mount like //server/share, we would get RequiresMountsFor=/server/share, which probably isn't harmful, but quite confusing. Unfortunately a bunch of static functions had to be moved up, but patch is really one line.
* mount: check for NULL before reading pm->whatDave Reisner2013-10-04
| | | | | | | Since a57f7e2c828b85, a mount unit with garbage in it would cause systemd to crash on loading it. ref: https://bugs.freedesktop.org/show_bug.cgi?id=70148
* logind: fix bus introspection data for TakeControl()Lennart Poettering2013-10-04
|
* manager: when verifying whether clients may change environment using selinux ↵Lennart Poettering2013-10-04
| | | | | | check for "reload" rather "reboot" This appears to be a copy/paste error.
* systemd: order remote mounts from mountinfo before remote-fs.targetZbigniew Jędrzejewski-Szmek2013-10-03
| | | | | | | | Usually the network is stopped before filesystems are umounted. Ordering network filesystems before remote-fs.target means that their unmounting will be performed earlier, and can terminate sucessfully. https://bugs.freedesktop.org/show_bug.cgi?id=70002
* Introduce _cleanup_endmntent_Zbigniew Jędrzejewski-Szmek2013-10-03
|
* gpt-auto-generator: exit immediately if in containerZbigniew Jędrzejewski-Szmek2013-10-03
| | | | | Otherwise we get an ugly warning when running systemd in a container.
* execute: more debugging messagesZbigniew Jędrzejewski-Szmek2013-10-03
|
* execute.c: always set $SHELLZbigniew Jędrzejewski-Szmek2013-10-02
| | | | | In e6dca81 $SHELL was added to user@.service. Let's instead provide it to all units which have a user.
* nspawn: always copy /etc/resolv.conf rather than bind mountLennart Poettering2013-10-02
| | | | | | | | We were already creating the file if it was missing, and this way containers can reconfigure the file without running into problems. This also makes resolv.conf handling more alike to handling of /etc/localtime, which is also not a bind mount.
* mkdir: pass a proper function pointer to mkdir_safe_internalLennart Poettering2013-10-02
|
* strv: don't access potentially NULL string arraysLennart Poettering2013-10-02
|
* efi: never call qsort on potentially NULL arraysLennart Poettering2013-10-02
|
* modules-load: fix error handlingLennart Poettering2013-10-02
|
* dbus: fix return value of dispatch_rqueue()Lennart Poettering2013-10-02
|
* bus: fix potentially uninitialized memory accessLennart Poettering2013-10-02
|
* journald: add missing error checkLennart Poettering2013-10-02
|
* cryptsetup: fix OOM handling when parsing mount optionsLennart Poettering2013-10-02
|
* systemctl: fix name mangling for sysv unitsVáclav Pavlín2013-10-02
|
* acpi: make sure we never free an uninitialized pointerLennart Poettering2013-10-02
|
* acpi-fptd: fix memory leak in acpi_get_boot_usecLukas Nykryn2013-10-02
|
* cgroup: there's no point in labelling cgroupfs dirs, so let's not do thatLennart Poettering2013-10-02
| | | | | | | This allows us to get rid of the dep on libsystemd-label for cgroup management. https://bugs.freedesktop.org/show_bug.cgi?id=69966
* hashmap: randomize hash functions a bitLennart Poettering2013-10-01
|
* logind: remove fbdev session-device supportDavid Herrmann2013-10-01
| | | | | | | fbdev does not support access-handover so it is quite useless to route it through logind. If compositors want to use it they ought to open it themselves. It's highly recommended to be ignored entirely, though. fbdev is about to be deprecated in the kernel.
* logind: send PropertyChanged during deactivationDavid Herrmann2013-10-01
| | | | | | We only send the PropertyChanged signal for the to-be-activated session but not for the to-be-deactivated one. Fix that so both listeners get notified about the new state.
* logind: check whether first drmSetMaster succeededDavid Herrmann2013-10-01
| | | | | | | | | | | | The initial drmSetMaster may fail if there is an active master already. We must not assume that all existing clients comply to logind rules. We check for this during session-activation already but didn't during device setup. Fix this by checking the return code. As drmSetMaster has had horrible return codes in the past (0 for failure? EINVAL for denied access, ..) we need to be quite pedantic. To guarantee an open file-descriptor we need to close the device and reopen it without master if setting master failed first.
* logind: fix session-device dbus notifyDavid Herrmann2013-10-01
| | | | | | | Had this fix lying around here for some time. Thanks to missing type-checking for va-args we passed in the actual major/minor values instead of pointers to it. Fix it by saving the values on the stack first and passing in the pointers.
* kernel-install: add compat with 'installkernel'Tom Gundersen2013-10-01
| | | | | | | | | | | If 'kernel-install' is called as 'installkernel' it will be compatible with the syntax used by the kernel's build system. This means it can be called by doing 'make install' in a kernel build directory, if the correct symlink has been installed (which we don't do by default yet). [Edit harald@redhat.com: removed basename and use shift]
* core: whenever a new PID is passed to us, make sure we watch itLennart Poettering2013-10-01
|
* util.c: ignore pollfd.revent for loop_read/loop_writeChen Jie2013-10-01
| | | | Let read()/write() report any error/EOF.
* systemctl: remove legacy upstart compatibilityCristian Rodríguez2013-10-01
|
* smack-setup: fix path to Smack/CIPSO mappingsPatrick McCarty2013-10-01
| | | | | | The correct path to the dir with CIPSO mappings is /etc/smack/cipso.d/; /etc/smack/cipso is a file that can include these mappings as well, though it is no longer supported in upstream libsmack.
* hashmap: size hashmap bucket array dynamicallyLennart Poettering2013-10-01
| | | | | | | | | | Instead of fixing the hashmap bucket array to 127 entries dynamically size it, starting with a smaller one of 31. As soon as a fill level of 75% is reached, quadruple the size, and so on. This should siginficantly optimize the lookup time in large tables (from O(n) back to O(1)), and save memory on smaller tables (which most are).
* local: fix memory leak when putting together locale settingsLennart Poettering2013-10-01
| | | | | | | | | Also, we need to use proper strv_env_xyz() calls when putting together the environment array, since otherwise settings won't be properly overriden. And let's get rid of strv_appendf(), is overkill and there was only one user.
* main: don't free fds array twiceLennart Poettering2013-10-01
|
* logs-show.c: show all messages for a sliceZbigniew Jędrzejewski-Szmek2013-10-01
|
* set IgnoreOnIsolate=true for systemd-cryptsetup@.serviceAndrey Borzenkov2013-09-29
| | | | | | | | | When crypttab contains noauto, cryptsetup service does not have any explicit dependencies. If service is started later manually (directly or via mount dependency) it will be stopped on isolate. mount units already have IgnoreOnIsolate set by default. Set it by default for cryptsetup units as well.
* Fix buffer overrun when enumerating filesZbigniew Jędrzejewski-Szmek2013-09-29
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=69887 Based-on-a-patch-by: Hans Petter Jansson <hpj@copyleft.no>
* kernel-install: avoid using 'cp --preserve'Tom Gundersen2013-09-27
| | | | Force 0644 and root:root instead, to avoid problems with fat filesystems.
* Do not use unitialized variable and remove duplicated lineZbigniew Jędrzejewski-Szmek2013-09-27
|
* swap: properly expose timeout property on the busLennart Poettering2013-09-27
|
* dbus: fix introspection for TimerSlackNSecLennart Poettering2013-09-27
|
* systemctl: make sure set-property mangles unit namesLennart Poettering2013-09-27
|
* core: drop some out-of-date references to cgroup settingsLennart Poettering2013-09-26
|
* logind: never consider a closing session relevant for PK checksLennart Poettering2013-09-26
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1010215
* main: set umask before creating any filesMike Gilbert2013-09-26
| | | | | | This avoids a problem when we inherit a non-zero umask from the initramfs. This would cause /run/systemd to be created with the wrong mode.
* logind: if a user is sitting in front of the computer and can shutdown the ↵Lennart Poettering2013-09-26
| | | | machine anyway he should also be able to reboot it
* core: rework how we match mount units against each otherLennart Poettering2013-09-26
| | | | | | | | | | | | | | | | | | | | | | | Previously to automatically create dependencies between mount units we matched every mount unit agains all others resulting in O(n^2) complexity. On setups with large amounts of mount units this might make things slow. This change replaces the matching code to use a hashtable that is keyed by a path prefix, and points to a set of units that require that path to be around. When a new mount unit is installed it is hence sufficient to simply look up this set of units via its own file system paths to know which units to order after itself. This patch also changes all unit types to only create automatic mount dependencies via the RequiresMountsFor= logic, and this is exposed to the outside to make things more transparent. With this change we still have some O(n) complexities in place when handling mounts, but that's currently unavoidable due to kernel APIs, and still substantially better than O(n^2) as before. https://bugs.freedesktop.org/show_bug.cgi?id=69740
* unit-name: when escaping a path consider the empty path identical to the ↵Lennart Poettering2013-09-26
| | | | root dir