Lennart Poettering
b6e661357c
main: we want all setup functions to be in files called xxx-setup.[ch]
2012-04-12 14:29:29 +02:00
Kay Sievers
90ccc3fca7
move more main systemd parts to core/
2012-04-12 14:24:40 +02:00
Lennart Poettering
4d89613917
hostname-setup: move to core/
2012-04-12 14:23:17 +02:00
Lennart Poettering
146de8175e
shutdown: move shutdown to core since it replaces PID 1
2012-04-12 14:18:36 +02:00
Lennart Poettering
7f81d81ada
umount: fix build
2012-04-12 13:48:20 +02:00
Lennart Poettering
379079ba6b
test: test tools should still be in the src/ directory
2012-04-12 13:48:01 +02:00
Lennart Poettering
08e4738832
build-sys: dbus-loop.h is not used by the core
2012-04-12 13:42:10 +02:00
Lennart Poettering
46108b3bfd
umount: don't try to umount /dev/console, since we are using it
2012-04-12 13:35:56 +02:00
Lennart Poettering
643a14a527
build-sys: move a few things into more appropriate places
2012-04-12 13:35:56 +02:00
Lennart Poettering
fff7b732b2
build-sys: add stub makefiles to make emacs easier to use
2012-04-12 13:35:56 +02:00
Kay Sievers
6af684ee5c
move a couple of test-*.c to test/
2012-04-12 13:17:41 +02:00
Marc-Antoine Perennou
d5449fdcc5
udev: gudev - rework introspection generation
2012-04-12 13:12:06 +02:00
Kay Sievers
78a825f216
rename machine-id-main.c tomacht the binary and move main.c to core/
2012-04-12 13:12:06 +02:00
Lennart Poettering
68fb08920b
nspawn: bind mount /dev/nul to /proc/kmsg, so that the container can't muck with the host kmsg
2012-04-12 12:58:19 +02:00
Lennart Poettering
2abf99ac07
journald: add missing flag to open()
2012-04-12 12:58:19 +02:00
Lennart Poettering
68faf98ca0
execute: when we can't get the requested rlimit, get the next closest
2012-04-12 12:58:19 +02:00
Lennart Poettering
d18f337c3f
main: pass original environment block to shutdown binary so that it can detect container environments
2012-04-12 12:58:19 +02:00
Lennart Poettering
1d7f3f5cc8
units: start vconsole-setup only if there's actually a virtual console device
2012-04-12 12:58:19 +02:00
Lennart Poettering
f2a46f8da5
units: run sysctl stuff only when /proc/sys is actually writable, to quieten container boots a little
2012-04-12 12:58:19 +02:00
Lennart Poettering
d051610953
unit: introduce ConditionPathIsReadWrite
2012-04-12 12:58:19 +02:00
Kay Sievers
f33d3ec1d7
move more common files to shared/ and add them to shared.la
2012-04-12 02:39:37 +02:00
Kay Sievers
5e6f883dfc
udev: keymap - remove weird 'c2 a0' character sequences which break the check
...
$ hexdump -C src/udev/keymap/keymaps/samsung-90x3a
00000000 30 78 39 36 20 6b 62 64 69 6c 6c 75 6d 75 70 c2 |0x96 kbdillumup.|
00000010
a0 c2 a0 c2 a0 c2 a0 c2 a0 c2 a0 c2 a0 c2 a0 20 |............... |
00000020 23 20 46 6e 2b 46 38 20 6b 65 79 62 6f 61 72 64 |# Fn+F8 keyboard|
2012-04-12 01:04:30 +02:00
Léo Gillot-Lamure
40c32a4ad4
One can specify in which cgroup hierarchies a systemd-nspawn container will appear
2012-04-12 00:46:09 +02:00
Lennart Poettering
5430f7f2bc
relicense to LGPLv2.1 (with exceptions)
...
We finally got the OK from all contributors with non-trivial commits to
relicense systemd from GPL2+ to LGPL2.1+.
Some udev bits continue to be GPL2+ for now, but we are looking into
relicensing them too, to allow free copy/paste of all code within
systemd.
The bits that used to be MIT continue to be MIT.
The big benefit of the relicensing is that closed source code may now
link against libsystemd-login.so and friends.
2012-04-12 00:24:39 +02:00
Kay Sievers
e885455641
udev: check-keymaps.sh - fix source directory
2012-04-12 00:09:13 +02:00
Lennart Poettering
23e0573cea
update TODO
2012-04-11 23:56:58 +02:00
Lennart Poettering
9bdc770ccd
polkit: when spawning off agent, wait until the agent is fully initialized
2012-04-11 22:37:48 +02:00
Lennart Poettering
4771148bb9
units: exclude gettys from isolate requests
...
gettys are nowadays mostly autospawned and hence usually subject to
being shut down on isolate requests, since they are no dependency of any
other unit. This is a bad idea if the user isolates between
multi-user.graphical and graphical.target, hence exclude them from the
isolation.
This has the effect that gettys no longer cleaned up when
emergency.target is isolated, which might actualy be considered a
feature, even though it is a change from previous behaviour...
Note that the one getty that really matters (the one on tty1) is still
removed when isolating to emergency.target since it conflicts with
emergency.service.
2012-04-11 22:37:48 +02:00
Kay Sievers
4590cfe455
udev: fix RUN+= logic regarding builtin vs. program
2012-04-11 22:34:25 +02:00
Marc-Antoine Perennou
88dc4327e0
udev: fix keymap mkdir
2012-04-11 22:24:53 +02:00
Kay Sievers
635f7d8ca7
enable proper access timestamps on all tmpfs mounts
2012-04-11 22:18:55 +02:00
Kay Sievers
e5f3d1ba12
tmpfiles: open directories with O_NOATIME to preserve timestamp
...
Before:
# stat /tmp/pulse-Du5ectm60QYM | grep 'Access: 20'
Access: 2012-04-11 21:32:48.444920237 +0200
# systemd-tmpfiles --clean
# stat /tmp/pulse-Du5ectm60QYM | grep 'Access: 20'
Access: 2012-04-11 21:36:27.628925459 +0200
After:
# stat /tmp/pulse-Du5ectm60QYM | grep 'Access: 20'
Access: 2012-04-11 21:32:48.444920237 +0200
# ./systemd-tmpfiles --clean
# stat /tmp/pulse-Du5ectm60QYM | grep 'Access: 20'
Access: 2012-04-11 21:32:48.444920237 +0200
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=810257
2012-04-11 21:40:25 +02:00
Lennart Poettering
6bb92a169e
polkit: temporarily spawn of a polkit agent in terminals for possibly authenticated operations
2012-04-11 20:39:03 +02:00
Lennart Poettering
f25626edf4
main: disarm watchdog when preparing for reexecution
2012-04-11 18:40:22 +02:00
Kay Sievers
79c077224b
put acl.la in 'if HAVE_ACL' and rename acl.[ch] to acl-util.[ch]
2012-04-11 16:47:09 +02:00
Kay Sievers
b30e2f4c18
move libsystemd_core.la sources into core/
2012-04-11 16:03:51 +02:00
Lennart Poettering
9543ad1663
main: unset some bash specific environment variables that might get leaked to us
...
https://bugzilla.redhat.com/show_bug.cgi?id=811537
2012-04-11 13:20:34 +02:00
Lennart Poettering
71ecc858fa
main: drop container/initrd env vars from inherited set
...
Leave the env vars used in the container/initrd logic set for PID1, but
don't inherit them to any children.
2012-04-11 13:20:34 +02:00
Lennart Poettering
6996295f85
machine-id: don't delete runtime machine-id, and place it in /run
2012-04-11 13:20:33 +02:00
Lennart Poettering
966a5d37c3
main: add URL to cgroups check message
2012-04-11 13:20:33 +02:00
Kay Sievers
cc527a4734
split selinux label operations out of cgroup-util, socket-util
...
This prevents linking of selinux and libdl for another 15 binaries.
2012-04-11 12:49:00 +02:00
Kay Sievers
6ac405b493
build-sys: move remaining headers out EXTRA_DIST, install sd-readahead.h
2012-04-11 03:54:23 +02:00
Kay Sievers
f7b6a32e78
build-sys: add $(AM_LDFLAGS) where needed
2012-04-11 03:29:31 +02:00
Kay Sievers
69dd416595
pam_systemd: add missing libsystemd_audit.l
2012-04-11 03:16:20 +02:00
Lennart Poettering
04ebb59567
shutdownd: rework interface, allow subscribing to scheduled shutdowns
...
This extends the shutdownd interface to expose schedule shutdown
information in /run/systemd/shutdown/schedule.
This also cleans up the shutdownd protocol and documents it in a header
file sd-shutdown.h.
This is supposed to be used by client code that wants to control and
monitor scheduled shutdown.
2012-04-11 02:04:46 +02:00
Lennart Poettering
7e59bfcb18
systemctl: don't forward poweroff/reboot requests to logind if time is set or immediate or dry-run execution is requested
...
logind can't handle scheduled poweroff/reboot requests, nor
immediate/dry-run requests, hence don't attempt forwarding to logind if
these options are used.
2012-04-11 00:37:35 +02:00
Lennart Poettering
b5936820c7
logs-show: fix output of log lines lacking comm
2012-04-11 00:34:06 +02:00
Lennart Poettering
082694b75f
units: introduce nss-user-lookup.target
...
This separates user/group NSS lookups from host/network NSS lookups.
By default order all network mounts after host/network NSS lookups now,
and logind execution after user/group NSS lookups.
2012-04-11 00:11:18 +02:00
Kay Sievers
d50f0b1c9f
update TODO
2012-04-10 22:47:48 +02:00
Kay Sievers
49e942b2bc
rename basic.la to shared.la and put selinux deps in shared-selinx.la
...
Only 34 of 74 tools need libselinux linked, and libselinux is a pain
with its unconditional library constructor.
2012-04-10 22:43:05 +02:00