chiark / gitweb /
elogind.git
7 years agoMake systemd-inhibit --list work
Matthias Clasen [Sat, 8 Sep 2012 02:56:35 +0000 (22:56 -0400)]
Make systemd-inhibit --list work

The code in the print_inhibitors function had an unintended
unconditional early exit, causing it to never print any
inhibitors.

7 years agobuild-sys: add libsystemd-id128-internal.la as dep to libsystemd-core.la
Lennart Poettering [Mon, 10 Sep 2012 07:28:42 +0000 (09:28 +0200)]
build-sys: add libsystemd-id128-internal.la as dep to libsystemd-core.la

condition.c makes use of sd_id128_get_machine() after all.

Spotted by Khem Raj.

7 years agopath-util: fall back to stat() if kernel does not support name_to_handle_at()
Mantas Mikulėnas [Sun, 9 Sep 2012 12:16:19 +0000 (15:16 +0300)]
path-util: fall back to stat() if kernel does not support name_to_handle_at()

Fixes instant hang on kernels that do not have CONFIG_FHANDLE enabled.

7 years agopath-util: do not fail in path_is_mountpoint() if path doesn't exist
Mantas Mikulėnas [Sun, 9 Sep 2012 12:16:18 +0000 (15:16 +0300)]
path-util: do not fail in path_is_mountpoint() if path doesn't exist

This was accidentally lost in commit 1640a0b6b05b.

7 years agojournald: make splitting up of journal files per-user configurable
Lennart Poettering [Fri, 7 Sep 2012 21:40:00 +0000 (23:40 +0200)]
journald: make splitting up of journal files per-user configurable

7 years agojournal: add call to determine current journal file disk usage
Lennart Poettering [Fri, 7 Sep 2012 21:20:28 +0000 (23:20 +0200)]
journal: add call to determine current journal file disk usage

7 years agomain: fix syntax of net_prio cgroup controller
Lennart Poettering [Fri, 7 Sep 2012 20:22:15 +0000 (22:22 +0200)]
main: fix syntax of net_prio cgroup controller

7 years agojournald: avoid logging to kmsg in the normal paths
Lennart Poettering [Thu, 6 Sep 2012 07:32:51 +0000 (00:32 -0700)]
journald: avoid logging to kmsg in the normal paths

7 years agolocaled: system-setup-keyboard is no more on fedora
Lennart Poettering [Thu, 6 Sep 2012 06:54:09 +0000 (23:54 -0700)]
localed: system-setup-keyboard is no more on fedora

7 years agoman: document that ExecStart= doesn't understand shell command lines
Lennart Poettering [Thu, 6 Sep 2012 06:51:19 +0000 (23:51 -0700)]
man: document that ExecStart= doesn't understand shell command lines

7 years agotmpfiles: don't attempt creation of device nodes when we run in a container
Lennart Poettering [Thu, 6 Sep 2012 06:39:55 +0000 (23:39 -0700)]
tmpfiles: don't attempt creation of device nodes when we run in a container

7 years agosystemctl: properly build flags for show_journal_by_unit()
Lennart Poettering [Thu, 6 Sep 2012 00:05:04 +0000 (17:05 -0700)]
systemctl: properly build flags for show_journal_by_unit()

7 years agojournalctl: show "Reboot" markers in output only when showing local-only entries
Lennart Poettering [Wed, 5 Sep 2012 23:52:46 +0000 (16:52 -0700)]
journalctl: show "Reboot" markers in output only when showing local-only entries

7 years agojournalctl: replace --local by --merge, i.e. don't interleave remote journals by...
Lennart Poettering [Wed, 5 Sep 2012 23:49:00 +0000 (16:49 -0700)]
journalctl: replace --local by --merge, i.e. don't interleave remote journals by default

7 years agonspawn: handle poweroff/reboot nicely in containers
Lennart Poettering [Wed, 5 Sep 2012 23:23:41 +0000 (16:23 -0700)]
nspawn: handle poweroff/reboot nicely in containers

