chiark / gitweb /
elogind.git
11 years agoreadahead: fix fd validity check
Michal Schmidt [Mon, 22 Oct 2012 20:07:31 +0000 (22:07 +0200)]
readahead: fix fd validity check

https://bugzilla.redhat.com/show_bug.cgi?id=868603

11 years agoshared: strbuf - add descriprion
Kay Sievers [Mon, 22 Oct 2012 16:21:12 +0000 (18:21 +0200)]
shared: strbuf - add descriprion

11 years agoshared: move sparse-endian.h from journal
Kay Sievers [Mon, 22 Oct 2012 16:08:48 +0000 (18:08 +0200)]
shared: move sparse-endian.h from journal

11 years agobuild-sys: fix distcheck
Kay Sievers [Mon, 22 Oct 2012 15:20:18 +0000 (17:20 +0200)]
build-sys: fix distcheck

11 years agoshared: strbuf - add description
Kay Sievers [Mon, 22 Oct 2012 14:54:14 +0000 (16:54 +0200)]
shared: strbuf - add description

11 years agoudev: use strbuf to store rules strings
Kay Sievers [Mon, 22 Oct 2012 14:28:04 +0000 (16:28 +0200)]
udev: use strbuf to store rules strings

11 years agoshared: strbuf - add string de-duplication facility
Kay Sievers [Mon, 22 Oct 2012 14:27:00 +0000 (16:27 +0200)]
shared: strbuf - add string de-duplication facility

11 years agoupdate .gitignore
Kay Sievers [Mon, 22 Oct 2012 12:33:35 +0000 (14:33 +0200)]
update .gitignore

11 years agoutil: add (x)bsearch_r(), the missing counterpart of qsort_r()
Kay Sievers [Mon, 22 Oct 2012 12:31:46 +0000 (14:31 +0200)]
util: add (x)bsearch_r(), the missing counterpart of qsort_r()

11 years agobash-completion: update journalctl for recently added flags
Dave Reisner [Sun, 21 Oct 2012 15:12:52 +0000 (11:12 -0400)]
bash-completion: update journalctl for recently added flags

Fixes a few minor bugs as well with flags which take arguments but for
which the values can never be known.

11 years agoconfigure.ac: fix typo in fallback value for KILL
Dave Reisner [Sun, 21 Oct 2012 12:33:33 +0000 (08:33 -0400)]
configure.ac: fix typo in fallback value for KILL

11 years agohostnamectl: add more really basic system info to the status output
Lennart Poettering [Sun, 21 Oct 2012 01:35:33 +0000 (03:35 +0200)]
hostnamectl: add more really basic system info to the status output

11 years agoman: add man page for localectl
Lennart Poettering [Sun, 21 Oct 2012 01:35:00 +0000 (03:35 +0200)]
man: add man page for localectl

11 years agojournal: use le64_t instead of uint64_t where this is appropriate
Lennart Poettering [Sat, 20 Oct 2012 15:10:32 +0000 (17:10 +0200)]
journal: use le64_t instead of uint64_t where this is appropriate

11 years agobash-completion: avoid appending space after field competion
Dave Reisner [Sat, 20 Oct 2012 22:36:06 +0000 (18:36 -0400)]
bash-completion: avoid appending space after field competion

Resolves the TODO, and also uses compgen's -S flag to append the
trailing equals, rather than relying on an array-wide parameter
expansion.

Suggested-by: Ran Benita <ran234@gmail.com>
11 years agobash-completion: ensure iterators are locally scoped
Dave Reisner [Sat, 20 Oct 2012 21:54:08 +0000 (17:54 -0400)]
bash-completion: ensure iterators are locally scoped

Avoids leaking the 'i' variable to the user's shell session.

11 years agobash-completion: add completions for hostnamectl
Dave Reisner [Sat, 20 Oct 2012 21:48:11 +0000 (17:48 -0400)]
bash-completion: add completions for hostnamectl

