chiark / gitweb /
elogind.git
8 years agoumount: ignore missing /proc/swaps
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.

8 years agoconfigure: Add --enable-plymouth option
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

8 years agomanager: don't even think of enumerating sysv services in user instances
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

8 years agonspawn: better use setresuid() instead of setreuid()
Lennart Poettering [Fri, 1 Jul 2011 21:53:14 +0000 (23:53 +0200)]
nspawn: better use setresuid() instead of setreuid()

8 years agonspawn: spawn shell under specified --user
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 .

8 years agonspawn: Move the get_user_creds from execute.c to utils.c for later usage in nspawn.c.
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.

8 years agologind: temporarily hack right user bus address into unit file
Lennart Poettering [Fri, 1 Jul 2011 20:36:15 +0000 (22:36 +0200)]
logind: temporarily hack right user bus address into unit file

8 years agolog: log to syslog unless connected to a tty in user mode
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

8 years agologind: create private subdirectory for X11 socket
Lennart Poettering [Fri, 1 Jul 2011 20:34:58 +0000 (22:34 +0200)]
logind: create private subdirectory for X11 socket

8 years agodbus: listen on private sockets in user mode too
Lennart Poettering [Fri, 1 Jul 2011 20:34:37 +0000 (22:34 +0200)]
dbus: listen on private sockets in user mode too

8 years agounit: support wildcards in Environment=, EnvironmentFile=
Lennart Poettering [Thu, 30 Jun 2011 23:13:47 +0000 (01:13 +0200)]
unit: support wildcards in Environment=, EnvironmentFile=

8 years agounit: do wildcard expansion in ListenStream= and friends
Lennart Poettering [Thu, 30 Jun 2011 22:55:34 +0000 (00:55 +0200)]
unit: do wildcard expansion in ListenStream= and friends

8 years agocgroup: kill processes even in cgroups that aren't realized
Lennart Poettering [Thu, 30 Jun 2011 22:41:41 +0000 (00:41 +0200)]
cgroup: kill processes even in cgroups that aren't realized

8 years agounit: add three new specifiers to use in unit files
Lennart Poettering [Thu, 30 Jun 2011 22:41:18 +0000 (00:41 +0200)]
unit: add three new specifiers to use in unit files

8 years agopam: initialize XDG_RUNTIME_DIR
Lennart Poettering [Thu, 30 Jun 2011 02:31:49 +0000 (04:31 +0200)]
pam: initialize XDG_RUNTIME_DIR

8 years agoexecute: properly pass PAM environment to executed process
Lennart Poettering [Thu, 30 Jun 2011 02:31:34 +0000 (04:31 +0200)]
execute: properly pass PAM environment to executed process

8 years agoutil: try harder to rename the process
Lennart Poettering [Thu, 30 Jun 2011 02:16:10 +0000 (04:16 +0200)]
util: try harder to rename the process

8 years agoexecute: fix PAM error checking
Lennart Poettering [Thu, 30 Jun 2011 02:15:53 +0000 (04:15 +0200)]
execute: fix PAM error checking

8 years agoexecute: invoke sigwait() in a loop when waiting for PAM parent, to avoid spurious...
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

8 years agoexecute: don't invoke pam_setcred, since we are not running on a tty where the user...
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

8 years agounit: consider all cgroups in the name=systemd hierarchy, even when the user has...
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

8 years agoexecute: when parsing ConrolGroup= replace wildcards
Lennart Poettering [Thu, 30 Jun 2011 00:39:29 +0000 (02:39 +0200)]
execute: when parsing ConrolGroup= replace wildcards

8 years agologind: add service for per-user shared systemd daemon
Lennart Poettering [Thu, 30 Jun 2011 00:18:01 +0000 (02:18 +0200)]
logind: add service for per-user shared systemd daemon

8 years agologind: make sure to create/run/systemd/sessions before we try to place a fifo in it
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

8 years agomanager: use sd_notify() to notify parent systemd that we have finished startup
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

8 years agoexecute: do initgroups() first, pam initialization second so that it can still modify...
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

8 years agoexec: add ControlGroupModify= switch to allow changing access mode to cgroups fs
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

8 years agoutil: clear scrolling region when clearing screen
Lennart Poettering [Wed, 29 Jun 2011 19:17:31 +0000 (21:17 +0200)]
util: clear scrolling region when clearing screen

8 years agologind: allow access to SetIdleHint() to owner of the session
Lennart Poettering [Wed, 29 Jun 2011 17:53:27 +0000 (19:53 +0200)]
logind: allow access to SetIdleHint() to owner of the session