7 years agoshutdown: in containers, invoke reboot(2), too. Then fallback to exit() if CAP_SYS_BO...
Lennart Poettering [Wed, 5 Sep 2012 22:37:18 +0000 (15:37 -0700)]
shutdown: in containers, invoke reboot(2), too. Then fallback to exit() if CAP_SYS_BOOT is missing

The kernel's PID namespaces support reboot(2) just fine, so let's make
use of it if possible.

7 years agoshutdown: remove explicit sync() invocations
Lennart Poettering [Wed, 5 Sep 2012 22:32:57 +0000 (15:32 -0700)]
shutdown: remove explicit sync() invocations

The kernel implicitly does sync() anyway, hence there is no need to do
that in userspace explicitly. This makes the "-n" switch to halt(8) a
noop.

7 years agonspawn: don't provide /dev/rtc0 in the container
Lennart Poettering [Wed, 5 Sep 2012 22:27:07 +0000 (15:27 -0700)]
nspawn: don't provide /dev/rtc0 in the container

Since RTCs are hardware devices and are very much shared resources we
should avoid to provide them in each container.

7 years agojournalctl: rework JSON output mode
Lennart Poettering [Wed, 5 Sep 2012 22:25:32 +0000 (15:25 -0700)]
journalctl: rework JSON output mode

This splits the JSON output mode into different modes: json and
json-pretty. The former printing one entry per line, the latter showing
JSON objects nicely indented and in multiple lines to make it easier to
read for humans.

7 years agonspawn: generate a new randomized boot ID for each container
Lennart Poettering [Wed, 5 Sep 2012 21:39:16 +0000 (14:39 -0700)]
nspawn: generate a new randomized boot ID for each container

7 years agonspawn: if a file system comes pre-mounted, still do the read-only remounts
Lennart Poettering [Wed, 5 Sep 2012 21:16:41 +0000 (14:16 -0700)]
nspawn: if a file system comes pre-mounted, still do the read-only remounts

7 years agopath: fix invalid variable access in path_is_mount_point()
Lennart Poettering [Wed, 5 Sep 2012 00:05:23 +0000 (17:05 -0700)]
path: fix invalid variable access in path_is_mount_point()

7 years agopath-util: in path_is_mount_point() fall back to the classic stat() test if fs does...
Lennart Poettering [Tue, 4 Sep 2012 23:37:57 +0000 (16:37 -0700)]
path-util: in path_is_mount_point() fall back to the classic stat() test if fs does not support name_to_handle_at()

7 years agonspawn: skip mounts if already mounted
Lennart Poettering [Tue, 4 Sep 2012 23:33:13 +0000 (16:33 -0700)]
nspawn: skip mounts if already mounted

7 years agonspawn: mount a clean instance of sysfs
Lennart Poettering [Tue, 4 Sep 2012 23:32:43 +0000 (16:32 -0700)]
nspawn: mount a clean instance of sysfs

7 years agomissing: define name_to_handle_at on our own if it is missing
Lennart Poettering [Tue, 4 Sep 2012 22:20:04 +0000 (15:20 -0700)]
missing: define name_to_handle_at on our own if it is missing

7 years agoupdate TODO
Lennart Poettering [Tue, 4 Sep 2012 20:39:18 +0000 (13:39 -0700)]
update TODO

7 years agoshared: logs-show: fflush after each output type
Brandon Philips [Tue, 4 Sep 2012 01:37:46 +0000 (18:37 -0700)]
shared: logs-show: fflush after each output type

journalctl -f redirected to a pipe or file wasn't working for some
output formats but was working for json. It turns out only json was
doing an fflush.

Make all output formats flush.

7 years agoupdate TODO -- hackfest edition
Lennart Poettering [Tue, 4 Sep 2012 01:58:18 +0000 (18:58 -0700)]
update TODO -- hackfest edition

7 years agomain: jointly mount more controllers
Lennart Poettering [Tue, 4 Sep 2012 01:54:32 +0000 (18:54 -0700)]
main: jointly mount more controllers