11 years agojournal: link up documentation with the file structure header
Lennart Poettering [Sat, 20 Oct 2012 15:00:57 +0000 (17:00 +0200)]
journal: link up documentation with the file structure header

11 years agoupdate TODO
Lennart Poettering [Sat, 20 Oct 2012 15:00:29 +0000 (17:00 +0200)]
update TODO

11 years agobash-completion: add completions for localectl
Dave Reisner [Sat, 20 Oct 2012 12:13:21 +0000 (08:13 -0400)]
bash-completion: add completions for localectl

11 years agobash-completion: add completions for timedatectl
Dave Reisner [Sat, 20 Oct 2012 12:02:44 +0000 (08:02 -0400)]
bash-completion: add completions for timedatectl

11 years agoshared/install: fix typo in comment
Christian Hesse [Wed, 17 Oct 2012 14:06:51 +0000 (16:06 +0200)]
shared/install: fix typo in comment

11 years agosystemctl: fix return code in chroot
Christian Hesse [Wed, 17 Oct 2012 14:03:49 +0000 (16:03 +0200)]
systemctl: fix return code in chroot

If 'systemctl enable' (and friends) is run inside chroot it always
exits with a bad return code. unit_file_enable() returns the number of
symlink rules that were supposed to be created. So resetting r to 0 and
exiting gracefully should be the correct way.

11 years agomake sure __NR_name_to_handle_at is correctly defined
Michael Olbrich [Thu, 18 Oct 2012 11:55:13 +0000 (13:55 +0200)]
make sure __NR_name_to_handle_at is correctly defined

341 is only valid for x86, so don't use it for other architectures.
Add the correct numbers for ARM and PowerPC while at it.

11 years agorandom-seed: fix error message typo
Umut Tezduyar [Fri, 19 Oct 2012 15:23:41 +0000 (17:23 +0200)]
random-seed: fix error message typo

The file node is /dev/urandom, not /dev/random.

11 years agojournal: add tool to extract coredumps
Zbigniew Jędrzejewski-Szmek [Fri, 19 Oct 2012 10:29:46 +0000 (12:29 +0200)]
journal: add tool to extract coredumps

'systemd-coredumpctl' will list available coredumps:
   PID   UID   GID sig exe
 32452  500  500  11 /home/zbyszek/systemd/build/journalctl
 32666  500  500  11 /usr/lib64/valgrind/memcheck-amd64-linux
...

'systemd-coredumpctl dump PID' will write the coredump
to specified file or stdout.

11 years agokeymap: Tolerate invalid entries in keymaps
Martin Pitt [Fri, 19 Oct 2012 06:03:09 +0000 (08:03 +0200)]
keymap: Tolerate invalid entries in keymaps

Some keymaps apply to a large range of computer models, not all of which have
all of the scan codes in the maps. If a single scan code is invalid, do not
abort but continue with the next entry in the map. Instead just show the error
message for that particular scan code, to help with debugging.

11 years agokeymap: Fix parsing of hex scan codes in tables
Martin Pitt [Fri, 19 Oct 2012 06:01:47 +0000 (08:01 +0200)]
keymap: Fix parsing of hex scan codes in tables

Commit b1f87c76b1 changed sscanf from %i to %u, as scan codes are unsigned
numbers which can be > 0x7FFFFFFF. However, sscanf doesn't accept hexadecimal
numbers for %u. It works fine with %i, so revert this back.

11 years agoREADME.keymap.txt: Drop fdi2rules.py documentation
Martin Pitt [Fri, 19 Oct 2012 05:41:09 +0000 (07:41 +0200)]
README.keymap.txt: Drop fdi2rules.py documentation

This was removed ages ago.

11 years agolocale: add client tool localectl similar to hostnamectl/timedatectl
Lennart Poettering [Fri, 19 Oct 2012 02:55:49 +0000 (04:55 +0200)]
locale: add client tool localectl similar to hostnamectl/timedatectl

11 years agosystemctl: modernization
Lennart Poettering [Fri, 19 Oct 2012 02:53:12 +0000 (04:53 +0200)]
systemctl: modernization

