chiark / gitweb /
elogind.git
7 years agologind: introduce a state for session, being one of online, active, closing
Lennart Poettering [Thu, 21 Jun 2012 14:14:53 +0000 (16:14 +0200)]
logind: introduce a state for session, being one of online, active, closing

online = logged in
active = logged in and session is in the fg
closing = nominally logged out but some left-over processes still around

Related to:

https://bugzilla.gnome.org/show_bug.cgi?id=677556

7 years agologind: expose CanGraphical and CanTTY properties on seat objects
Lennart Poettering [Thu, 21 Jun 2012 11:48:01 +0000 (13:48 +0200)]
logind: expose CanGraphical and CanTTY properties on seat objects

Since we boot so fast now that gdm might get started before the
graphics drivers are properly loaded and probed we might end up
announcing seat0 to gdm before it has graphics capabilities. Which will
cause gdm/X11 cause to fail later on.

To fix this race, let's expose CanGraphical and CanTTY fields on all
seats, which clarify whether a seat is suitable for gdm resp, suitable
for text logins. gdm then needs to watch CanGraphical and spawn X11 on
it only if it is true.

This way:

USB graphics seats will expose CanGraphical=yes, CanTTY=no

Machines with no graphics drivers at all, but a text console:
CanGraphical=no, CanTTY=yes

Machines with CONFIG_VT turned off: CanGraphical=yes, CanTTY=no

And the most important case: seat0 where the graphics driver has not
been probed yet boot up with CanGraphical=no, CanTTY=yes first, which
then changes to CanGraphical=yes as soon as the probing is complete.

7 years agoupdate TODO
Lennart Poettering [Wed, 20 Jun 2012 14:03:57 +0000 (16:03 +0200)]
update TODO

7 years agoupdate TODO
Lennart Poettering [Wed, 20 Jun 2012 12:31:00 +0000 (14:31 +0200)]
update TODO

7 years agotmpfiles: exclude the first level directories in /run/user from automatic clean up
Lennart Poettering [Wed, 20 Jun 2012 07:05:50 +0000 (09:05 +0200)]
tmpfiles: exclude the first level directories in /run/user from automatic clean up

It's logind's job to maintain those user dirs, so avoid automatic clean
up for them. However, we do cover everything within them.

7 years agoanalyze: Python 3 compatibility
Shawn Landden [Thu, 14 Jun 2012 22:08:19 +0000 (15:08 -0700)]
analyze: Python 3 compatibility

Plot verb doesn't currently work b/c Cairo bug sending to stdout in python 3.

7 years agologin: initialize XDG_RUNTIME_DIR as /run/user/$UID instead of /run/user/$USER
Lennart Poettering [Tue, 19 Jun 2012 15:25:28 +0000 (17:25 +0200)]
login: initialize XDG_RUNTIME_DIR as /run/user/$UID instead of /run/user/$USER

The sssd folks would like to place the kerberos credential cache in
XDG_RUNTIME_DIR, but need to do that in the PAM auth hooks, before
pam_systemd is run as part of the PAM session setup. Hence, in order to
make this easy for them: avoid usage of usernames, and use user IDs
instead thus making an additional NSS lookup unnecessary in the kerberos
bits, but still have the directory well-defined so that the kerberos
bits can determine it before pam_systemd is run.

7 years agovconsole-setup: enable utf-8 mode explicitly
Tom Gundersen [Sun, 10 Jun 2012 18:37:14 +0000 (20:37 +0200)]
vconsole-setup: enable utf-8 mode explicitly

Rather than assuming the console is in utf-8 mode if nothing else is
specified, be a bit more robust and enable it explicitly.

This fixes a regression compared with Arch's initscripts when not
using a framebuffer as the old VGA console would not be in utf-8
mode by default.

