]>
git.proxmox.com Git - systemd.git/log
Lennart Poettering [Thu, 13 Sep 2012 15:06:04 +0000 (17:06 +0200)]
journald: don't reposition window if we don't have to
Lennart Poettering [Thu, 13 Sep 2012 02:25:59 +0000 (04:25 +0200)]
python: fix error handling, and allocate argument array on the stack
Lennart Poettering [Thu, 13 Sep 2012 02:16:10 +0000 (04:16 +0200)]
python: reindent to follow coding style
Lennart Poettering [Thu, 13 Sep 2012 02:05:28 +0000 (04:05 +0200)]
python: change license to LGPL 2.1
The original license has been MIT for this code, but David Strauss (its
original author) agreed to relicense it to LGPL 2.1 for inclusion in
systemd.
Lennart Poettering [Thu, 13 Sep 2012 02:01:18 +0000 (04:01 +0200)]
python: integrate David Strauss' python-systemd package
Dave Reisner [Wed, 12 Sep 2012 20:21:00 +0000 (16:21 -0400)]
tmpfiles: plug file descriptor leak.
Introduced in
d4e9eb91 .
Lennart Poettering [Wed, 12 Sep 2012 22:06:30 +0000 (00:06 +0200)]
readahead: use 20K instead of 16K as temporary request nr bump
Kay Sievers [Wed, 12 Sep 2012 19:28:52 +0000 (21:28 +0200)]
update TODO
Kay Sievers [Wed, 12 Sep 2012 19:07:26 +0000 (21:07 +0200)]
update TODO
Lennart Poettering [Wed, 12 Sep 2012 07:23:38 +0000 (09:23 +0200)]
journalctl: print QR code only if we are running on an UTF-8 system
Lennart Poettering [Wed, 12 Sep 2012 06:56:57 +0000 (08:56 +0200)]
systemctl: direct the user to list-unit-files from the list-units output
Dave Reisner [Mon, 3 Sep 2012 21:13:18 +0000 (17:13 -0400)]
tmpfiles: support globbing for w option
Break out the write logic into a separate function and simply use it as
a callback to glob_item.
This allows users to consolidate writes to sysfs with multiple similar
pathnames, e.g.
w /sys/class/block/sd[a-z]/queue/read_ahead_kb - - - - 1024
Lennart Poettering [Wed, 12 Sep 2012 06:31:08 +0000 (08:31 +0200)]
test: extend unit-name test a bit
Lennart Poettering [Wed, 12 Sep 2012 06:30:35 +0000 (08:30 +0200)]
login: reshuffle meaning of require_active parameter
Colin Guthrie [Tue, 4 Sep 2012 00:37:28 +0000 (01:37 +0100)]
logind: Avoid unnecesary rewrite of user file when switching sessions of the same user.
Colin Guthrie [Tue, 4 Sep 2012 00:37:27 +0000 (01:37 +0100)]
logind: Ensure the user, seat and session files are updated when the session is closing.
Colin Guthrie [Mon, 3 Sep 2012 22:57:58 +0000 (23:57 +0100)]
logind: Add a two new variables to the user session tracking file.
This counts 'online sessions' in addition to 'active sessions' and 'sessions'.
In this context, an 'online session' covers all session in the 'active' state
in addition to the explicit 'online' state.
This provides an easy machanism to determin all relevant sessions easily
(i.e. those that are not 'closing') and adds new semantics to the sd-login.c
APIs sd_uid_get_sessions() and sd_uid_get_seats() where the require_active
argument can be supplied as a value 2 which only lists sessions which are
'online'.
This functionality should allow client applications to avoid deadlocks where
they only exit when all sessions are complete, such as a the problem where
PulseAudio will not exit until all sessions are gone, but in itself prevents
the session from exiting.
Colin Guthrie [Mon, 3 Sep 2012 22:47:02 +0000 (23:47 +0100)]
logind: Properly list the ACTIVE_SEATS in the user session tracking file.
Prevsiouly the first active seat for a user would never be listed and
any subsequent seats would be concatenated on without any spaces.
Colin Guthrie [Mon, 3 Sep 2012 22:47:01 +0000 (23:47 +0100)]
logind: If all user sessions are in closing state, set the overall status to closing.
PulseAudio for example will keep a client connection open provided
at least one session exists. However, if all sessions are currently
in the process of closing, we should flag that as the overall state
appropriately to better reflect what is happening.
Although this does better reflect the status for any given user, it does
not actually solve the overall problem of PulseAudio still finding some
sessions active and thus not exiting and therefore actually preventing
the session from closing. Future commits will extend sd-login to cope
with this situation.
Colin Guthrie [Mon, 3 Sep 2012 22:47:00 +0000 (23:47 +0100)]
pam: Add session class to the debug log.
Lennart Poettering [Wed, 12 Sep 2012 02:46:38 +0000 (04:46 +0200)]
unit-name: rework unit_name_replace_instance function()
https://bugzilla.redhat.com/show_bug.cgi?id=855863
Lennart Poettering [Tue, 11 Sep 2012 01:03:36 +0000 (03:03 +0200)]
journal: don't set seal flag if we don't have gcrypt built-in
Michael Olbrich [Mon, 3 Sep 2012 13:46:44 +0000 (15:46 +0200)]
journal: don't try to compress without XZ
otherwise the header contains the HEADER_INCOMPATIBLE_COMPRESSED
flag even though the data is not compressed and reading the journal
fails.
Tom Gundersen [Mon, 3 Sep 2012 13:40:37 +0000 (15:40 +0200)]
util: rm_rf_children_dangerous: delete all descendants dangerously
Call rm_rf_children_dangerous() recursively rather than falling back to
rm_rf_children(). This fixes a bug in systemd-tmpfiles.
The problem can easily be reproduced by:
# mount /dev/sda1 /mnt
# mkdir /mnt/test
# echo "D /mnt" > /root/test.conf
# systemd-tmpfiles --remove /root/test.conf
Attempted to remove disk file system, and we can't allow that.
rm_rf(/root/test): Operation not permitted
Reported-by: Lukas Jirkovsky <l.jirkovsky@gmail.com>
Lennart Poettering [Mon, 10 Sep 2012 23:45:27 +0000 (01:45 +0200)]
update TODO
Dave Reisner [Sun, 2 Sep 2012 21:28:30 +0000 (17:28 -0400)]
build-sys: perform autodetection of quota-tools binaries
Use AC_PATH_PROG to try and locate the quotaon and quotacheck binaries,
falling back on hardcoded defaults when they can't be found.
Lennart Poettering [Mon, 10 Sep 2012 23:29:46 +0000 (01:29 +0200)]
condition: add ConditionFileNotEmpty=
https://bugs.freedesktop.org/show_bug.cgi?id=54448
Lennart Poettering [Mon, 10 Sep 2012 23:11:32 +0000 (01:11 +0200)]
when determining unit file list, include invalid unit names in an "invalid" state
Lennart Poettering [Mon, 10 Sep 2012 22:23:05 +0000 (00:23 +0200)]
update TODO
Lennart Poettering [Mon, 10 Sep 2012 20:45:20 +0000 (22:45 +0200)]
update TODO
Lennart Poettering [Mon, 10 Sep 2012 11:20:45 +0000 (13:20 +0200)]
man: document that assignemnts of devices to seats are persistent
Lennart Poettering [Mon, 10 Sep 2012 11:18:39 +0000 (13:18 +0200)]
journald: don't do debug logging by default
Lennart Poettering [Mon, 10 Sep 2012 11:18:22 +0000 (13:18 +0200)]
journald: don't complain if fss key does not exist
Lennart Poettering [Mon, 10 Sep 2012 11:14:56 +0000 (13:14 +0200)]
selinux: close stdin/stdout/stderr before loading selinux policy
Let's make sure libselinux doesn't spew to stderr
Lennart Poettering [Mon, 10 Sep 2012 09:58:00 +0000 (11:58 +0200)]
journald: detect invalid header pointers correctly
Lennart Poettering [Mon, 10 Sep 2012 08:12:10 +0000 (10:12 +0200)]
unit: don't allow units to be gc'ed that still are referenced via UnitRef
Lennart Poettering [Mon, 10 Sep 2012 07:45:55 +0000 (09:45 +0200)]
inhibit: close all fds when invoking inhibited tool
Lennart Poettering [Mon, 10 Sep 2012 07:38:49 +0000 (09:38 +0200)]
dbus: minor coding style fixes
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.
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.
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.
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 .
Lennart Poettering [Fri, 7 Sep 2012 21:40:00 +0000 (23:40 +0200)]
journald: make splitting up of journal files per-user configurable
Lennart Poettering [Fri, 7 Sep 2012 21:20:28 +0000 (23:20 +0200)]
journal: add call to determine current journal file disk usage
Lennart Poettering [Fri, 7 Sep 2012 20:22:15 +0000 (22:22 +0200)]
main: fix syntax of net_prio cgroup controller
Lennart Poettering [Thu, 6 Sep 2012 07:32:51 +0000 (00:32 -0700)]
journald: avoid logging to kmsg in the normal paths
Lennart Poettering [Thu, 6 Sep 2012 06:54:09 +0000 (23:54 -0700)]
localed: system-setup-keyboard is no more on fedora
Lennart Poettering [Thu, 6 Sep 2012 06:51:19 +0000 (23:51 -0700)]
man: document that ExecStart= doesn't understand shell command lines
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
Lennart Poettering [Thu, 6 Sep 2012 00:05:04 +0000 (17:05 -0700)]
systemctl: properly build flags for show_journal_by_unit()
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
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
Lennart Poettering [Wed, 5 Sep 2012 23:23:41 +0000 (16:23 -0700)]
nspawn: handle poweroff/reboot nicely in containers
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.
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.
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.
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.
Lennart Poettering [Wed, 5 Sep 2012 21:39:16 +0000 (14:39 -0700)]
nspawn: generate a new randomized boot ID for each container
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
Lennart Poettering [Wed, 5 Sep 2012 00:05:23 +0000 (17:05 -0700)]
path: fix invalid variable access in path_is_mount_point()
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()
Lennart Poettering [Tue, 4 Sep 2012 23:33:13 +0000 (16:33 -0700)]
nspawn: skip mounts if already mounted
Lennart Poettering [Tue, 4 Sep 2012 23:32:43 +0000 (16:32 -0700)]
nspawn: mount a clean instance of sysfs
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
Lennart Poettering [Tue, 4 Sep 2012 20:39:18 +0000 (13:39 -0700)]
update TODO
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.
Lennart Poettering [Tue, 4 Sep 2012 01:58:18 +0000 (18:58 -0700)]
update TODO -- hackfest edition
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.
Lennart Poettering [Fri, 24 Aug 2012 22:55:22 +0000 (00:55 +0200)]
journalctl: include logs from PID 1 about services in systemctl status
Lennart Poettering [Fri, 24 Aug 2012 22:16:19 +0000 (00:16 +0200)]
readahead: a bit of reformatting
Lennart Poettering [Fri, 24 Aug 2012 22:10:17 +0000 (00:10 +0200)]
util: make path_is_mount_point() recognize bind mounts, too
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.
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
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
Lennart Poettering [Fri, 24 Aug 2012 21:00:13 +0000 (23:00 +0200)]
swap: refuse start/stop of swaps in container
Lennart Poettering [Fri, 24 Aug 2012 20:50:16 +0000 (22:50 +0200)]
shutdown: don't attempt read-only mounts in a container
Lennart Poettering [Fri, 24 Aug 2012 20:43:33 +0000 (22:43 +0200)]
journal: suppress structured messages if they'd go to the console
Lennart Poettering [Fri, 24 Aug 2012 20:21:20 +0000 (22:21 +0200)]
journal: generate structured journal messages for a number of events
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.
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
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.
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
Allin Cottrell [Thu, 23 Aug 2012 23:46:38 +0000 (01:46 +0200)]
journald: add missing includes
Lukas Nykryn [Thu, 23 Aug 2012 10:28:47 +0000 (12:28 +0200)]
sd-journal: return null when mmap_cache_new fails
Lukas Nykryn [Thu, 23 Aug 2012 10:21:55 +0000 (12:21 +0200)]
hashmap: hashmap_contains does not need hashmap_entry
Lukas Nykryn [Mon, 20 Aug 2012 13:15:40 +0000 (15:15 +0200)]
readahead-analyze: don't call fclose on null
Lukas Nykryn [Mon, 20 Aug 2012 12:52:07 +0000 (14:52 +0200)]
core: free word later in parse_proc_cmdline
Lukas Nykryn [Mon, 20 Aug 2012 12:39:08 +0000 (14:39 +0200)]
login: check return of parse_pid and parse_uid
Lukas Nykryn [Mon, 20 Aug 2012 12:33:21 +0000 (14:33 +0200)]
load-fragment: initialize bool invert before use
Lennart Poettering [Thu, 23 Aug 2012 00:46:22 +0000 (02:46 +0200)]
build-sys: prepare release 189
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
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
Lennart Poettering [Wed, 22 Aug 2012 01:43:45 +0000 (03:43 +0200)]
journal: the ratelimiter is part of journald
Lennart Poettering [Wed, 22 Aug 2012 01:42:23 +0000 (03:42 +0200)]
journald: split off native protocol support into its own .c file
Lennart Poettering [Wed, 22 Aug 2012 01:36:29 +0000 (03:36 +0200)]
journald: split console transport stuff into its own file
Lennart Poettering [Wed, 22 Aug 2012 01:32:41 +0000 (03:32 +0200)]
journald: move stream protocol into its own .c file
Lennart Poettering [Wed, 22 Aug 2012 01:24:46 +0000 (03:24 +0200)]
journal: move syslog specific calls out of util.c
Lennart Poettering [Wed, 22 Aug 2012 01:21:03 +0000 (03:21 +0200)]
journald: splitt of syslog protocol support into its own 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
Lennart Poettering [Wed, 22 Aug 2012 00:53:51 +0000 (02:53 +0200)]
journald: write tags also to user journal files