11 years agoutil: change endswith() to return a pointer to the suffix
Lennart Poettering [Fri, 19 Oct 2012 02:52:51 +0000 (04:52 +0200)]
util: change endswith() to return a pointer to the suffix

11 years agoset: introduce strv_sort()
Lennart Poettering [Fri, 19 Oct 2012 02:52:25 +0000 (04:52 +0200)]
set: introduce strv_sort()

11 years agoset: introduce set_get_strv()
Lennart Poettering [Fri, 19 Oct 2012 02:52:14 +0000 (04:52 +0200)]
set: introduce set_get_strv()

11 years agotimedatectl,hostnamectl: rework --help text
Lennart Poettering [Fri, 19 Oct 2012 02:51:53 +0000 (04:51 +0200)]
timedatectl,hostnamectl: rework --help text

11 years agoUpdate TODO
Lennart Poettering [Thu, 18 Oct 2012 22:58:31 +0000 (00:58 +0200)]
Update TODO

11 years agojournald.conf: remove MinSize= settings
Lennart Poettering [Thu, 18 Oct 2012 22:56:42 +0000 (00:56 +0200)]
journald.conf: remove MinSize= settings

There's no point in making this configurable, so let's drop it in order
to simplify configuration a bit.

11 years agosystemctl: remove --follow option
Lennart Poettering [Thu, 18 Oct 2012 22:12:46 +0000 (00:12 +0200)]
systemctl: remove --follow option

Given that "journalctl -u" exists now there's no need to duplicate this
functionality in systemctl, so let's drop this, especially given that it
always felt a bit awkward to overload "-f" to both --force and --follow,
and to have continues output with a status header for this.

        systemctl status -f avahi-daemon

now becomes:

        journalctl -fu avahi-daemon

Which is shorter and a lot less redundant.

11 years agoutil: unify line caching and column caching
Lennart Poettering [Thu, 18 Oct 2012 22:06:47 +0000 (00:06 +0200)]
util: unify line caching and column caching

11 years agoutil: unify usage of on_tty() in util.c
Lennart Poettering [Thu, 18 Oct 2012 21:59:41 +0000 (23:59 +0200)]
util: unify usage of on_tty() in util.c

11 years agoutil: simplify column caching logic
Lennart Poettering [Thu, 18 Oct 2012 21:50:26 +0000 (23:50 +0200)]
util: simplify column caching logic

11 years agoman: fix compilation warning in sd_journal_query_unique example
Zbigniew Jędrzejewski-Szmek [Thu, 18 Oct 2012 21:34:38 +0000 (23:34 +0200)]
man: fix compilation warning in sd_journal_query_unique example

11 years agobash-completion: complete values for journal fields
Dave Reisner [Thu, 18 Oct 2012 21:38:05 +0000 (17:38 -0400)]
bash-completion: complete values for journal fields

This adds completion for the new -F, --field flag, but also uses this
option directly from journalctl to complete values for fields which
might be used as filters.

11 years agojournalctl: unify ellipsation handling between journalctl and systemctl
Lennart Poettering [Thu, 18 Oct 2012 21:34:37 +0000 (23:34 +0200)]
journalctl: unify ellipsation handling between journalctl and systemctl

11 years agojournalctl: don't ellipsize unless on a tty
Lennart Poettering [Thu, 18 Oct 2012 21:22:56 +0000 (23:22 +0200)]
journalctl: don't ellipsize unless on a tty

11 years agojournalctl: honour -n if -F is used
Lennart Poettering [Thu, 18 Oct 2012 20:55:12 +0000 (22:55 +0200)]
journalctl: honour -n if -F is used

11 years agoman: ensure example of sd_journal_query_unique() compiles cleanly
Lennart Poettering [Thu, 18 Oct 2012 20:54:58 +0000 (22:54 +0200)]
man: ensure example of sd_journal_query_unique() compiles cleanly