8 years agoacl: libudev currently doesn't handle properly enumerator matches with multiple tags...
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

8 years agouaccess: drop ACLs in case of error, just to be safe
Lennart Poettering [Wed, 29 Jun 2011 16:06:58 +0000 (18:06 +0200)]
uaccess: drop ACLs in case of error, just to be safe

8 years agologind: hook uaccess into udev by default
Lennart Poettering [Wed, 29 Jun 2011 02:14:43 +0000 (04:14 +0200)]
logind: hook uaccess into udev by default

8 years agologind: we need to open and close a named pipe once for read before we get EOF
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

8 years agologind: when initializing drop sessions that are unreferenced
Lennart Poettering [Wed, 29 Jun 2011 01:48:16 +0000 (03:48 +0200)]
logind: when initializing drop sessions that are unreferenced

8 years agodbus: add FlushDevices() bus call to reset all seat assignments
Lennart Poettering [Wed, 29 Jun 2011 01:12:23 +0000 (03:12 +0200)]
dbus: add FlushDevices() bus call to reset all seat assignments

8 years agologind: fix typo in config parser
Lennart Poettering [Wed, 29 Jun 2011 00:48:29 +0000 (02:48 +0200)]
logind: fix typo in config parser

8 years agoman: update pam_systemd page to document new behaviour
Lennart Poettering [Wed, 29 Jun 2011 00:46:20 +0000 (02:46 +0200)]
man: update pam_systemd page to document new behaviour

8 years agologind: add man page for configuration file
Lennart Poettering [Wed, 29 Jun 2011 00:27:53 +0000 (02:27 +0200)]
logind: add man page for configuration file

8 years agologind: move default reset controller/kill exclude list into logind
Lennart Poettering [Wed, 29 Jun 2011 00:27:16 +0000 (02:27 +0200)]
logind: move default reset controller/kill exclude list into logind

8 years agologind: udev no longer ignores subsystem matches on monitors when used in conjunction...
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

8 years agologind: be a bit more rigid with seat names
Lennart Poettering [Tue, 28 Jun 2011 23:48:59 +0000 (01:48 +0200)]
logind: be a bit more rigid with seat names

8 years agologind: fix udev rule to generate valid tags, as a temporary fix until udev gains...
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

8 years agologind: parse configuration file
Lennart Poettering [Tue, 28 Jun 2011 23:47:55 +0000 (01:47 +0200)]
logind: parse configuration file

8 years agologind: use named pipes instead of fifos to keep track of sessions so that we can...
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

8 years agologind: fix generation of seat state file
Lennart Poettering [Tue, 28 Jun 2011 21:21:43 +0000 (23:21 +0200)]
logind: fix generation of seat state file

8 years agologind: inherit ID_SEAT even on devices that themselves are not seat assignable
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

8 years agologind: retrigger devices when we reassign them
Lennart Poettering [Tue, 28 Jun 2011 21:03:56 +0000 (23:03 +0200)]
logind: retrigger devices when we reassign them

8 years agologind: call udev_device_get_is_initialized() to trigger lazy loading, as a temporary...
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

8 years agologind: supply default bus policy with minimal access
Lennart Poettering [Tue, 28 Jun 2011 19:56:41 +0000 (21:56 +0200)]
logind: supply default bus policy with minimal access

8 years agologind: include subsystem name in device id for assigning seats
Lennart Poettering [Tue, 28 Jun 2011 19:54:52 +0000 (21:54 +0200)]
logind: include subsystem name in device id for assigning seats

8 years agologind: implement basic version of AttachDevice() D-Bus call
Lennart Poettering [Tue, 28 Jun 2011 18:50:43 +0000 (20:50 +0200)]
logind: implement basic version of AttachDevice() D-Bus call

8 years agoudev: dynamically generate seat where applicable from ID_PATH
Lennart Poettering [Tue, 28 Jun 2011 17:24:09 +0000 (19:24 +0200)]
udev: dynamically generate seat where applicable from ID_PATH

8 years agoudev: only tag the main card device of a sound card with 'seat'
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'

8 years agologind: when changing linger stetings, make sure they take place immediately
Lennart Poettering [Tue, 28 Jun 2011 16:16:32 +0000 (18:16 +0200)]
logind: when changing linger stetings, make sure they take place immediately

8 years agologind: activate autovt@.service instead of autovt-getty@.service when the user switc...
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

8 years agoexecute: don't choke when systemd was compiled with a different CAP_LAST_CAP then...
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

8 years agodbus: properly unref message
Lennart Poettering [Tue, 28 Jun 2011 10:49:52 +0000 (12:49 +0200)]
dbus: properly unref message