After talking to the cgroup kernel folks at LPC we came to the
conclusion that it is probably a good idea to mount all CPU related
resp. all network related cgroup controllers together, both because they
are good defaults for admins and because this might prepare
for eventual kernel cleanups where the ability to mount them separately
is removed.

7 years agojournalctl: include logs from PID 1 about services in systemctl status
Lennart Poettering [Fri, 24 Aug 2012 22:55:22 +0000 (00:55 +0200)]
journalctl: include logs from PID 1 about services in systemctl status

7 years agoreadahead: a bit of reformatting
Lennart Poettering [Fri, 24 Aug 2012 22:16:19 +0000 (00:16 +0200)]
readahead: a bit of reformatting

7 years agoutil: make path_is_mount_point() recognize bind mounts, too
Lennart Poettering [Fri, 24 Aug 2012 22:10:17 +0000 (00:10 +0200)]
util: make path_is_mount_point() recognize bind mounts, too

7 years agojournal: don't pull in flush service from journald service
Lennart Poettering [Fri, 24 Aug 2012 21:23:08 +0000 (23:23 +0200)]
journal: don't pull in flush service from journald service

In the initrd we don't need the flush service hence don't attempt to
pull it in.

7 years agounit: make sure structured logging is available before we enter the main boot phase
Lennart Poettering [Fri, 24 Aug 2012 21:18:35 +0000 (23:18 +0200)]
unit: make sure structured logging is available before we enter the main boot phase

7 years agoswap: don't try to shutdown swaps on shutdown in a container
Lennart Poettering [Fri, 24 Aug 2012 21:07:03 +0000 (23:07 +0200)]
swap: don't try to shutdown swaps on shutdown in a container

7 years agoswap: refuse start/stop of swaps in container
Lennart Poettering [Fri, 24 Aug 2012 21:00:13 +0000 (23:00 +0200)]
swap: refuse start/stop of swaps in container

7 years agoshutdown: don't attempt read-only mounts in a container
Lennart Poettering [Fri, 24 Aug 2012 20:50:16 +0000 (22:50 +0200)]
shutdown: don't attempt read-only mounts in a container

7 years agojournal: suppress structured messages if they'd go to the console
Lennart Poettering [Fri, 24 Aug 2012 20:43:33 +0000 (22:43 +0200)]
journal: suppress structured messages if they'd go to the console

7 years agojournal: generate structured journal messages for a number of events
Lennart Poettering [Fri, 24 Aug 2012 20:21:20 +0000 (22:21 +0200)]
journal: generate structured journal messages for a number of events

7 years agoshared: in code that might get called from suid programs use __secure_getenv() rather...
Lennart Poettering [Thu, 23 Aug 2012 16:47:01 +0000 (18:47 +0200)]
shared: in code that might get called from suid programs use __secure_getenv() rather than getenv()

It's better to be safe than sorry.

7 years agobuild-sys: xsltproc is required for man pages and gtk-doc
Zbigniew Jędrzejewski-Szmek [Fri, 24 Aug 2012 23:57:03 +0000 (01:57 +0200)]
build-sys: xsltproc is required for man pages and gtk-doc

7 years agojournal: add HAVE_XZ check to avoid build failure
Yin Kangkai [Fri, 24 Aug 2012 08:52:58 +0000 (16:52 +0800)]
journal: add HAVE_XZ check to avoid build failure

Without this, build fail with --disable-xz or xz not installed.

7 years agokeymaps: Add "e" key for Acer Aspire 5720
Martin Pitt [Fri, 24 Aug 2012 05:11:20 +0000 (07:11 +0200)]
keymaps: Add "e" key for Acer Aspire 5720

https://launchpad.net/bugs/1009836

7 years agojournald: add missing includes
Allin Cottrell [Thu, 23 Aug 2012 23:46:38 +0000 (01:46 +0200)]
journald: add missing includes

7 years agosd-journal: return null when mmap_cache_new fails
Lukas Nykryn [Thu, 23 Aug 2012 10:28:47 +0000 (12:28 +0200)]
sd-journal: return null when mmap_cache_new fails