Furthermore, this would allow vconsole-setup to be used after boot
to change the vconsole into utf-8 mode in case it has been set to
non-utf-8 mode for whatever reason. I.e, the following would leave
the console in utf-8 mode as expected:

 # export LANG=en_US.ISO-8859-1
 # /usr/lib/systemd/systemd-vconsole-setup
 # export LANG=en_US.UTF-8
 # /usr/lib/systemd/systemd-vconsole-setup

Reported-by: Xyne <xyne@archlinx.ca>
Reported-by: Thomas Bächler <thomas@archlinux.org>
Cc: Dave Reisner <dreisner@archlinux.org>
7 years agosystemd: return error when asked to stop unknown unit
Michal Sekletar [Tue, 19 Jun 2012 08:00:54 +0000 (10:00 +0200)]
systemd: return error when asked to stop unknown unit

Command systemctl stop foo.service, will print error message, when
foo.service is unknown to systemd, i.e. there is no unit file loaded for
this service.
https://bugzilla.redhat.com/show_bug.cgi?id=732874

7 years agolibudev: clarify that udev_monitor_receive_device() is non-blocking
Kay Sievers [Mon, 18 Jun 2012 13:45:01 +0000 (15:45 +0200)]
libudev: clarify that udev_monitor_receive_device() is non-blocking

Based on a patch from: Sam Thursfield <ssssam@gmail.com>
https://bugs.freedesktop.org/show_bug.cgi?id=51202

7 years agojournal: fix monotonic seeking
Lennart Poettering [Sat, 9 Jun 2012 13:20:42 +0000 (15:20 +0200)]
journal: fix monotonic seeking

7 years agojournal: rotate on SIGUSR2
Lennart Poettering [Sat, 9 Jun 2012 13:04:14 +0000 (15:04 +0200)]
journal: rotate on SIGUSR2

7 years agojournal: fix SD_JOURNAL_SYSTEM_ONLY flag
Lennart Poettering [Sat, 9 Jun 2012 13:03:22 +0000 (15:03 +0200)]
journal: fix SD_JOURNAL_SYSTEM_ONLY flag

7 years agojournal: expose and make use of cutoff times of journal
Lennart Poettering [Sat, 9 Jun 2012 08:32:38 +0000 (10:32 +0200)]
journal: expose and make use of cutoff times of journal

This helps explaining when the log output of "systemctl status" is
incomplete because the logs got rotated since the service was started.

7 years agojournal: correct list link up on hash collisions
Lennart Poettering [Sat, 9 Jun 2012 08:30:44 +0000 (10:30 +0200)]
journal: correct list link up on hash collisions

7 years agojournal: add basic object definition for signatures
Lennart Poettering [Tue, 5 Jun 2012 18:45:54 +0000 (20:45 +0200)]
journal: add basic object definition for signatures

7 years agojournal: replace arena offset by header size
Lennart Poettering [Tue, 5 Jun 2012 18:32:55 +0000 (20:32 +0200)]
journal: replace arena offset by header size

7 years agologind: more robust handling of VT-less systems
Michal Schmidt [Fri, 15 Jun 2012 20:22:24 +0000 (22:22 +0200)]
logind: more robust handling of VT-less systems

Restore the check that was removed in commit 74afee9c. Its removal
caused a regression on some s390x systems where for whatever reason the
device node /dev/tty0 exists and makes the preceding access() check
pass.

7 years agoservice: timeout for oneshot services
Lukas Nykryn [Thu, 14 Jun 2012 15:07:07 +0000 (17:07 +0200)]
service: timeout for oneshot services

Add possibility to specify timeout for oneshot services.

[ https://bugzilla.redhat.com/show_bug.cgi?id=761656
  Added minor fixups. -- michich ]

7 years agosystemctl: clearer error message for missing install information
Michal Schmidt [Thu, 14 Jun 2012 21:16:07 +0000 (23:16 +0200)]
systemctl: clearer error message for missing install information