8 years agologind: implement SetUserLinger() D-Bus call
Lennart Poettering [Tue, 28 Jun 2011 01:52:22 +0000 (03:52 +0200)]
logind: implement SetUserLinger() D-Bus call

8 years agologind: ensure our autovts always stay allocated
Lennart Poettering [Tue, 28 Jun 2011 01:21:14 +0000 (03:21 +0200)]
logind: ensure our autovts always stay allocated

8 years agologind: don't spawn autovt getty on more VTs than configured
Lennart Poettering [Tue, 28 Jun 2011 01:05:33 +0000 (03:05 +0200)]
logind: don't spawn autovt getty on more VTs than configured

8 years agologind: properly preallocate configured auto VTs
Lennart Poettering [Tue, 28 Jun 2011 00:53:49 +0000 (02:53 +0200)]
logind: properly preallocate configured auto VTs

8 years agounit: when loading symlinked template units, properly add all names on the way to...
Lennart Poettering [Tue, 28 Jun 2011 00:53:15 +0000 (02:53 +0200)]
unit: when loading symlinked template units, properly add all names on the way to the unit

8 years agologind: kill a session as soon as its pipe fd gets EOF
Lennart Poettering [Mon, 27 Jun 2011 22:26:34 +0000 (00:26 +0200)]
logind: kill a session as soon as its pipe fd gets EOF

8 years agologind: autospawn gettys when necessary
Lennart Poettering [Mon, 27 Jun 2011 22:26:10 +0000 (00:26 +0200)]
logind: autospawn gettys when necessary

8 years agologind: when enumerating acl devices for seat0, don't set a tag
Lennart Poettering [Mon, 27 Jun 2011 21:27:57 +0000 (23:27 +0200)]
logind: when enumerating acl devices for seat0, don't set a tag

8 years agologind: fix ACL code allocation
Lennart Poettering [Mon, 27 Jun 2011 21:20:56 +0000 (23:20 +0200)]
logind: fix ACL code allocation

8 years agodbus: fix name allocation logic
Lennart Poettering [Mon, 27 Jun 2011 21:15:57 +0000 (23:15 +0200)]
dbus: fix name allocation logic

8 years agodbus: use bus_error_message() where applicable
Lennart Poettering [Mon, 27 Jun 2011 21:15:30 +0000 (23:15 +0200)]
dbus: use bus_error_message() where applicable

8 years agologind: fix bad memory access
Lennart Poettering [Mon, 27 Jun 2011 21:08:42 +0000 (23:08 +0200)]
logind: fix bad memory access

8 years agologind: properly detect whether we got the bus name
Lennart Poettering [Mon, 27 Jun 2011 21:07:28 +0000 (23:07 +0200)]
logind: properly detect whether we got the bus name

8 years agologind: check whether newly created session is active
Lennart Poettering [Mon, 27 Jun 2011 21:07:13 +0000 (23:07 +0200)]
logind: check whether newly created session is active

8 years agologind: when the leader of a session exited, don't fail
Lennart Poettering [Mon, 27 Jun 2011 21:06:49 +0000 (23:06 +0200)]
logind: when the leader of a session exited, don't fail

8 years agologind: save object data only when started fully
Lennart Poettering [Mon, 27 Jun 2011 21:06:34 +0000 (23:06 +0200)]
logind: save object data only when started fully

8 years agologind: automatically deduce seat from display
Lennart Poettering [Mon, 27 Jun 2011 20:44:12 +0000 (22:44 +0200)]
logind: automatically deduce seat from display

8 years agopam: make sure we pass a valid tty field to logind
Lennart Poettering [Mon, 27 Jun 2011 17:49:43 +0000 (19:49 +0200)]
pam: make sure we pass a valid tty field to logind

8 years agoupdate TODO
Lennart Poettering [Mon, 27 Jun 2011 17:40:51 +0000 (19:40 +0200)]
update TODO

8 years agologind: update TODO
Lennart Poettering [Mon, 27 Jun 2011 17:39:56 +0000 (19:39 +0200)]
logind: update TODO

8 years agoswap: ignore missing /proc/swaps
Michael Olbrich [Fri, 24 Jun 2011 11:43:19 +0000 (13:43 +0200)]
swap: ignore missing /proc/swaps

Otherwise systemd reports "Failed to fully start up daemon: No such file or
directory" when swap is disabled in the kernel.

8 years agounits: Use /etc/rc.d/rc.local as the path to rc.local in Fedora.
Bill Nottingham [Tue, 21 Jun 2011 19:35:44 +0000 (15:35 -0400)]
units: Use /etc/rc.d/rc.local as the path to rc.local in Fedora.

