summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* logind: log with AUTH facilityLennart Poettering2012-04-03
|
* fix a couple of AF_UNIX connect() callsLennart Poettering2012-04-03
|
* journal: in json and export mode use double underscores to prefix location ↵Lennart Poettering2012-04-03
| | | | | | | | | | | | | | | | | fields Many programming languages don't allow variable names beginning in dots, hence let's use double underscores for the location fields instead. This gets us the simple rule: __ is the prefix for location fields (i.e. fields that are used to identify entries, rather than part of the entries) _ is the prefix for trusted fields (i.e. those fields journald itself adds to all entries) no prefix for unrusted fields (i.e. all fields normal client code sends us)
* systemctl: make -f short for both --follow and --forceLennart Poettering2012-04-03
|
* service: schedule JOB_RESTART from SERVICE_AUTO_RESTART stateDavid Ward2012-04-03
| | | | Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45511
* analyze: Cosmetic exit when the bootup is not yet complete when plotting.Colin Guthrie2012-04-02
| | | | This is just a nicer message than a python traceback.
* Revert "socket: if we fail to create an instantiated service for a socket, ↵Michal Schmidt2012-04-02
| | | | | | | | | | | don't put the socket in failure mode" This reverts commit 9586cdfab6a2638078702b7fea7e16b3a71899e2. (but not the TODO hunk). The bug was already fixed by 1a710b43. And if other errors occur, we don't want to leave the socket active in order to avoid having socket tarpits.
* install: check for proper return from dirent_ensure_typeDave Reisner2012-04-02
| | | | | | Fixes 'systemctl list-unit-files', which previously returned only: Failed to issue method call: No such file or directory
* journal: implicitly add code location to all messages logged with the native ↵Lennart Poettering2012-04-02
| | | | | | | | | | | | | interface This logic can be turned off by defining SD_JOURNAL_SUPPRESS_LOCATION before including sd-journal.h. This also saves/restores errno in all logging functions, in order to be useful as logging calls without side-effects. This also adds a couple of __unlikely__ around the early checks in the logging calls, in order to minimize the runtime impact.
* journal: decrease default mmap window size to allow a bigger number of ↵Lennart Poettering2012-04-02
| | | | journals to be traversed in parallel
* bash-completion: update naming of loginctlDave Reisner2012-04-02
| | | | | 18b754d3 changed the name of systemd-loginctl to loginctl, but didn't update the bash-completion to match.
* rename /etc/systemd/systemd-{login,journal}d.conf to {login,journal}d.confKay Sievers2012-03-30
|
* job: add debug prints where job type gets changedMichal Schmidt2012-03-28
|
* job: fix loss of ordering with restart jobsMichal Schmidt2012-03-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suppose that foo.service/start is a job waiting on other job bar.service/start to finish. And then foo.service/restart is enqueued (not using --ignore-dependencies). Currently this makes foo.service start immediately, forgetting about the ordering to bar.service. The runnability check for JOB_RESTART jobs looks only at dependencies for stopping. That's actually correct, because restart jobs should be treated the same as stop jobs at first. The bug is that job_run_and_invalidate() does not treat them exactly the same as stop jobs. unit_start() gets called without checking for the runnability of the converted JOB_START job. The fix is to simplify the switch in job_run_and_invalidate(). Handle JOB_RESTART identically to JOB_STOP. Also simplify the handling of JOB_TRY_RESTART - just convert it to JOB_RESTART if the unit is active and let it fall through to the JOB_RESTART case. Similarly for JOB_RELOAD_OR_START - have a fall through to JOB_START. In job_finish_and_invalidate() it's not necessary to check for JOB_TRY_RESTART with JOB_DONE, because JOB_TRY_RESTART jobs will have been converted to JOB_RESTART already. Speeding up the restart of services in "auto-restart" state still works as before. Improves: https://bugzilla.redhat.com/show_bug.cgi?id=753586 but it's still not perfect. With this fix the try-restart action will wait for the restart to complete in the right order, but the optimal behaviour would be to finish quickly (without disturbing the start job).
* journal: properly handle if we interleave files with different boot idsLennart Poettering2012-03-27
| | | | | | If we try to locate a monotonic time in a file that doesn't have any entries with the matching boot id, then don't fail on it, simply fall back to calendar time.
* cat: fix priority typeLennart Poettering2012-03-27
| | | | Needs to be "int", not "char". Spotted by Frederic Crozat.
* journalctl: add --local switchLennart Poettering2012-03-27
|
* man: minor typo in reference to manual pageElan Ruusamäe2012-03-26
|
* logind: close FIFO before ending sessions cleanlyLennart Poettering2012-03-22
| | | | | | For clean session endings ask logind explicitly to get rid of the FIFO before closing it so that the FIFO logic doesn't result in su/sudo to be terminated immediately.
* logind: extend comment about X11 socket symlinkLennart Poettering2012-03-22
|
* add sparse support to detect endianness bugFrederic Crozat2012-03-22
| | | | | | le16/32/64_t type should be used when storing little-endian value header to integrate with sparse from Josh Triplett <josh@joshtriplett.org>
* binfmt: fix apply loopLennart Poettering2012-03-22
| | | | Noticed by Sergey Ptashnick
* main: added support for loading IMA custom policiesRoberto Sassu2012-03-22
| | | | | | | | | | | | | | | | This is an S/MIME signed message The new function ima_setup() loads an IMA custom policy from a file in the default location '/etc/ima/ima-policy', if present, and writes it to the path 'ima/policy' in the security filesystem. This function is executed at early stage in order to avoid that some file operations are not measured by IMA and it is placed after the initialization of SELinux because IMA needs the latter (or other security modules) to understand LSM-specific rules. This feature is enabled by default and can be disabled by providing the option '--disable-ima' to the configure script. Signed-off-by: Roberto Sassu <roberto.sassu@polito.it> Acked-by: Gianluca Ramunno <ramunno@polito.it>
* systemd: mount the securityfs filesystem at early stageRoberto Sassu2012-03-22
| | | | | | | | | | | | This is an S/MIME signed message The mount of the securityfs filesystem is now performed in the main systemd executable as it is used by IMA to provide the interface for loading custom policies. The unit file 'units/sys-kernel-security.mount' has been removed because it is not longer necessary. Signed-off-by: Roberto Sassu <roberto.sassu@polito.it> Acked-by: Gianluca Ramunno <ramunno@polito.it>
* journal: PAGE_SIZE is not known on ppc and other archsLennart Poettering2012-03-21
| | | | Let's use NAME_MAX, as suggested by Dan Walsh
* journal: react with immediate rotation to a couple of more errorsLennart Poettering2012-03-21
|
* sysctl: accept multiple passed configuration filesLennart Poettering2012-03-20
|
* modules-load: drop /lib from search path if we don't have it split offLennart Poettering2012-03-20
|
* bmfmt: allow passing more than one config file nameLennart Poettering2012-03-20
|
* remove GTK piecesMichal Schmidt2012-03-20
| | | | They've moved to systemd-ui.
* util: never follow symlinks in rm_rf_children()Michal Schmidt2012-03-16
| | | | | | | | | The function checks if the entry is a directory before recursing, but there is a window between the check and the open, during which the directory could be replaced with a symlink. CVE-2012-1174 https://bugzilla.redhat.com/show_bug.cgi?id=803358
* man: document systemd-journalctl(1)Lennart Poettering2012-03-16
|
* man: document systemd-journald.conf(5)Lennart Poettering2012-03-15
|
* man: document systemd-cat(1)Lennart Poettering2012-03-15
|
* journal: only use uint8_t for stateFrederic Crozat2012-03-15
|
* a couple of fixes to make llvm-analyze quietLennart Poettering2012-03-15
|
* journalctl: add a missing 'break'Tero Roponen2012-03-15
| | | | | | | | There is a 'break' missing in the -q handling so, for example, 'systemd-journalctl --new-id128 -q' does nothing. This patch fixes the problem.
* journald: don't try to roatet corrupted files when we open read-only anywayLennart Poettering2012-03-15
|
* journald: adjust permissions for rotated filesLennart Poettering2012-03-15
|
* journald: take corrupted files into account when calculating disk spaceLennart Poettering2012-03-15
|
* journald: be a bit more verboseLennart Poettering2012-03-15
|
* journald: fix calculation of disk spaceLennart Poettering2012-03-15
|
* journald: copy metrics/compression state from template when rotatingLennart Poettering2012-03-15
|
* journald: increase max file size to 128MBLennart Poettering2012-03-15
|
* journal: vacuum corrupted files, tooLennart Poettering2012-03-15
|
* journal: if we encounter a corrupted file, rotate and go onLennart Poettering2012-03-15
|
* nspawn: mount /etc/timezone into nspawn environment tooLennart Poettering2012-03-15
|
* journald: fix typoLennart Poettering2012-03-15
|
* journalctl: suppress messages about adm group if ACL support is not enabledLennart Poettering2012-03-15
|
* virt: the pidns controller does not exist anymoreLennart Poettering2012-03-15
|