11 years agojournalctl.xml: fix shortopt for --field
Dave Reisner [Thu, 18 Oct 2012 20:56:03 +0000 (16:56 -0400)]
journalctl.xml: fix shortopt for --field

11 years agojournal: fix symbol versioning file
Lennart Poettering [Thu, 18 Oct 2012 20:38:56 +0000 (22:38 +0200)]
journal: fix symbol versioning file

11 years agojournal: typo fix
Lennart Poettering [Thu, 18 Oct 2012 20:36:50 +0000 (22:36 +0200)]
journal: typo fix

11 years agojournal: implement filtering in browse.html
Lennart Poettering [Thu, 18 Oct 2012 20:33:39 +0000 (22:33 +0200)]
journal: implement filtering in browse.html

11 years agojournal: add high-level match option to filter by current boot id
Lennart Poettering [Thu, 18 Oct 2012 20:31:58 +0000 (22:31 +0200)]
journal: add high-level match option to filter by current boot id

11 years agojournal: add ability to list unique fields to gatewayd
Lennart Poettering [Thu, 18 Oct 2012 20:31:27 +0000 (22:31 +0200)]
journal: add ability to list unique fields to gatewayd

11 years agojournal: validate field name in sd_journal_query_unique()
Lennart Poettering [Thu, 18 Oct 2012 20:30:27 +0000 (22:30 +0200)]
journal: validate field name in sd_journal_query_unique()

11 years agosystemd: use structured logging for unit changes
Zbigniew Jędrzejewski-Szmek [Wed, 10 Oct 2012 22:11:24 +0000 (22:11 +0000)]
systemd: use structured logging for unit changes

Information which unit a log entry pertains to enables systemctl
status to display more log messages.

11 years agocore/execute: use cleanup_strv_free
Zbigniew Jędrzejewski-Szmek [Thu, 18 Oct 2012 12:16:59 +0000 (14:16 +0200)]
core/execute: use cleanup_strv_free

11 years agolibsystemd-journal: export sd_journal_restart_unique
Zbigniew Jędrzejewski-Szmek [Thu, 18 Oct 2012 19:18:20 +0000 (19:18 +0000)]
libsystemd-journal: export sd_journal_restart_unique

11 years agoman: add missing man page
Lennart Poettering [Thu, 18 Oct 2012 16:48:45 +0000 (18:48 +0200)]
man: add missing man page

11 years agojournal: suggest rotation when fields are not indexed
Lennart Poettering [Thu, 18 Oct 2012 02:12:25 +0000 (04:12 +0200)]
journal: suggest rotation when fields are not indexed

11 years agojournalctl: move access check before the first access to the journal files
Lennart Poettering [Thu, 18 Oct 2012 01:34:43 +0000 (03:34 +0200)]
journalctl: move access check before the first access to the journal files

11 years agoupdate TODO
Lennart Poettering [Thu, 18 Oct 2012 01:34:37 +0000 (03:34 +0200)]
update TODO

11 years agojournalctl: implement quering field values with new -F switch
Lennart Poettering [Thu, 18 Oct 2012 01:33:44 +0000 (03:33 +0200)]
journalctl: implement quering field values with new -F switch

Example:

        journalctl -F _SYSTEMD_UNIT

will list all units that ever logged to the journal.

11 years agojournal: add ability to list values a specified field can take in all entries of...
Lennart Poettering [Thu, 18 Oct 2012 01:29:19 +0000 (03:29 +0200)]
journal: add ability to list values a specified field can take in all entries of the journal

The new 'unique' API allows listing all unique field values that a field
specified by a field name can take in all entries of the journal. This
allows answering queries such as "What units logged to the journal?",
"What hosts have logged into the journal?", "Which boot IDs have logged
into the journal?".

Ultimately this allows implementation of tools similar to lastlog based
on journal data.

Note that listing these field values will not work for journal files
created with older journald, as the field values are not indexed in
older files.