Some users found it difficult to understand what systemctl was telling
them.
Instead of "install information" talk about "[Install] section", which
is more likely to ring a bell. And suggest that it is intentional, so
that users do not attempt to "correct" the unit files.

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

7 years agotmpfiles: create char devices with correct SELinux context
Michal Schmidt [Thu, 14 Jun 2012 14:01:19 +0000 (16:01 +0200)]
tmpfiles: create char devices with correct SELinux context

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

7 years agounit-name: introduce unit_dbus_path_from_name()
Michal Schmidt [Wed, 13 Jun 2012 16:22:08 +0000 (18:22 +0200)]
unit-name: introduce unit_dbus_path_from_name()

Use the same function in core and in systemctl.
get_unit_path() in systemctl becomes unnecessary.

7 years agosystemctl: warn about all active triggers, not just sockets
Michal Schmidt [Wed, 13 Jun 2012 16:27:41 +0000 (18:27 +0200)]
systemctl: warn about all active triggers, not just sockets

7 years agosystemctl: fix iteration in check_listening_sockets()
Michal Schmidt [Wed, 13 Jun 2012 15:47:51 +0000 (17:47 +0200)]
systemctl: fix iteration in check_listening_sockets()

7 years agosystemctl: remove is_socket_listening
Michal Schmidt [Wed, 13 Jun 2012 15:29:11 +0000 (17:29 +0200)]
systemctl: remove is_socket_listening

We can use the functionality of check_unit(). Factor out
check_one_unit().

7 years agosystemctl: style fixes for the previous patch
Michal Schmidt [Wed, 13 Jun 2012 13:52:27 +0000 (15:52 +0200)]
systemctl: style fixes for the previous patch

Use the usual indentation, bracketing style, and no assignments in ifs.
Since check_listening_sockets provides just optional hints for the user,
don't pass its DBusErrors to the caller.

7 years agosystemctl will print warning when stopping unit
Michal Sekletar [Wed, 13 Jun 2012 12:14:13 +0000 (14:14 +0200)]
systemctl will print warning when stopping unit

systemctl now prints warning and list of sockets in listenning state which can
trigger start of service which is about to be stopped

7 years agoman: fix 'sysytemd' typos
Michal Schmidt [Tue, 12 Jun 2012 22:08:46 +0000 (00:08 +0200)]
man: fix 'sysytemd' typos

7 years agojournal-file: fix mmap leak
Michal Schmidt [Tue, 12 Jun 2012 14:45:09 +0000 (16:45 +0200)]
journal-file: fix mmap leak

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

7 years agologind: fix check for multiple sessions
Michal Schmidt [Tue, 12 Jun 2012 07:31:43 +0000 (09:31 +0200)]
logind: fix check for multiple sessions

The "$action-multiple-sessions" polkit actions are defined as
"$action while other users are logged in". To me this implies that the
following sessions should not count:
 - greeter sessions
 - user sessions belonging to the same user as the one who's asking

Not sure how to treat class SESSION_LOCK_SCREEN. I never have these.
I just ignore every class that's not SESSION_USER.

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

7 years agoudev: support "udevadm info /dev/sda; udevadm info /sys/class/block/sda"
Kay Sievers [Sun, 10 Jun 2012 20:53:07 +0000 (22:53 +0200)]
udev: support "udevadm info /dev/sda; udevadm info /sys/class/block/sda"

7 years agotmpfiles: fix error message
Kay Sievers [Sun, 10 Jun 2012 17:31:39 +0000 (19:31 +0200)]
tmpfiles: fix error message

7 years agotmpfiles: print error if basename lookup fails; document it in manpage
Kay Sievers [Sun, 10 Jun 2012 17:21:50 +0000 (19:21 +0200)]
tmpfiles: print error if basename lookup fails; document it in manpage

7 years agotmpfiles: allow to specify basename only: systemd-tmpfiles <program.conf>
Dave Reisner [Sat, 9 Jun 2012 02:31:19 +0000 (22:31 -0400)]
tmpfiles: allow to specify basename only: systemd-tmpfiles <program.conf>