/etc/rc.local is a symlink.

8 years agosystemctl: add support for --root for systemctl enable/disable/is-enabled
Frederic Crozat [Fri, 24 Jun 2011 13:02:57 +0000 (15:02 +0200)]
systemctl: add support for --root for systemctl enable/disable/is-enabled

Add --root=<root> for enable/disable/is-enabled systemctl commands. To
be used for easily enable / disable systemd services for a chroot,
without running systemctl inside chroot.

8 years agodbus: send our finished signal when we are finished booting
Lennart Poettering [Mon, 27 Jun 2011 11:47:03 +0000 (13:47 +0200)]
dbus: send our finished signal when we are finished booting

8 years agologind: add more necessary caps to the service
Lennart Poettering [Fri, 24 Jun 2011 21:52:02 +0000 (23:52 +0200)]
logind: add more necessary caps to the service

8 years agopam: fix up tty if it is actually a display
Lennart Poettering [Fri, 24 Jun 2011 21:51:49 +0000 (23:51 +0200)]
pam: fix up tty if it is actually a display

8 years agologind: save/restore session type
Lennart Poettering [Fri, 24 Jun 2011 21:50:39 +0000 (23:50 +0200)]
logind: save/restore session type

8 years agologind: use pipe fd to detect when a session is dead
Lennart Poettering [Fri, 24 Jun 2011 21:25:28 +0000 (23:25 +0200)]
logind: use pipe fd to detect when a session is dead

8 years agologind: fix set of capabilities
Lennart Poettering [Fri, 24 Jun 2011 20:55:51 +0000 (22:55 +0200)]
logind: fix set of capabilities

8 years agologind: properly handle if two session with identical loginuids are attempted to...
Lennart Poettering [Fri, 24 Jun 2011 20:55:39 +0000 (22:55 +0200)]
logind: properly handle if two session with identical loginuids are attempted to be created

8 years agologind: when generating session ids with a counter, retry if session is already allocated
Lennart Poettering [Fri, 24 Jun 2011 18:46:22 +0000 (20:46 +0200)]
logind: when generating session ids with a counter, retry if session is already allocated

8 years agologind: remove a session when its cgroup is gone
Lennart Poettering [Fri, 24 Jun 2011 18:41:56 +0000 (20:41 +0200)]
logind: remove a session when its cgroup is gone

8 years agologind: fix generation of bus arrays
Lennart Poettering [Fri, 24 Jun 2011 18:41:22 +0000 (20:41 +0200)]
logind: fix generation of bus arrays

8 years agologind: make sure we hand out write fd, and keep read fd for session end detection
Lennart Poettering [Fri, 24 Jun 2011 18:40:00 +0000 (20:40 +0200)]
logind: make sure we hand out write fd, and keep read fd for session end detection

8 years agologind: various clean-ups
Lennart Poettering [Fri, 24 Jun 2011 17:42:45 +0000 (19:42 +0200)]
logind: various clean-ups

8 years agologind: hook up PAM module with logind
Lennart Poettering [Fri, 24 Jun 2011 16:50:50 +0000 (18:50 +0200)]
logind: hook up PAM module with logind

8 years agologind: make idle hint logic work
Lennart Poettering [Tue, 21 Jun 2011 20:29:25 +0000 (22:29 +0200)]
logind: make idle hint logic work

8 years agologind: send out PropertyChanged signals where appropriate
Lennart Poettering [Tue, 21 Jun 2011 19:46:13 +0000 (21:46 +0200)]
logind: send out PropertyChanged signals where appropriate

8 years agologind: send dbus signals when sessions/users/seats come and go
Lennart Poettering [Tue, 21 Jun 2011 18:43:34 +0000 (20:43 +0200)]
logind: send dbus signals when sessions/users/seats come and go

8 years agologind: implement ListXXX bus methods
Lennart Poettering [Tue, 21 Jun 2011 18:14:24 +0000 (20:14 +0200)]
logind: implement ListXXX bus methods

8 years agologind: implement more dbus functionality
Lennart Poettering [Tue, 21 Jun 2011 17:20:05 +0000 (19:20 +0200)]
logind: implement more dbus functionality

8 years agologind: implement idle hint logic
Lennart Poettering [Fri, 17 Jun 2011 13:59:18 +0000 (15:59 +0200)]
logind: implement idle hint logic

8 years agodbus: add dbus introspection extraction
Lennart Poettering [Thu, 16 Jun 2011 22:15:02 +0000 (00:15 +0200)]
dbus: add dbus introspection extraction