7 years agohashmap: hashmap_contains does not need hashmap_entry
Lukas Nykryn [Thu, 23 Aug 2012 10:21:55 +0000 (12:21 +0200)]
hashmap: hashmap_contains does not need hashmap_entry

7 years agoreadahead-analyze: don't call fclose on null
Lukas Nykryn [Mon, 20 Aug 2012 13:15:40 +0000 (15:15 +0200)]
readahead-analyze: don't call fclose on null

7 years agocore: free word later in parse_proc_cmdline
Lukas Nykryn [Mon, 20 Aug 2012 12:52:07 +0000 (14:52 +0200)]
core: free word later in parse_proc_cmdline

7 years agologin: check return of parse_pid and parse_uid
Lukas Nykryn [Mon, 20 Aug 2012 12:39:08 +0000 (14:39 +0200)]
login: check return of parse_pid and parse_uid

7 years agoload-fragment: initialize bool invert before use
Lukas Nykryn [Mon, 20 Aug 2012 12:33:21 +0000 (14:33 +0200)]
load-fragment: initialize bool invert before use

7 years agobuild-sys: prepare release 189 v189
Lennart Poettering [Thu, 23 Aug 2012 00:46:22 +0000 (02:46 +0200)]
build-sys: prepare release 189

7 years agoservice: introduce a proper service result if the start limit is hit
Lennart Poettering [Wed, 22 Aug 2012 03:02:33 +0000 (05:02 +0200)]
service: introduce a proper service result if the start limit is hit

7 years agojournalctl: complain if unprivileged users attempt to access the journal and persista...
Lennart Poettering [Wed, 22 Aug 2012 02:45:17 +0000 (04:45 +0200)]
journalctl: complain if unprivileged users attempt to access the journal and persistant logging is off

7 years agojournal: the ratelimiter is part of journald
Lennart Poettering [Wed, 22 Aug 2012 01:43:45 +0000 (03:43 +0200)]
journal: the ratelimiter is part of journald

7 years agojournald: split off native protocol support into its own .c file
Lennart Poettering [Wed, 22 Aug 2012 01:42:23 +0000 (03:42 +0200)]
journald: split off native protocol support into its own .c file

7 years agojournald: split console transport stuff into its own file
Lennart Poettering [Wed, 22 Aug 2012 01:36:29 +0000 (03:36 +0200)]
journald: split console transport stuff into its own file

7 years agojournald: move stream protocol into its own .c file
Lennart Poettering [Wed, 22 Aug 2012 01:32:41 +0000 (03:32 +0200)]
journald: move stream protocol into its own .c file

7 years agojournal: move syslog specific calls out of util.c
Lennart Poettering [Wed, 22 Aug 2012 01:24:46 +0000 (03:24 +0200)]
journal: move syslog specific calls out of util.c

7 years agojournald: splitt of syslog protocol support into its own file
Lennart Poettering [Wed, 22 Aug 2012 01:21:03 +0000 (03:21 +0200)]
journald: splitt of syslog protocol support into its own file

7 years agojournald: split /dev/kmsg related stuff into its own .c file
Lennart Poettering [Wed, 22 Aug 2012 01:09:44 +0000 (03:09 +0200)]
journald: split /dev/kmsg related stuff into its own .c file

7 years agojournald: write tags also to user journal files
Lennart Poettering [Wed, 22 Aug 2012 00:53:51 +0000 (02:53 +0200)]
journald: write tags also to user journal files

7 years agojournald: augment journal entries from the kernel with data from udev
Lennart Poettering [Wed, 22 Aug 2012 00:49:17 +0000 (02:49 +0200)]
journald: augment journal entries from the kernel with data from udev

7 years agounit: add new ConditionHost= condition type
Lennart Poettering [Tue, 21 Aug 2012 23:51:53 +0000 (01:51 +0200)]
unit: add new ConditionHost= condition type