Allow passing of basename only, instead of the absolute path; letting
systemd-tmpfiles perform a path lookup for the proper fragment path in
the config directories.

This allows distributions to call: systemd-tmpfiles <program.conf> on
upgrade of a package, with respecting the possibly overriden (or even
masked) tmpfile.

7 years agoman: replace tabs with spaces
Kay Sievers [Sun, 10 Jun 2012 16:32:11 +0000 (18:32 +0200)]
man: replace tabs with spaces

7 years agoupdate .gitignore
Kay Sievers [Sun, 10 Jun 2012 16:28:53 +0000 (18:28 +0200)]
update .gitignore

7 years agoman: systemd-tmpfiles - document proper config-file-stack order
Kay Sievers [Sun, 10 Jun 2012 16:26:11 +0000 (18:26 +0200)]
man: systemd-tmpfiles - document proper config-file-stack order

7 years agoarch: drop sysvcompat support
Tom Gundersen [Fri, 8 Jun 2012 23:08:37 +0000 (01:08 +0200)]
arch: drop sysvcompat support

Our downstream generator takes care of all the sysvcompat support we need.

7 years agoudev: always use $(rootprefix)/lib/udev for libexecdir
Kay Sievers [Sun, 10 Jun 2012 15:23:43 +0000 (17:23 +0200)]
udev: always use $(rootprefix)/lib/udev for libexecdir

On Sat, Jun 9, 2012 at 12:46 AM, Malte Starostik <lists@malte.homeip.net> wrote:
> From: Malte Starostik <m-starostik@versanet.de>
>
> Rules get installed in $(libexecdir)/udev/, so are keymaps.  Helper
> binaries go to $(rootprefix)/lib/udev though.  Problem is, in the code,
> both are referenced via UDEVLIBEXECDIR which is defined to the former
> location.  Result: systemd-udev can't find e.g. the keymap binary to
> apply keymaps.

7 years agosystemd-debug-shell: add to POTFILES.skip
Kay Sievers [Thu, 7 Jun 2012 17:34:13 +0000 (19:34 +0200)]
systemd-debug-shell: add to POTFILES.skip

7 years agodelete plymouth units; moved to plymouth
Kay Sievers [Thu, 7 Jun 2012 17:27:17 +0000 (19:27 +0200)]
delete plymouth units; moved to plymouth

7 years agounits: add systemd-debug-shell.service
Michal Schmidt [Thu, 7 Jun 2012 14:03:33 +0000 (16:03 +0200)]
units: add systemd-debug-shell.service

If enabled, the service provides a root shell from an early boot. It also
remains active late into shutdown. It is useful for debugging startup and
shutdown problems.

This is the unit referenced in
http://freedesktop.org/wiki/Software/systemd/Debugging#early_debug_shell

7 years agoudev: systemd-udev-settle.service fix After=
Kay Sievers [Wed, 6 Jun 2012 12:30:16 +0000 (14:30 +0200)]
udev: systemd-udev-settle.service fix After=

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

7 years agounits: avoid redundant VT clearing by agetty
Michal Schmidt [Wed, 6 Jun 2012 09:26:30 +0000 (11:26 +0200)]
units: avoid redundant VT clearing by agetty

TTYVTDisallocate=yes already clears the VT. agetty does not need to do
it again. Run it with --noclear.

Felix Miata found the double clearing confusing in this bugreport:
https://bugzilla.redhat.com/show_bug.cgi?id=828007
Add a comment explaining what clears the VT.

7 years agoreadahead: Add tool to analyze the contents of the pack file. v3.
Auke Kok [Tue, 5 Jun 2012 20:32:20 +0000 (13:32 -0700)]
readahead: Add tool to analyze the contents of the pack file. v3.

This patch adds code to compile 'systemd-readahead-analyze' and install
it into $bindir.

