Michael Olbrich
dee87d612d
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.
2011-07-02 00:26:23 +02:00
Henry Gebhardt
e05b415e95
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
2011-07-02 00:18:26 +02:00
Lennart Poettering
b1bc08e599
manager: don't even think of enumerating sysv services in user instances
2011-07-01 23:53:44 +02:00
Lennart Poettering
5c94603d4c
nspawn: better use setresuid() instead of setreuid()
2011-07-01 23:53:14 +02:00
Michal Vyskocil
687d0825a4
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 .
2011-07-01 23:51:14 +02:00
Michal Vyskocil
1cccf43569
nspawn: Move the get_user_creds from execute.c to utils.c for later usage in nspawn.c.
2011-07-01 23:49:56 +02:00
Lennart Poettering
bde7f90721
logind: temporarily hack right user bus address into unit file
2011-07-01 22:36:15 +02:00
Lennart Poettering
eeecf6e607
log: log to syslog unless connected to a tty in user mode
2011-07-01 22:35:34 +02:00
Lennart Poettering
0254daedb1
logind: create private subdirectory for X11 socket
2011-07-01 22:34:58 +02:00
Lennart Poettering
be81bfc4a7
dbus: listen on private sockets in user mode too
2011-07-01 22:34:37 +02:00
Lennart Poettering
8fef765900
unit: support wildcards in Environment=, EnvironmentFile=
2011-07-01 01:13:47 +02:00
Lennart Poettering
1fd45a90f5
unit: do wildcard expansion in ListenStream= and friends
2011-07-01 00:55:34 +02:00
Lennart Poettering
31e54cc807
cgroup: kill processes even in cgroups that aren't realized
2011-07-01 00:41:41 +02:00
Lennart Poettering
0aef434548
unit: add three new specifiers to use in unit files
2011-07-01 00:41:18 +02:00
Lennart Poettering
30b2c336d8
pam: initialize XDG_RUNTIME_DIR
2011-06-30 04:31:49 +02:00
Lennart Poettering
aa87e62474
execute: properly pass PAM environment to executed process
2011-06-30 04:31:34 +02:00
Lennart Poettering
9a0e689634
util: try harder to rename the process
2011-06-30 04:16:10 +02:00
Lennart Poettering
7fbf31dfe3
execute: fix PAM error checking
2011-06-30 04:15:53 +02:00
Lennart Poettering
3dead8d925
execute: invoke sigwait() in a loop when waiting for PAM parent, to avoid spurious wake-ups
2011-06-30 04:15:39 +02:00
Lennart Poettering
0f1df8e169
execute: don't invoke pam_setcred, since we are not running on a tty where the user could change his password
2011-06-30 04:14:50 +02:00
Lennart Poettering
e025b4c306
unit: consider all cgroups in the name=systemd hierarchy, even when the user has specified an explicit path in it
2011-06-30 02:41:01 +02:00
Lennart Poettering
f284f69a7b
execute: when parsing ConrolGroup= replace wildcards
2011-06-30 02:39:29 +02:00
Lennart Poettering
d42d27ead9
logind: add service for per-user shared systemd daemon
2011-06-30 02:18:01 +02:00
Lennart Poettering
e6061ab2af
logind: make sure to create/run/systemd/sessions before we try to place a fifo in it
2011-06-30 02:16:07 +02:00
Lennart Poettering
530345e782
manager: use sd_notify() to notify parent systemd that we have finished startup
2011-06-30 02:15:41 +02:00
Lennart Poettering
3b8bdddeff
execute: do initgroups() first, pam initialization second so that it can still modify the groups list
2011-06-30 02:15:01 +02:00
Lennart Poettering
64747e2d4b
exec: add ControlGroupModify= switch to allow changing access mode to cgroups fs
2011-06-30 00:11:25 +02:00
Lennart Poettering
8585357a0e
util: clear scrolling region when clearing screen
2011-06-29 21:17:31 +02:00
Lennart Poettering
5bc849fd06
logind: allow access to SetIdleHint() to owner of the session
2011-06-29 19:53:27 +02:00
Lennart Poettering
539072153c
acl: libudev currently doesn't handle properly enumerator matches with multiple tags, so avoid using them for now
2011-06-29 19:41:07 +02:00
Lennart Poettering
f5f32cd7ad
uaccess: drop ACLs in case of error, just to be safe
2011-06-29 18:06:58 +02:00
Lennart Poettering
0b191e603c
logind: hook uaccess into udev by default
2011-06-29 04:14:43 +02:00
Lennart Poettering
b4f78aeac6
logind: we need to open and close a named pipe once for read before we get EOF
2011-06-29 03:48:53 +02:00
Lennart Poettering
4a4b033ff2
logind: when initializing drop sessions that are unreferenced
2011-06-29 03:48:16 +02:00
Lennart Poettering
b668e06428
dbus: add FlushDevices() bus call to reset all seat assignments
2011-06-29 03:12:23 +02:00
Lennart Poettering
4fa4c2ac6e
logind: fix typo in config parser
2011-06-29 02:48:29 +02:00
Lennart Poettering
c36eecdfcb
man: update pam_systemd page to document new behaviour
2011-06-29 02:46:20 +02:00
Lennart Poettering
8fa365e586
logind: add man page for configuration file
2011-06-29 02:27:53 +02:00
Lennart Poettering
25d934917d
logind: move default reset controller/kill exclude list into logind
2011-06-29 02:27:16 +02:00
Lennart Poettering
ac2dcbb215
logind: udev no longer ignores subsystem matches on monitors when used in conjunction with tags
2011-06-29 01:49:21 +02:00
Lennart Poettering
1c9a2c1047
logind: be a bit more rigid with seat names
2011-06-29 01:48:59 +02:00
Lennart Poettering
ab2a782ab7
logind: fix udev rule to generate valid tags, as a temporary fix until udev gains a native feature for this
2011-06-29 01:48:30 +02:00
Lennart Poettering
193197e85c
logind: parse configuration file
2011-06-29 01:47:55 +02:00
Lennart Poettering
932e3ee76e
logind: use named pipes instead of fifos to keep track of sessions so that we can reconnect later
2011-06-29 00:06:04 +02:00
Lennart Poettering
fde78a3ac0
logind: fix generation of seat state file
2011-06-28 23:21:43 +02:00
Lennart Poettering
6560d8dec9
logind: inherit ID_SEAT even on devices that themselves are not seat assignable
2011-06-28 23:07:10 +02:00
Lennart Poettering
a0a0c7f18c
logind: retrigger devices when we reassign them
2011-06-28 23:03:56 +02:00
Lennart Poettering
88bb8d215a
logind: call udev_device_get_is_initialized() to trigger lazy loading, as a temporary work-around for broken libudev
2011-06-28 23:02:38 +02:00
Lennart Poettering
72d8c4afce
logind: supply default bus policy with minimal access
2011-06-28 21:56:41 +02:00
Lennart Poettering
c28fa3d32f
logind: include subsystem name in device id for assigning seats
2011-06-28 21:54:52 +02:00