Lennart Poettering
b5ef5549e9
logind: write rules files atomically
2011-07-05 03:29:24 +02:00
Lennart Poettering
0a31730e3b
update todo
2011-07-05 03:29:24 +02:00
Lennart Poettering
5ba7b87195
password-agent: actually really don't access unallocated memory
...
Fix for 9726f9ff11
2011-07-04 19:06:43 +02:00
Lennart Poettering
9726f9ff11
password-agent: make sure not to access unallocated memory
...
Tracked down by Frederic Crozat
2011-07-04 19:00:48 +02:00
Harald Hoyer
7cb1094ace
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
2011-07-04 12:47:50 +02:00
Harald Hoyer
31657718f5
umount: log failed umounts only once at the end
2011-07-04 12:47:50 +02:00
Harald Hoyer
6f7f51f793
umount: umount, until all umounts failed
2011-07-04 12:47:50 +02:00
Harald Hoyer
0415a10436
umount: log_info about what we unmounted
2011-07-04 12:47:50 +02:00
Michal Schmidt
b8590c197d
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
2011-07-03 01:51:09 +02:00
Michal Schmidt
30923233b3
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
2011-07-03 00:15:43 +02:00
Michal Schmidt
52c002150a
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
2011-07-03 00:12:16 +02:00
Michal Schmidt
1a63987788
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
2011-07-03 00:11:22 +02:00
Michal Schmidt
1b562e4604
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
2011-07-02 17:32:05 +02:00
Lennart Poettering
21bdae12e1
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.
2011-07-02 01:45:29 +02:00
Lennart Poettering
26b8e979c8
units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled in kernel
2011-07-02 01:00:00 +02:00
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