chiark / gitweb /
Lennart Poettering [Mon, 11 Jul 2011 20:39:57 +0000 (22:39 +0200)]
Merge remote-tracking branch 'harald/master'
Zbigniew Jędrzejewski-Szmek [Mon, 11 Jul 2011 20:29:45 +0000 (22:29 +0200)]
logind: Fix compilation without ACL
Compilation fails if sys/acl.h is not available. The configure script
already tests for sys/acl.h presence, but the result was so far unused.
To compile without acl, stub implementations of the acl functions are
used.
Zbigniew Jędrzejewski-Szmek [Mon, 11 Jul 2011 20:09:41 +0000 (22:09 +0200)]
man: un-reverse IgnoreOnSnapshot description
I think that snapshots & devices are actually _not_ captured in
snapshots.
Lennart Poettering [Mon, 11 Jul 2011 19:10:48 +0000 (21:10 +0200)]
update TODO
Bastien Nocera [Mon, 11 Jul 2011 16:01:28 +0000 (17:01 +0100)]
build-sys: Add i18n support through intltool
And put the PolicyKit policy files up for translation.
Kay Sievers [Mon, 11 Jul 2011 00:12:42 +0000 (02:12 +0200)]
clarify separate-/usr message
Everything should be fine if /usr is mounted from initramfs.
Lennart Poettering [Fri, 8 Jul 2011 22:04:27 +0000 (00:04 +0200)]
loginctl: add missing header file
Lennart Poettering [Fri, 8 Jul 2011 19:45:59 +0000 (21:45 +0200)]
systemctl: fix --help syntax for variables
Lennart Poettering [Fri, 8 Jul 2011 19:45:44 +0000 (21:45 +0200)]
logind: don't confuse 'shared' with a session of its own
Lennart Poettering [Fri, 8 Jul 2011 19:45:23 +0000 (21:45 +0200)]
logind: fix introspection typo
Lennart Poettering [Fri, 8 Jul 2011 19:44:22 +0000 (21:44 +0200)]
acl: two tag matching is not going to be available in libudev
Lennart Poettering [Fri, 8 Jul 2011 19:39:10 +0000 (21:39 +0200)]
loginctl: add various introspection functions
Lennart Poettering [Fri, 8 Jul 2011 19:37:17 +0000 (21:37 +0200)]
seat: only mark main input device for seat assignments
Lennart Poettering [Thu, 7 Jul 2011 02:19:03 +0000 (04:19 +0200)]
systemctl: hide all information on --kill-mode= since it is mostly useless
Lennart Poettering [Thu, 7 Jul 2011 01:30:47 +0000 (03:30 +0200)]
systemctl: use cached tty value where possible
Lennart Poettering [Thu, 7 Jul 2011 01:30:31 +0000 (03:30 +0200)]
systemctl: cache tty value before we open the pager
Lennart Poettering [Thu, 7 Jul 2011 01:29:56 +0000 (03:29 +0200)]
loginctl: add basic implementation of loginctl for introspecting controlling sessions/users/seats
Lennart Poettering [Thu, 7 Jul 2011 00:34:35 +0000 (02:34 +0200)]
cgls: add pager support to systemd-cgls
Lennart Poettering [Thu, 7 Jul 2011 00:07:39 +0000 (02:07 +0200)]
path,unit: support globbing in conditions and path units
Lennart Poettering [Wed, 6 Jul 2011 23:18:10 +0000 (01:18 +0200)]
update TODO
Lennart Poettering [Tue, 5 Jul 2011 22:47:39 +0000 (00:47 +0200)]
manager: merge serialization and desrialization counter into one, and increase it when reexecuting
Instead of having individual counters n_serializing and n_deserializing
have a single one n_reloading, which should be sufficient.
Set n_reloading when we are about to go down for reexecution to avoid
cgroup trimming when we free the units for reexecution.
Lennart Poettering [Tue, 5 Jul 2011 22:14:26 +0000 (00:14 +0200)]
cgroup: don't trim a cgroup we create, we might just take it over from somebody else
Lennart Poettering [Tue, 5 Jul 2011 18:32:08 +0000 (20:32 +0200)]
udev: tag virtio serial ports with systemd by default
Lennart Poettering [Tue, 5 Jul 2011 15:27:44 +0000 (17:27 +0200)]
update TODO
Lennart Poettering [Tue, 5 Jul 2011 12:27:26 +0000 (14:27 +0200)]
udev: improve udev rule a bit
Michal Schmidt [Tue, 5 Jul 2011 08:14:12 +0000 (10:14 +0200)]
service: 'pidfile:' in SysV chkconfig header implies a real daemon
The presence of the chkconfig "pidfile:" header in the initscript is an
excellent indication that it's not a oneshot script (like iptables),
but a real daemon (like httpd).
Lennart Poettering [Tue, 5 Jul 2011 01:27:14 +0000 (03:27 +0200)]
udev: pull in printer.target from all kinds of printers
Lennart Poettering [Sun, 3 Jul 2011 21:20:56 +0000 (23:20 +0200)]
util: explicitly turn of O_CLOEXEC for stdin/stdout/stderr
Lennart Poettering [Sun, 3 Jul 2011 21:20:39 +0000 (23:20 +0200)]
add a few O_CLOEXEC where missing
Lennart Poettering [Sun, 3 Jul 2011 21:19:55 +0000 (23:19 +0200)]
logind: write rules files atomically
Lennart Poettering [Sun, 3 Jul 2011 14:09:56 +0000 (16:09 +0200)]
update todo
Lennart Poettering [Mon, 4 Jul 2011 17:06:32 +0000 (19:06 +0200)]
password-agent: actually really don't access unallocated memory
Fix for
9726f9ff11fa7b94dceed2972cd2453a08b9ee6a
Lennart Poettering [Mon, 4 Jul 2011 16:59:54 +0000 (18:59 +0200)]
password-agent: make sure not to access unallocated memory
Tracked down by Frederic Crozat
Harald Hoyer [Thu, 5 May 2011 10:29:44 +0000 (12:29 +0200)]
shutdown: pivot_root to a tmpfs directory to properly umount root
check for /run/initramfs/shutdown
mount bind all needed dirs to /run/initramfs
pivot_root to /run/initramfs
execute /run/initramfs/shutdown
Harald Hoyer [Fri, 27 May 2011 08:59:45 +0000 (10:59 +0200)]
umount: log failed umounts only once at the end
Harald Hoyer [Thu, 5 May 2011 10:26:31 +0000 (12:26 +0200)]
umount: umount, until all umounts failed
Harald Hoyer [Fri, 20 May 2011 14:26:00 +0000 (16:26 +0200)]
umount: log_info about what we unmounted
Michal Schmidt [Sat, 2 Jul 2011 23:47:21 +0000 (01:47 +0200)]
systemadm: report GLib.Error only to stderr
When a GLib.Error happens, it is likely that showing a message box would fail
too.
https://bugzilla.redhat.com/show_bug.cgi?id=716663
Michal Schmidt [Sat, 2 Jul 2011 21:40:42 +0000 (23:40 +0200)]
shutdown: print the standard wall message even when the user provided one
Print the user-provided wall message in addition to the standard one, not
instead of it.
Related to: https://bugzilla.redhat.com/show_bug.cgi?id=624149
Michal Schmidt [Sat, 2 Jul 2011 21:09:59 +0000 (23:09 +0200)]
shutdown: respect the dry run option '-k'
Don't do the actual power-off/reboot when '-k' is passed to shutdown.
Related to: https://bugzilla.redhat.com/show_bug.cgi?id=624149
Michal Schmidt [Sat, 2 Jul 2011 18:41:36 +0000 (20:41 +0200)]
shutdown: accept minutes argument without '+'
Both SysVinit's and upstart's shutdown commands accept the number of
minutes with or without the plus sign.
'shutdown -h 1' works in RHEL 5, Fedora 14, Debian 6.
Let's be compatible.
https://bugzilla.redhat.com/show_bug.cgi?id=708886
Michal Schmidt [Sat, 2 Jul 2011 12:52:52 +0000 (14:52 +0200)]
manager: consider the active job when merging
In some cases systemd forgets to start enabled services, e.g. in this scenario:
1. The job "sendmail.service/start" is installed.
2. Before systemd proceeds with this job, a process requests a reload of
sendmail. The job "sendmail.service/reload" is enqueued.
3. The original job is silently discarded. The service is not started.
The reload job proceeds by doing nothing.
The fix is to allow merging transaction jobs with the active job.
With the fix the resulting merged job "sendmail.service/reload-or-start" is
installed and the service works as expected.
https://bugzilla.redhat.com/show_bug.cgi?id=633774
Lennart Poettering [Fri, 1 Jul 2011 23:44:49 +0000 (01:44 +0200)]
tmpfiles: don't exit with an error code if we cannot access all files
This is just to avoid confusion if people use stuff like FUSE file
systems or SELinux which might disallow access to files even if tmpfiles
is running as root.
We still log away if we cannot access a file, but we do not return a
failure exit code in the end.
Lennart Poettering [Fri, 1 Jul 2011 23:00:00 +0000 (01:00 +0200)]
units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled in kernel
Michael Olbrich [Tue, 28 Jun 2011 07:30:08 +0000 (09:30 +0200)]
umount: ignore missing /proc/swaps
/proc/swaps does not exist when swap is disabled in the kernel.
Just report an empty list of mountpoints to unmount in this case.
Henry Gebhardt [Mon, 27 Jun 2011 23:49:55 +0000 (01:49 +0200)]
configure: Add --enable-plymouth option
As in the bug[1] it would be nice to configure plymouth support
independently of the distro. This patch adds a "--enable-plymouth" and
"--disable-plymouth" option to the configure script to overwrite the
distro specific default.
[1] https://bugs.freedesktop.org/show_bug.cgi?id=38460
Lennart Poettering [Fri, 1 Jul 2011 21:53:44 +0000 (23:53 +0200)]
manager: don't even think of enumerating sysv services in user instances
Lennart Poettering [Fri, 1 Jul 2011 21:53:14 +0000 (23:53 +0200)]
nspawn: better use setresuid() instead of setreuid()
Michal Vyskocil [Wed, 29 Jun 2011 12:22:46 +0000 (14:22 +0200)]
nspawn: spawn shell under specified --user
Add -u/--user option, which changes the effective and real user and
group id to the new value. The user must exists in the chroot, otherwise
it will fail. Both username and user id are accepted. The user home is
created as well.
It also setup HOME, USER, LOGNAME and SHELL variables .
Michal Vyskocil [Fri, 1 Jul 2011 21:49:56 +0000 (23:49 +0200)]
nspawn: Move the get_user_creds from execute.c to utils.c for later usage in nspawn.c.
Lennart Poettering [Fri, 1 Jul 2011 20:36:15 +0000 (22:36 +0200)]
logind: temporarily hack right user bus address into unit file
Lennart Poettering [Fri, 1 Jul 2011 20:35:34 +0000 (22:35 +0200)]
log: log to syslog unless connected to a tty in user mode
Lennart Poettering [Fri, 1 Jul 2011 20:34:58 +0000 (22:34 +0200)]
logind: create private subdirectory for X11 socket
Lennart Poettering [Fri, 1 Jul 2011 20:34:37 +0000 (22:34 +0200)]
dbus: listen on private sockets in user mode too
Lennart Poettering [Thu, 30 Jun 2011 23:13:47 +0000 (01:13 +0200)]
unit: support wildcards in Environment=, EnvironmentFile=
Lennart Poettering [Thu, 30 Jun 2011 22:55:34 +0000 (00:55 +0200)]
unit: do wildcard expansion in ListenStream= and friends
Lennart Poettering [Thu, 30 Jun 2011 22:41:41 +0000 (00:41 +0200)]
cgroup: kill processes even in cgroups that aren't realized
Lennart Poettering [Thu, 30 Jun 2011 22:41:18 +0000 (00:41 +0200)]
unit: add three new specifiers to use in unit files
Lennart Poettering [Thu, 30 Jun 2011 02:31:49 +0000 (04:31 +0200)]
pam: initialize XDG_RUNTIME_DIR
Lennart Poettering [Thu, 30 Jun 2011 02:31:34 +0000 (04:31 +0200)]
execute: properly pass PAM environment to executed process
Lennart Poettering [Thu, 30 Jun 2011 02:16:10 +0000 (04:16 +0200)]
util: try harder to rename the process
Lennart Poettering [Thu, 30 Jun 2011 02:15:53 +0000 (04:15 +0200)]
execute: fix PAM error checking
Lennart Poettering [Thu, 30 Jun 2011 02:15:39 +0000 (04:15 +0200)]
execute: invoke sigwait() in a loop when waiting for PAM parent, to avoid spurious wake-ups
Lennart Poettering [Thu, 30 Jun 2011 02:14:50 +0000 (04:14 +0200)]
execute: don't invoke pam_setcred, since we are not running on a tty where the user could change his password
Lennart Poettering [Thu, 30 Jun 2011 00:41:01 +0000 (02:41 +0200)]
unit: consider all cgroups in the name=systemd hierarchy, even when the user has specified an explicit path in it
Lennart Poettering [Thu, 30 Jun 2011 00:39:29 +0000 (02:39 +0200)]
execute: when parsing ConrolGroup= replace wildcards
Lennart Poettering [Thu, 30 Jun 2011 00:18:01 +0000 (02:18 +0200)]
logind: add service for per-user shared systemd daemon
Lennart Poettering [Thu, 30 Jun 2011 00:16:07 +0000 (02:16 +0200)]
logind: make sure to create/run/systemd/sessions before we try to place a fifo in it
Lennart Poettering [Thu, 30 Jun 2011 00:15:41 +0000 (02:15 +0200)]
manager: use sd_notify() to notify parent systemd that we have finished startup
Lennart Poettering [Thu, 30 Jun 2011 00:15:01 +0000 (02:15 +0200)]
execute: do initgroups() first, pam initialization second so that it can still modify the groups list
Lennart Poettering [Wed, 29 Jun 2011 22:11:25 +0000 (00:11 +0200)]
exec: add ControlGroupModify= switch to allow changing access mode to cgroups fs
Lennart Poettering [Wed, 29 Jun 2011 19:17:31 +0000 (21:17 +0200)]
util: clear scrolling region when clearing screen
Lennart Poettering [Wed, 29 Jun 2011 17:53:27 +0000 (19:53 +0200)]
logind: allow access to SetIdleHint() to owner of the session
Lennart Poettering [Wed, 29 Jun 2011 17:41:07 +0000 (19:41 +0200)]
acl: libudev currently doesn't handle properly enumerator matches with multiple tags, so avoid using them for now
Lennart Poettering [Wed, 29 Jun 2011 16:06:58 +0000 (18:06 +0200)]
uaccess: drop ACLs in case of error, just to be safe
Lennart Poettering [Wed, 29 Jun 2011 02:14:43 +0000 (04:14 +0200)]
logind: hook uaccess into udev by default
Lennart Poettering [Wed, 29 Jun 2011 01:48:53 +0000 (03:48 +0200)]
logind: we need to open and close a named pipe once for read before we get EOF
Lennart Poettering [Wed, 29 Jun 2011 01:48:16 +0000 (03:48 +0200)]
logind: when initializing drop sessions that are unreferenced
Lennart Poettering [Wed, 29 Jun 2011 01:12:23 +0000 (03:12 +0200)]
dbus: add FlushDevices() bus call to reset all seat assignments
Lennart Poettering [Wed, 29 Jun 2011 00:48:29 +0000 (02:48 +0200)]
logind: fix typo in config parser
Lennart Poettering [Wed, 29 Jun 2011 00:46:20 +0000 (02:46 +0200)]
man: update pam_systemd page to document new behaviour
Lennart Poettering [Wed, 29 Jun 2011 00:27:53 +0000 (02:27 +0200)]
logind: add man page for configuration file
Lennart Poettering [Wed, 29 Jun 2011 00:27:16 +0000 (02:27 +0200)]
logind: move default reset controller/kill exclude list into logind
Lennart Poettering [Tue, 28 Jun 2011 23:49:21 +0000 (01:49 +0200)]
logind: udev no longer ignores subsystem matches on monitors when used in conjunction with tags
Lennart Poettering [Tue, 28 Jun 2011 23:48:59 +0000 (01:48 +0200)]
logind: be a bit more rigid with seat names
Lennart Poettering [Tue, 28 Jun 2011 23:48:30 +0000 (01:48 +0200)]
logind: fix udev rule to generate valid tags, as a temporary fix until udev gains a native feature for this
Lennart Poettering [Tue, 28 Jun 2011 23:47:55 +0000 (01:47 +0200)]
logind: parse configuration file
Lennart Poettering [Tue, 28 Jun 2011 22:06:04 +0000 (00:06 +0200)]
logind: use named pipes instead of fifos to keep track of sessions so that we can reconnect later
Lennart Poettering [Tue, 28 Jun 2011 21:21:43 +0000 (23:21 +0200)]
logind: fix generation of seat state file
Lennart Poettering [Tue, 28 Jun 2011 21:07:10 +0000 (23:07 +0200)]
logind: inherit ID_SEAT even on devices that themselves are not seat assignable
Lennart Poettering [Tue, 28 Jun 2011 21:03:56 +0000 (23:03 +0200)]
logind: retrigger devices when we reassign them
Lennart Poettering [Tue, 28 Jun 2011 21:02:38 +0000 (23:02 +0200)]
logind: call udev_device_get_is_initialized() to trigger lazy loading, as a temporary work-around for broken libudev
Lennart Poettering [Tue, 28 Jun 2011 19:56:41 +0000 (21:56 +0200)]
logind: supply default bus policy with minimal access
Lennart Poettering [Tue, 28 Jun 2011 19:54:52 +0000 (21:54 +0200)]
logind: include subsystem name in device id for assigning seats
Lennart Poettering [Tue, 28 Jun 2011 18:50:43 +0000 (20:50 +0200)]
logind: implement basic version of AttachDevice() D-Bus call
Lennart Poettering [Tue, 28 Jun 2011 17:24:09 +0000 (19:24 +0200)]
udev: dynamically generate seat where applicable from ID_PATH
Lennart Poettering [Tue, 28 Jun 2011 17:23:38 +0000 (19:23 +0200)]
udev: only tag the main card device of a sound card with 'seat'
Lennart Poettering [Tue, 28 Jun 2011 16:16:32 +0000 (18:16 +0200)]
logind: when changing linger stetings, make sure they take place immediately
Lennart Poettering [Tue, 28 Jun 2011 16:16:00 +0000 (18:16 +0200)]
logind: activate autovt@.service instead of autovt-getty@.service when the user switches to a previously unused tty, since it doesn't have to be a getty we start on it on demand
Lennart Poettering [Tue, 28 Jun 2011 11:33:56 +0000 (13:33 +0200)]
execute: don't choke when systemd was compiled with a different CAP_LAST_CAP then what it is run with