Use this program to parse the contents of the readahead pack file, or
an arbitrary pack file and display which files are listed in it, and
how much of the files are requested to be readahead.

This code is not new - it's partially taken from sreadahead (formerly
maintained by Arjan van der Ven and me, and was originally written
by me), and adapted with the right bits to parse the systemd
readahead pack files, which are slightly different in format.

v2 adds a common READAHEAD_PACK_FILE_VERSION used in all the code
to provide a quick way to assure all these programs are always
synchronized. v3 fixes the integer math.

7 years agoudev: remove remaining selinux labeling for file in /run
Kay Sievers [Tue, 5 Jun 2012 15:31:32 +0000 (17:31 +0200)]
udev: remove remaining selinux labeling for file in /run

7 years agoudev: kernel cmdline - accept rd.* parameters
Kay Sievers [Mon, 4 Jun 2012 20:46:32 +0000 (22:46 +0200)]
udev: kernel cmdline - accept rd.* parameters

7 years agosilence gcc warning on 32 bit
Kay Sievers [Mon, 4 Jun 2012 20:27:39 +0000 (22:27 +0200)]
silence gcc warning on 32 bit

7 years agobuild-sys: release 185 v185
Kay Sievers [Mon, 4 Jun 2012 18:15:16 +0000 (20:15 +0200)]
build-sys: release 185

7 years agosystemctl: rename "man" to "help"
Kay Sievers [Mon, 4 Jun 2012 17:48:32 +0000 (19:48 +0200)]
systemctl: rename "man" to "help"

7 years agoudev: reset /proc/self/oom_score_adj in worker processes
Kay Sievers [Mon, 4 Jun 2012 16:10:50 +0000 (18:10 +0200)]
udev: reset /proc/self/oom_score_adj in worker processes

Only the main daemon process should be excluded from OOM handling,
not the worker processes or their child processes.

7 years agoremove support for deprecated /proc/self/oom_adj
Kay Sievers [Mon, 4 Jun 2012 14:41:10 +0000 (16:41 +0200)]
remove support for deprecated /proc/self/oom_adj

7 years agoudev: limit minimum worker count to 16
Kay Sievers [Mon, 4 Jun 2012 14:40:31 +0000 (16:40 +0200)]
udev: limit minimum worker count to 16

7 years agoupdate TODO
Kay Sievers [Mon, 4 Jun 2012 14:40:08 +0000 (16:40 +0200)]
update TODO

7 years agoudev: lower the starting children_max -> drop the minimum required RAM from 23mb...
Lauri Kasanen [Sun, 3 Jun 2012 15:11:58 +0000 (18:11 +0300)]
udev: lower the starting children_max -> drop the minimum required RAM from 23mb to 5mb

Udev was the limiting factor for us on low-RAM systems.
Given an average RSS of 180kb, 128 workers would require ~23mb of RAM.

Now, please consider what happens when there is only, say, 15mb free.
Udev protects itself from OOM, and the kernel can do nothing but panic.

28 workers * 0.18mb = ~5mb. This change should not affect more powerful
systems much, given that they still get the addition from the amount of RAM.

7 years agofstab-generator: avoid mangling of mount source string
Kay Sievers [Mon, 4 Jun 2012 13:21:05 +0000 (15:21 +0200)]
fstab-generator: avoid mangling of mount source string

This is a valid source entry in /etc/fstab:
  //192.168.6.10/data /data cifs noperm,auto

On Mon, Jun 4, 2012 at 2:04 PM, Dave Reisner <d@falconindy.com> wrote:
> On Mon, Jun 04, 2012 at 12:57:47PM +0200, Kay Sievers wrote:
>>
>> Changed it to use:
>>   path_is_absolute()
>> instead of:
>>   is_path(),
>> so that we still sanitize the input we might match against.
>>
>> Let me know, if you think that could still cause any problems?

> Yes, this will still break CIFS shares.