11 years agounits: rework systemd-exit.service to terminate systemd via signal rather than bus
Lennart Poettering [Wed, 17 Oct 2012 23:20:03 +0000 (01:20 +0200)]
units: rework systemd-exit.service to terminate systemd via signal rather than bus

This should make session termination more reliable, as D-Bus doesn't
have to be around anymore for this to succeed.

11 years agomanager: connect SIGRTMIN+24 to terminating --user instances
Lennart Poettering [Wed, 17 Oct 2012 23:19:35 +0000 (01:19 +0200)]
manager: connect SIGRTMIN+24 to terminating --user instances

11 years agoservice: when invoking service processes in --user mode set MANAGERPID to PID of...
Lennart Poettering [Wed, 17 Oct 2012 23:18:50 +0000 (01:18 +0200)]
service: when invoking service processes in --user mode set MANAGERPID to PID of systemd

11 years agotimedatectl: rename --fix-system to --adjust-system-clock
Lennart Poettering [Wed, 17 Oct 2012 20:52:21 +0000 (22:52 +0200)]
timedatectl: rename --fix-system to --adjust-system-clock

Quite long to read but hopefully less misleading.

11 years agoupdate TODO
Lennart Poettering [Wed, 17 Oct 2012 19:51:04 +0000 (21:51 +0200)]
update TODO

11 years agotimedatectl: ensure n_zones is initialized
Dave Reisner [Wed, 17 Oct 2012 19:44:59 +0000 (15:44 -0400)]
timedatectl: ensure n_zones is initialized

11 years agotimedatectl: properly initialize struct before decoding bus messages
Lennart Poettering [Wed, 17 Oct 2012 19:24:36 +0000 (21:24 +0200)]
timedatectl: properly initialize struct before decoding bus messages

11 years agohostnamed: allow UTF8 chars in pretty hostname again
Lennart Poettering [Wed, 17 Oct 2012 19:24:14 +0000 (21:24 +0200)]
hostnamed: allow UTF8 chars in pretty hostname again

11 years agojournal: fix potential integer overflow
Lennart Poettering [Wed, 17 Oct 2012 19:23:52 +0000 (21:23 +0200)]
journal: fix potential integer overflow

11 years agohostname: add new hostnamectl tool as text client for hostnamed
Lennart Poettering [Wed, 17 Oct 2012 19:23:30 +0000 (21:23 +0200)]
hostname: add new hostnamectl tool as text client for hostnamed

11 years agodocs: install README files into /var/log and 7etc/rc.d/init.d
Lennart Poettering [Wed, 17 Oct 2012 18:03:21 +0000 (20:03 +0200)]
docs: install README files into /var/log and 7etc/rc.d/init.d

On systemd systems seasoned admins might be surprised to see that the
init scripts and log files are gone. To ease the transition let's place
some README files there, that hopefully help clearing up the situation.

11 years agologinctl: show pager also for status command
Lennart Poettering [Wed, 17 Oct 2012 01:15:16 +0000 (03:15 +0200)]
loginctl: show pager also for status command

11 years agotimedatectl: introduce new command line client for timedated
Lennart Poettering [Wed, 17 Oct 2012 00:50:09 +0000 (02:50 +0200)]
timedatectl: introduce new command line client for timedated

Much like logind has a client in loginctl, and journald in journalctl
introduce timedatectl, to change the system time (incl. RTC), timezones
and related settings.

11 years agoProperly handle device aliases used as dependencies
Eelco Dolstra [Wed, 10 Oct 2012 20:43:10 +0000 (16:43 -0400)]
Properly handle device aliases used as dependencies

If a device unit has aliases defined in udev rules, and there are
other units that depend on that alias, as in

  BindTo=sys-subsystem-net-devices-eth0.device

then systemd will fail the start the alias, and any dependent units
will time out.  See

  https://bugs.freedesktop.org/show_bug.cgi?id=52580

This is because unit_add_name() in device_add_escaped_name() will
return EEXIST.

