summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* udev: rename kernel command line option to net.ifnames=Kay Sievers2013-03-18
|
* man: udev - clarify when RUN is executedTom Gundersen2013-03-18
| | | | Unlike IMPORT and PROGRAM, RUN is not executed inline, but after all the rules of the given event have been processed.
* udev: builtin - use RUN rather than IMPORT for loading modulesTom Gundersen2013-03-18
| | | | | | | | | | The 'kmod' builtin, like the 'firmware' and 'uaccess' builtins, does not set any variables, so don't use IMPORT. Notice that this changes the behaviour slightly: the processing of subsequent rules for the event that loads a module will no longer wait for the module loading to finish. This is not expected to cause any problems, but we should keep an eye on it.
* udev: net-name-slot - disable by kernel command line switchTom Gundersen2013-03-18
| | | | | | The properties will still be set in the udev database, but they will not be used for setting the interface names. As for the other kernel commandline switches, we allow it to be prefixed by 'rd.' to only apply in the initrd.
* man: udev - move documentation of configuration fileTom Gundersen2013-03-18
| | | | | Moved from udev(7) to systemd-udevd.service(8), where the rest of the documentation of the configuration of the daemon lives.
* udev: ifdef all firmware special handlingKay Sievers2013-03-18
|
* udev: make firmware loading optional and disable by defaultTom Gundersen2013-03-18
| | | | | | Distros that whish to support old kernels should set --with-firmware-dirs="/usr/lib/firmware/updates:/usr/lib/firmware" to retain the old behaviour.
* man: udev - document 'builtin'Tom Gundersen2013-03-18
| | | | | The new IMPORT{builtin} and RUN{builtin} were not documented. Also make it clear that RUN= is really an alias for RUN{program}=.
* units: initrd, multi-user - add a few more words to Description=Kay Sievers2013-03-16
|
* man: bootup - intrd-fs.target --> initrd.targetKay Sievers2013-03-16
|
* journal: pass the *pid* to sd_pid_get_owner_uid()Kay Sievers2013-03-16
|
* timer: fix grammar in messageZbigniew Jędrzejewski-Szmek2013-03-15
|
* core: reuse the same /tmp, /var/tmp and inaccessible dirMichal Sekletar2013-03-15
| | | | | | | | All Execs within the service, will get mounted the same /tmp and /var/tmp directories, if service is configured with PrivateTmp=yes. Temporary directories are cleaned up by service itself in addition to systemd-tmpfiles. Directory which is mounted as inaccessible is created at runtime in /run/systemd.
* TODO: uses for SO_REUSEPORTJosh Triplett2013-03-15
| | | | | The new socket option SO_REUSEPORT would enable some new functionality; add it to TODO.
* smack-setup: enable Smack/CIPSO mappingNathaniel Chen2013-03-15
| | | | | | | | | | | | CIPSO is the Common IP Security Option, an IETF standard for setting security levels for a process sending packets. In Smack kernels, CIPSO headers are mapped to Smack labels automatically, but can be changed. This patch writes label/category mappings from /etc/smack/cipso/ to /sys/fs/smackfs/cipso2. The mapping format is "%s%4d%4d"["%4d"]... For more information about Smack and CIPSO, see: https://kernel.org/doc/Documentation/security/Smack.txt
* smack-setup: extract rule writing into a separate functionZbigniew Jędrzejewski-Szmek2013-03-15
| | | | Check all errors.
* units: ignore systemd-sysctl on shutdownUmut Tezduyar2013-03-15
| | | | | No need to try to stop systemd-sysctl on shutdown as this service doesn't have ExecStop= anyways.
* core: keep mountinfo .mounts until late shutdownUmut Tezduyar2013-03-15
| | | | | | | | | | | | | | .mount units coming from /proc/self/mountinfo file are unmounted after local-fs.target is reached during shutdown. Problem: .mount units popping up in mountinfo file are added to systemd without any dependency. For that reason, they are the first one to be unmounted during shutdown. Whichever program mounted the file system deserves a chance to also unmount it. This patch ensures that /proc/self/mountinfo units will be unmounted after local-fs.target during shutdown (if they haven't been unmounted already)
* man: fix grammarZbigniew Jędrzejewski-Szmek2013-03-15
|
* systemd-python: add systemd.daemon wrapping sd-daemonZbigniew Jędrzejewski-Szmek2013-03-15
| | | | | | | | | Please see the documentation (e.g. pydoc3 systemd.daemon) for full description. As usual, systemd._daemon wraps the raw interface, while systemd.daemon provides the more pythonic API. sd_listen_fds, sd_booted, sd_is_fifo, sd_is_socket, sd_is_socket_unix, sd_is_socket_inet, sd_is_mq, and SD_LISTEN_FDS_START are currently wrapped.
* systemd-activate: pass environment variables throughZbigniew Jędrzejewski-Szmek2013-03-15
| | | | | | | | | | | I need this to test half-installed socket-activated python script, which requires PYTHONPATH and LD_LIBRARY_PATH set. I assume that other people might find it useful to. -E VAR passes through VAR from the environment, while -E VAR=value sets VAR=value. systemd-activate -E PYTHONPATH=/var/tmp/inst1/usr/lib64/python3.3/site-packages -E LD_LIBRARY_PATH=/var/tmp/inst1/usr/lib -l 2000 python3 -c 'from systemd.daemon import listen_fds; print(listen_fds())'
* sysctl: default - add safe sysrq optionsKay Sievers2013-03-15
|
* TODO: updateKay Sievers2013-03-15
|
* nspawn: don't make assumptions about the size of pid_tLennart Poettering2013-03-15
|
* logind: explicitly create state directories during early initializationLennart Poettering2013-03-15
| | | | | | | | Strictly speaking this isn't necessary for the /run/systemd/seats/ directory, since that is created anyway as the first seat is found, and seat0 is always found. But let's be explicit here, and also create the sessions/ and users/ directories, so that people can always install inotify watches from very early on, even when nobody logged in yet.
* sd-booted: update sd_booted() check a bitLennart Poettering2013-03-15
| | | | | | | | | | | | | | | | | | | Previously we were testing whether /sys/fs/cgroup/systemd/ was a mount point. This might be problematic however, when the cgroup trees are bind mounted into a container from the host (which should be absolutely valid), which might create the impression that the container was running systemd, but only the host actually is. Replace this by a check for the existance of the directory /run/systemd/system/, which should work unconditionally, since /run can never be a bind mount but *must* be a tmpfs on systemd systems, which is flushed at boots. This means that data in /run always reflects information about the current boot, and only of the local container, which makes it the perfect choice for a check like this. (As side effect this is nice to Ubuntu people who now use logind with the systemd cgroup hierarchy, where the old sd_booted() check misdetects systemd, even though they still run legacy Upstart.)
* strv: fix STRV_FOREACH_PAIR macro definitionLennart Poettering2013-03-15
|
* sysctl: add 50-default.confKay Sievers2013-03-15
|
* sysctl: coredump.conf -> 50-coredump.confKay Sievers2013-03-15
|
* man: bootup - "Systemd in the Initrd" -> "Initrd System Manager Bootup"Kay Sievers2013-03-15
|
* Make initrd.target the default target in the initrdHarald Hoyer2013-03-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, rename root-fs.target to initrd-root-fs.target to clarify its usage. Mount units with "x-initrd-rootfs.mount" are now ordered before initrd-root-fs.target. As we sometimes construct /sysroot mounts in /etc/fstab in the initrd, we want these to be mounted before the initrd-root-fs.target is active. initrd.target can be the default target in the initrd. (normal startup) : : v basic.target | ______________________/| / | | sysroot.mount | | | v | initrd-root-fs.target | | | v | initrd-parse-etc.service (custom initrd services) | | v | (sysroot-usr.mount and | various mounts marked | with fstab option | x-initrd.mount) | | | v | initrd-fs.target | | \______________________ | \| v initrd.target | v initrd-cleanup.service isolates to initrd-switch-root.target | v ______________________/| / | | initrd-udevadm-cleanup-db.service | | (custom initrd services) | | | \______________________ | \| v initrd-switch-root.target | v initrd-switch-root.service | v switch-root
* main: don't mount /sys, /dev and friends when we run with PID != 1Lennart Poettering2013-03-14
| | | | | | | | | Back from old times when we developed systemd on non-systemd hosts we still mounted the missing directories such as the cgroup stuff even when running with a PID != 1. There's no point for that anymore, so let's just do that if we are actually PID 1, and never otherwise. https://bugs.freedesktop.org/show_bug.cgi?id=62354
* fileio: use _cleanup_Zbigniew Jędrzejewski-Szmek2013-03-13
|
* build-sys: link libsystemd-login also against libsystemd-daemon-internalZbigniew Jędrzejewski-Szmek2013-03-13
| | | | | | | | | | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=62085 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libsystemd-login.so: undefined reference to `sd_listen_fds' In ee465038ce8 'build-sys: break dependency loop between libsystemd-id128.la and -shared.la', a partial fix was applied, and the use of functions from libsystemd-id128 was removed from libsystemd-shared. Nevertheless, fdset.c was still using sd_listen_fds, so libsystemd-login should be linked against libysystemd-daemon or libsystemd-daemon-internal. Tested-by: Elias Probst <mail@eliasprobst.eu>
* systemctl: remove unused variableMichal Sekletar2013-03-13
|
* tmpfiles: add missing missing.h includeZbigniew Jędrzejewski-Szmek2013-03-13
| | | | | | | mbiebl> src/tmpfiles/tmpfiles.c:221:13: error: ‘MAX_HANDLE_SZ’ undeclared (first use in this function) Fixup for 427b47c4abaf4b5.
* initctl: catch write error, use _cleanup_Zbigniew Jędrzejewski-Szmek2013-03-13
| | | | | != operator always returns something nonnegative, so the error condition was not caught.
* journalctl: show systemd messages about unit for -uZbigniew Jędrzejewski-Szmek2013-03-13
| | | | | | | | | | journalctl -u unit is not very useful, because it doesn't show systemd messages about starting, stopping, coredumps, etc, like systemctl status unit does. Make it show the same information using the same rules. If somebody really want to see just messages from by the unit, it is easy enough to use _SYSTEMD_UNIT=...
* logs-show: export logic to add matches for unitsZbigniew Jędrzejewski-Szmek2013-03-13
| | | | | | After that functions which add matches, show_journal_by_unit and show_journal_by_user_unit, become nearly identical, so I merged them into one function.
* man: fix some typosThomas Hindoe Paaboel Andersen2013-03-13
|
* build-sys: add two new files to EXTRA_DISTZbigniew Jędrzejewski-Szmek2013-03-13
| | | | | Also move custom-*.xsl EXTRA_DIST additions closer to where they are used.
* libudev: implement udev_device_set_attribute_value()Hannes Reinecke2013-03-13
|
* core: single unit_kill implementation for all unit typesMichal Schmidt2013-03-13
| | | | | | | There are very few differences in the implementations of the kill method in the unit types that have one. Let's unify them. This does not yet unify unit_kill() with unit_kill_context().
* util, manager: and mempset() and use itMichal Schmidt2013-03-13
| | | | | Just like mempcpy() is almost identical to memcpy() except the useful return value, so is the relation of mempset() to memset().
* manager: use more stpcpy()Michal Schmidt2013-03-13
|
* tmpfiles: --clean -- check for bind mounts of the same filesystem and skip themKay Sievers2013-03-13
|
* cryptsetup-generator: use _cleanup_ where possibleHarald Hoyer2013-03-13
|
* add initrd-fs.target and root-fs.targetHarald Hoyer2013-03-13
| | | | | | | | | | | | | | Instead of using local-fs*.target in the initrd, use root-fs.target for sysroot.mount and initrd-fs.target for /sysroot/usr and friends. Using local-fs.target would mean to carry over the activated local-fs.target to the isolated initrd-switch-root.target and thus in the real root. Having local-fs.target already active after deserialization causes ordering problems with the real root services and targets. We better isolate to targets for initrd-switch-root.target, which are only available in the initrd.
* build-sys: use -f with ln -sZbigniew Jędrzejewski-Szmek2013-03-13
| | | | | Parallel builds would sometimes try to recreate the link, and fail since 'ln -s' would refuse to overwrite.
* man: Document the actual behaviour of ExecStopPostMathieu Bridon2013-03-13
| | | | | | | | The documentation makes it sound like ExecStopPost is only run when stopping the service with `systemctl stop foo.service` However, that is not the case, as it also gets run when the service unexpectedly exists, crashes, or gets SIGKILLed.