7 years agomain: fix PR_SET_CHILD_SUBREAPER warning version
Lennart Poettering [Tue, 21 Aug 2012 21:07:21 +0000 (23:07 +0200)]
main: fix PR_SET_CHILD_SUBREAPER warning version

7 years agojournalctl: be more friendly when informing about seal verification
Lennart Poettering [Tue, 21 Aug 2012 21:03:20 +0000 (23:03 +0200)]
journalctl: be more friendly when informing about seal verification

7 years agoshared/util: add fstab support for partuuid/partlabel
Dave Reisner [Sat, 11 Aug 2012 17:32:29 +0000 (13:32 -0400)]
shared/util: add fstab support for partuuid/partlabel

udev has supported this since 172, so it should be a safe (and welcome)
addition for users of GPT partitioned disks.

7 years agoshared/util: refactor fstab_node_to_udev_node
Dave Reisner [Sat, 11 Aug 2012 17:31:50 +0000 (13:31 -0400)]
shared/util: refactor fstab_node_to_udev_node

Since this is purely duplicated logic, separate it out into a small
static function.

7 years agoupdate TODO
Lennart Poettering [Tue, 21 Aug 2012 15:38:29 +0000 (17:38 +0200)]
update TODO

7 years agodev-setup: make NULL as parameter for dev_setup() equivalent to ""
Lennart Poettering [Tue, 21 Aug 2012 15:23:03 +0000 (17:23 +0200)]
dev-setup: make NULL as parameter for dev_setup() equivalent to ""

7 years agonspawn: add /dev FD symlinks in container setup
Dave Reisner [Wed, 15 Aug 2012 00:00:31 +0000 (20:00 -0400)]
nspawn: add /dev FD symlinks in container setup

This creates /dev/fd, /dev/stdin, /dev/stdout, /dev/stderr, and
/dev/core as symlinks to /proc on container creation. Except for
/dev/core, these are needed for shells like bash to be fully functional.

7 years agodev-setup: allow a path prefix for use in chroots
Dave Reisner [Wed, 15 Aug 2012 00:00:30 +0000 (20:00 -0400)]
dev-setup: allow a path prefix for use in chroots

With this adjustment, we can reuse this code elsewhere, such as in
nspawn.

7 years agoupdate TODO
Lennart Poettering [Tue, 21 Aug 2012 15:19:32 +0000 (17:19 +0200)]
update TODO

7 years agocore: fix error checking for PR_SET_CHILD_SUBREAPER
Lennart Poettering [Tue, 21 Aug 2012 14:47:14 +0000 (16:47 +0200)]
core: fix error checking for PR_SET_CHILD_SUBREAPER

7 years agobuild-sys: fix ntp-units.d path creation
Lennart Poettering [Tue, 21 Aug 2012 14:40:17 +0000 (16:40 +0200)]
build-sys: fix ntp-units.d path creation

Spotted by Dave Reisner

7 years agojournalctl: add a bit of color to the output
Lennart Poettering [Tue, 21 Aug 2012 13:53:48 +0000 (15:53 +0200)]
journalctl: add a bit of color to the output

7 years agojournal: properly handle EPIPE from /dev/kmsg
Lennart Poettering [Tue, 21 Aug 2012 13:34:41 +0000 (15:34 +0200)]
journal: properly handle EPIPE from /dev/kmsg

7 years agojournal: be more careful when keeping around mmaps we still need
Lennart Poettering [Tue, 21 Aug 2012 13:33:21 +0000 (15:33 +0200)]
journal: be more careful when keeping around mmaps we still need

7 years agoverify: optimize entry search a bit by using bisection
Lennart Poettering [Tue, 21 Aug 2012 13:32:51 +0000 (15:32 +0200)]
verify: optimize entry search a bit by using bisection

7 years agojournalctl: really include .journal~ files in listing
Lennart Poettering [Tue, 21 Aug 2012 00:13:21 +0000 (02:13 +0200)]
journalctl: really include .journal~ files in listing