The solution taken here is to call device_update_unit() on the alias
name.  Thus if a unit with the alias name already exists, we reuse it;
otherwise a new unit is created.  Creating multiple units for a single
device is perhaps suboptimal, but it's consistent with the treatment
of udev symlinks in device_process_new_device().

11 years agojournalctl: properly track rotated journals in follow mode
Lennart Poettering [Tue, 16 Oct 2012 21:00:04 +0000 (23:00 +0200)]
journalctl: properly track rotated journals in follow mode

11 years agosd-journal: fix bad memory access
Lennart Poettering [Tue, 16 Oct 2012 20:59:28 +0000 (22:59 +0200)]
sd-journal: fix bad memory access

11 years agoupdate TODO
Lennart Poettering [Tue, 16 Oct 2012 20:59:14 +0000 (22:59 +0200)]
update TODO

11 years agojournal: implement time-based rotation/vacuuming
Lennart Poettering [Tue, 16 Oct 2012 20:58:07 +0000 (22:58 +0200)]
journal: implement time-based rotation/vacuuming

This also enables time-based rotation (but not vacuuming) after 1month,
so that not more one month of journal is lost at a time per vacuuming.

11 years agojournal: sort data items of entries by offset
Lennart Poettering [Tue, 16 Oct 2012 19:40:48 +0000 (21:40 +0200)]
journal: sort data items of entries by offset

This should slightly optimize disk access patterns on rotating disks for
simple readers.

11 years agomount: don't try to initialize extra deps for mount units before initializing their...
Lennart Poettering [Tue, 16 Oct 2012 17:50:26 +0000 (19:50 +0200)]
mount: don't try to initialize extra deps for mount units before initializing their basic fields

Under some circumstances this could lead to a segfault since we we
half-initialized a mount unit, then tried to hook it into the network of
things and while doing that recursively ended up looking at our
half-initialized mount unit again assuming it was fully initialized.

11 years agologind: only release logind session from the PAM module if the same module instance...
Lennart Poettering [Tue, 16 Oct 2012 17:21:21 +0000 (19:21 +0200)]
logind: only release logind session from the PAM module if the same module instance actually created it

11 years agoid128: introduce new SD_ID128_CONST_STR() macro
Lennart Poettering [Tue, 16 Oct 2012 15:02:51 +0000 (17:02 +0200)]
id128: introduce new SD_ID128_CONST_STR() macro

11 years agojournal: don't export MESSAGE_ID() macro
Lennart Poettering [Tue, 16 Oct 2012 14:26:41 +0000 (16:26 +0200)]
journal: don't export MESSAGE_ID() macro

If it is exported it would need to be prefixed, but since we need it
exclusively internally so far, simply move it to an internal header.

11 years agoservice: Heuristically determine whether SysV scripts support reload
Michael Stapelberg [Tue, 16 Oct 2012 08:14:03 +0000 (10:14 +0200)]
service: Heuristically determine whether SysV scripts support reload

This commit checks for a usage line which contains [{|]reload[|}"] (to
not errnously match force-reload).

Heuristics like this suck, but it solves a real problem and there
appears to be no better way...

11 years agojournal: Set the last_unused pointer correctly when attaching an unused window
Colin Guthrie [Tue, 16 Oct 2012 11:03:37 +0000 (12:03 +0100)]
journal: Set the last_unused pointer correctly when attaching an unused window

It seems the previous code was copy/pasted from context_detach_window()
but not updated.

11 years agojournal: Properly track the number of allocated windows.
Colin Guthrie [Tue, 16 Oct 2012 11:03:36 +0000 (12:03 +0100)]
journal: Properly track the number of allocated windows.

Checks were already in place to make sure that the number of
windows was limited to 64, but the count was never incremented
or decremented.

11 years agosystemctl: append .service when unit does not have valid suffix
Lukas Nykryn [Tue, 16 Oct 2012 09:01:29 +0000 (11:01 +0200)]
systemctl: append .service when unit does not have valid suffix

systemctl status a and systemctl status a.service lead to same output but
systemctl status a.b and systemctl status a.b.service do not.