7 years agounit-name: never create a unit name with a leading '.'
Kay Sievers [Mon, 4 Jun 2012 12:57:24 +0000 (14:57 +0200)]
unit-name: never create a unit name with a leading '.'

Supposed to prevent creating unit files like:
  ├── dev-sda1.device.wants
  │   └── .dot.mount -> /run/systemd/generator/.dot.mount
  ├── .dot.mount
from:
  # cat /etc/fstab
  /dev/sda1    /.dot           vfat ro           1 3

which we later skip reading because of the leading '.'.

7 years agologind: punt duplicate definition of InhibitWhat
Malte Starostik [Sun, 3 Jun 2012 19:39:21 +0000 (21:39 +0200)]
logind: punt duplicate definition of InhibitWhat

Trivial fix for:
  src/login/logind-inhibit.h:37:3: error: redefinition of typedef 'InhibitWhat'
  src/login/logind-inhibit.h:26:26: note: previous declaration of 'InhibitWhat' was here

7 years agofstab-generator: avoid mangling of non-path mount source and dest
Kay Sievers [Mon, 4 Jun 2012 10:52:14 +0000 (12:52 +0200)]
fstab-generator: avoid mangling of non-path mount source and dest

This can invalidate otherwise valid source paths with trailing slashes,
such as "host:/" in the case of a network mount.

Based on a patch from Dave Reisner <dreisner@archlinux.org>, which
removed the slash mangling entirely.

Changed it to match on the leading slash to exclude non-path values.

7 years agokeymaps: keyboard-force-release - fix shebang
Dave Reisner [Sat, 2 Jun 2012 22:27:14 +0000 (18:27 -0400)]
keymaps: keyboard-force-release - fix shebang

This script will still run without the shebang, but we won't get the
intended effect of the errexit flag in the interpreter line.

7 years agosystemd-detect-virt: fix "option '--quiet' requires an argument"
Kay Sievers [Mon, 4 Jun 2012 10:39:22 +0000 (12:39 +0200)]
systemd-detect-virt: fix "option '--quiet' requires an argument"

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

7 years agokeymaps: replace dir tokens in keyboard-force-release
Dave Reisner [Sat, 2 Jun 2012 18:46:05 +0000 (14:46 -0400)]
keymaps: replace dir tokens in keyboard-force-release

Use the correct udev libexec dir as well, not systemd's.

7 years agomissing: define MS_STRICTATIME if not defined already
Lennart Poettering [Fri, 1 Jun 2012 19:25:29 +0000 (21:25 +0200)]
missing: define MS_STRICTATIME if not defined already

7 years agofix typo
Kay Sievers [Fri, 1 Jun 2012 15:56:11 +0000 (17:56 +0200)]
fix typo

7 years agounits: fix man section
Lennart Poettering [Fri, 1 Jun 2012 15:26:28 +0000 (17:26 +0200)]
units: fix man section

7 years agojournal: allow setting of a cutoff log level for disk storage, syslog, kmsg, console...
Lennart Poettering [Fri, 1 Jun 2012 15:26:16 +0000 (17:26 +0200)]
journal: allow setting of a cutoff log level for disk storage, syslog, kmsg, console forwarding

7 years agojournal: support changing the console tty to forward to
Lennart Poettering [Thu, 31 May 2012 23:06:10 +0000 (01:06 +0200)]
journal: support changing the console tty to forward to

7 years agoman: document systemd-journal
Lennart Poettering [Thu, 31 May 2012 23:05:38 +0000 (01:05 +0200)]
man: document systemd-journal

7 years agoman: write man page for systemd-logind
Lennart Poettering [Thu, 31 May 2012 22:14:07 +0000 (00:14 +0200)]
man: write man page for systemd-logind

7 years agologind: fix indentation
Lennart Poettering [Fri, 1 Jun 2012 13:57:21 +0000 (15:57 +0200)]
logind: fix indentation