7 years agojournal: initialize libgcrypt explicitly, before using HMAC
Lennart Poettering [Mon, 20 Aug 2012 23:43:37 +0000 (01:43 +0200)]
journal: initialize libgcrypt explicitly, before using HMAC

7 years agojournal: automatically evolve FSS key even when nothing is logged
Lennart Poettering [Mon, 20 Aug 2012 23:29:17 +0000 (01:29 +0200)]
journal: automatically evolve FSS key even when nothing is logged

7 years agojournalctl: reword things a bit
Lennart Poettering [Mon, 20 Aug 2012 23:02:08 +0000 (01:02 +0200)]
journalctl: reword things a bit

7 years agojournal: rearrange QR code output a bit to fi to 80x25 terminals
Lennart Poettering [Mon, 20 Aug 2012 20:22:05 +0000 (22:22 +0200)]
journal: rearrange QR code output a bit to fi to 80x25 terminals

7 years agojournald: add new Seal= configuration option
Lennart Poettering [Mon, 20 Aug 2012 20:13:22 +0000 (22:13 +0200)]
journald: add new Seal= configuration option

7 years agojournalctl: explain QR code use
Lennart Poettering [Mon, 20 Aug 2012 20:11:55 +0000 (22:11 +0200)]
journalctl: explain QR code use

7 years agojournal: include machine ID in QR code
Lennart Poettering [Mon, 20 Aug 2012 20:11:38 +0000 (22:11 +0200)]
journal: include machine ID in QR code

7 years agojournalctl: output FSS key as QR code on generating
Lennart Poettering [Mon, 20 Aug 2012 20:02:19 +0000 (22:02 +0200)]
journalctl: output FSS key as QR code on generating

7 years agojournal: add missing endianess conversion
Lennart Poettering [Mon, 20 Aug 2012 17:21:19 +0000 (19:21 +0200)]
journal: add missing endianess conversion

7 years agojournal: make libgcrypt dependency optional
Lennart Poettering [Mon, 20 Aug 2012 14:51:46 +0000 (16:51 +0200)]
journal: make libgcrypt dependency optional

7 years agojournal: use a macro to check for file header flags
Lennart Poettering [Mon, 20 Aug 2012 14:11:42 +0000 (16:11 +0200)]
journal: use a macro to check for file header flags

7 years agojournal: fix tag ordering check
Lennart Poettering [Mon, 20 Aug 2012 13:59:33 +0000 (15:59 +0200)]
journal: fix tag ordering check

7 years agojournal: fix bisection algorithm
Lennart Poettering [Sun, 19 Aug 2012 13:16:32 +0000 (15:16 +0200)]
journal: fix bisection algorithm

7 years agojournal: validate timestamps as well
Lennart Poettering [Sun, 19 Aug 2012 13:15:59 +0000 (15:15 +0200)]
journal: validate timestamps as well

7 years agommap: resize arrays dynamically
Lennart Poettering [Fri, 17 Aug 2012 23:46:20 +0000 (01:46 +0200)]
mmap: resize arrays dynamically

7 years agojournal: even more simple static object tests
Lennart Poettering [Fri, 17 Aug 2012 23:45:39 +0000 (01:45 +0200)]
journal: even more simple static object tests

7 years agojournal: refuse verification of files with unknown flags
Lennart Poettering [Fri, 17 Aug 2012 22:40:48 +0000 (00:40 +0200)]
journal: refuse verification of files with unknown flags

7 years agojounral: write bit fiddling test
Lennart Poettering [Fri, 17 Aug 2012 22:40:03 +0000 (00:40 +0200)]
jounral: write bit fiddling test

This test goes through every single bit in a journal file, toggles it,
and checks if this change is detected by the verification.

7 years agojournal: fix verification without key
Lennart Poettering [Fri, 17 Aug 2012 22:38:57 +0000 (00:38 +0200)]
journal: fix verification without key

7 years agojournald: add additional simple static tests to verifier
Lennart Poettering [Fri, 17 Aug 2012 22:37:21 +0000 (00:37 +0200)]
journald: add additional simple static tests to verifier