11 years agojournalctl: add --unit=/-u to match by unit name
Lennart Poettering [Tue, 16 Oct 2012 00:59:27 +0000 (02:59 +0200)]
journalctl: add --unit=/-u to match by unit name

This applies unit_name_mangle() to the specified unit names and hence
can handle weird characters nicely and will add unit suffixes as
necessary.

11 years agoconfigure.ac: Add a --without-python option.
Wulf C. Krueger [Sat, 6 Oct 2012 09:37:44 +0000 (11:37 +0200)]
configure.ac: Add a --without-python option.

Being able to be explicit about Python support (in addition to the
default of auto-detecting it) and acting upon the result, specifying
it as an option gains us more control about both dependencies and
the resulting build.

Furthermore, relying purely on auto-detection can lead to problems for
source-based distros. E. g. systemd being built before *both* 32-bit &
64-bit ABIs are installed will lead to build failures as systemd's
build system will pick up either 32-/64-bit Python, conclude both are
available and fail if that's not the case.

11 years agocore/swap.c: Do not add Before=swap.target to swap units.
Thomas Bächler [Fri, 5 Oct 2012 23:11:53 +0000 (01:11 +0200)]
core/swap.c: Do not add Before=swap.target to swap units.

The fstab generator adds Before=swap.target by default, and when creating
a custom .swap unit, you can also add Before=swap.target to the unit.

However, it is impossible to not have this ordering dependency right now.
Virtually all existing setups likely use the fstab generator, so this
change is unlikely to break anything.

11 years agocore: Refuse to run a user instance when the system hasn't been booted with systemd.
Thomas Bächler [Fri, 5 Oct 2012 23:11:52 +0000 (01:11 +0200)]
core: Refuse to run a user instance when the system hasn't been booted with systemd.

Running as a user instance won't work at all if systemd isn't running as system
manager, so refuse to start in that case.

11 years agoselinux: selabel_lookup_raw can return ENOENT and be a non failure mode.
Daniel J Walsh [Thu, 11 Oct 2012 21:08:47 +0000 (17:08 -0400)]
selinux: selabel_lookup_raw can return ENOENT and be a non failure mode.

11 years agoSELinux patch still broken, in that we are not checking the correct source context.
Daniel J Walsh [Thu, 11 Oct 2012 21:06:46 +0000 (17:06 -0400)]
SELinux patch still broken, in that we are not checking the correct source context.

This patch does the dbus calls correctly.

11 years agocore: allow Type=oneshot services to have ExecReload
Mantas Mikulėnas [Wed, 10 Oct 2012 17:18:42 +0000 (20:18 +0300)]
core: allow Type=oneshot services to have ExecReload

Use cases:

 * iptables.service – atomically reload rules without having to flush
   them beforehand (which may leave the system insecure if reload fails)

 * rpc-nfsd.service – reexport filesystems after /etc/exports update
   without completely stopping and restarting nfsd

(In both cases, the actual service is provided by a kernel module and
does not have any associated user-space processes, thus Type=oneshot.)

11 years agobuild-sys: check for name_to_handle_at declaration instead of its definition
Michael Olbrich [Tue, 9 Oct 2012 12:58:51 +0000 (14:58 +0200)]
build-sys: check for name_to_handle_at declaration instead of its definition

AC_CHECK_FUNCS may be successful, even though name_to_handle_at and
'struct file_handle'  are not available.

11 years agoman: Fix typo in udevadm documentation
Ferenc Wágner [Mon, 15 Oct 2012 17:38:21 +0000 (19:38 +0200)]
man: Fix typo in udevadm documentation

11 years agojournalctl: harmonise in-stream comments
Lennart Poettering [Mon, 15 Oct 2012 23:09:09 +0000 (01:09 +0200)]
journalctl: harmonise in-stream comments

From now on, always use ANSI-SQL-style comments in log streams, i.e.
prefix with --. We also suffix things with this, just to be nice...