7 years agologind: interpret the can_sleep return value properly
Matthias Clasen [Fri, 1 Jun 2012 01:50:23 +0000 (21:50 -0400)]
logind: interpret the can_sleep return value properly

can_sleep() returns a boolean, so a return value > 0 does not
mean 'na'.

7 years agosleep: Don't call execute_directory() on a binary
Matthias Clasen [Fri, 1 Jun 2012 00:07:12 +0000 (20:07 -0400)]
sleep: Don't call execute_directory() on a binary

Probably a copy-paste error, SYSTEMD_SLEEP_BINARY_PATH should
have been SYSTEMD_SLEEP_PATH.

7 years agoupdate TODO
Kay Sievers [Thu, 31 May 2012 20:18:13 +0000 (22:18 +0200)]
update TODO

7 years agobuild-sys: split-off D-Bus requires from selinux convenience lib
Kay Sievers [Thu, 31 May 2012 20:12:47 +0000 (22:12 +0200)]
build-sys: split-off D-Bus requires from selinux convenience lib

7 years agologind: add new user state 'closing'
Lennart Poettering [Thu, 31 May 2012 17:47:52 +0000 (19:47 +0200)]
logind: add new user state 'closing'

7 years agologind: properly clean up user cgroups when they run empty
Lennart Poettering [Thu, 31 May 2012 17:46:42 +0000 (19:46 +0200)]
logind: properly clean up user cgroups when they run empty

7 years agomain: Silence gcc warning
Marc-Antoine Perennou [Thu, 31 May 2012 13:54:22 +0000 (15:54 +0200)]
main: Silence gcc warning

7 years agoman: add documentation for the binfmt, modules-load, sysctl services
Lennart Poettering [Thu, 31 May 2012 14:00:34 +0000 (16:00 +0200)]
man: add documentation for the binfmt, modules-load, sysctl services

7 years agounits: add Documentation= field to console-getty.service
Lennart Poettering [Thu, 31 May 2012 12:51:05 +0000 (14:51 +0200)]
units: add Documentation= field to console-getty.service

7 years agoRevert "label: fix systemd-udev labeling of /run directory."
Kay Sievers [Thu, 31 May 2012 11:34:41 +0000 (13:34 +0200)]
Revert "label: fix systemd-udev labeling of /run directory."

This reverts commit 9b5af248f04b6cad8a5bca836e89a39e9f6823d9.

Udev now explicitely labels only files/directories in /dev. The selinux
array API is not released and will not work on other distros at this moment.

7 years agoudev: do not selinux label files in /run/udev
Kay Sievers [Thu, 31 May 2012 11:20:06 +0000 (13:20 +0200)]
udev: do not selinux label files in /run/udev

7 years agomkdir: provide all functions with and without selinux label application
Kay Sievers [Thu, 31 May 2012 11:17:26 +0000 (13:17 +0200)]
mkdir: provide all functions with and without selinux label application

7 years agomkdir: append _label to all mkdir() calls that explicitly set the selinux context
Kay Sievers [Thu, 31 May 2012 10:40:20 +0000 (12:40 +0200)]
mkdir: append _label to all mkdir() calls that explicitly set the selinux context

7 years agoutil: don't require libcap when building libsystemd-shared
Kay Sievers [Thu, 31 May 2012 09:58:06 +0000 (11:58 +0200)]
util: don't require libcap when building libsystemd-shared

src/shared/util.c includes <sys/capability.h> but doesn't use anything
defined there.  Since <sys/capability.h> is part of libcap, not libc,
don't require it.

Allows systemd-without-udevd to require fewer external libraries.

7 years agomain: allow setting of timer slack for PID 1
Lennart Poettering [Thu, 31 May 2012 02:36:08 +0000 (04:36 +0200)]
main: allow setting of timer slack for PID 1

7 years agoutil: introduce a proper nsec_t and make use of it where appropriate
Lennart Poettering [Thu, 31 May 2012 02:27:03 +0000 (04:27 +0200)]
util: introduce a proper nsec_t and make use of it where appropriate

7 years agosystemctl: introduce "systemctl man" to show man page for unit
Lennart Poettering [Thu, 31 May 2012 02:11:57 +0000 (04:11 +0200)]
systemctl: introduce "systemctl man" to show man page for unit

For now this only reads man: URLs, but later on we might want to support
info: too. http/https is probably out of focus.

7 years agobuild-sys: prepare release 184 v184
Lennart Poettering [Wed, 30 May 2012 23:58:01 +0000 (01:58 +0200)]
build-sys: prepare release 184

7 years agolabel: fix systemd-udev labeling of /run directory.
Daniel J Walsh [Wed, 30 May 2012 20:13:48 +0000 (16:13 -0400)]
label: fix systemd-udev labeling of /run directory.

systemd-udev is currently incorrectly labeling /run/udev/* content because it is
using selinux prefix labeling of /dev.  This patch will allow systemd-udev to
use prefix labeling of /dev and /run.

7 years agojournald: properly handle if we have no PID in a kmsg line
Lennart Poettering [Wed, 30 May 2012 23:26:06 +0000 (01:26 +0200)]
journald: properly handle if we have no PID in a kmsg line

7 years agologin: properly detect MIMO USB displays
Lennart Poettering [Wed, 30 May 2012 23:19:11 +0000 (01:19 +0200)]
login: properly detect MIMO USB displays

MIMO USB displays use a generic VID/PID for the hub component. With a
bit of trickery we can detect them by the VID/PID of the graphics
component.

7 years agoudev: skip timestamp check if rules are already free()d during reload
Kay Sievers [Wed, 30 May 2012 23:15:21 +0000 (01:15 +0200)]
udev: skip timestamp check if rules are already free()d during reload

7 years agoselinux: downgrade database load time message to LOG_DEBUG
Lennart Poettering [Wed, 30 May 2012 23:10:44 +0000 (01:10 +0200)]
selinux: downgrade database load time message to LOG_DEBUG

7 years agoupdate TODO
Lennart Poettering [Wed, 30 May 2012 21:39:15 +0000 (23:39 +0200)]
update TODO

7 years agoshutdown: Don't skip bind mounts on shutdown
Daniel Drake [Wed, 25 Apr 2012 15:46:46 +0000 (16:46 +0100)]
shutdown: Don't skip bind mounts on shutdown

This reverts commits d72238fcb34abc81aca97c5fb15888708ee937d3 and
f3accc08.

OLPC runs / as a bind-mount, so this must be remounted RO during
shutdown to avoid corruption.

As Lennert can't recall the exact reasons for making the shutdown
code skip bind mounts, revert to previous behaviour to solve the
issue for OLPC.

http://lists.freedesktop.org/archives/systemd-devel/2012-April/004957.html

7 years agojournal: don't allow adding invalid matches to the context
Lennart Poettering [Wed, 30 May 2012 20:46:07 +0000 (22:46 +0200)]
journal: don't allow adding invalid matches to the context

7 years agojournalctl: check first if match is a path name
Lennart Poettering [Wed, 30 May 2012 20:45:47 +0000 (22:45 +0200)]
journalctl: check first if match is a path name

7 years agojournalctl: support /usr/bin/nginx, etc
Shawn Landden [Wed, 30 May 2012 16:43:23 +0000 (09:43 -0700)]
journalctl: support /usr/bin/nginx, etc

7 years agojournalctl: for now complain if more than one match is provided since this is still...
Lennart Poettering [Wed, 30 May 2012 20:30:35 +0000 (22:30 +0200)]
journalctl: for now complain if more than one match is provided since this is still broken

7 years agobuild-sys: fix built with --disable-logind
Lennart Poettering [Wed, 30 May 2012 20:25:01 +0000 (22:25 +0200)]
build-sys: fix built with --disable-logind