1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00
Commit Graph

7959 Commits

Author SHA1 Message Date
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
Kay Sievers
cc0933371d udev: move man pages to udev section 2012-04-10 22:43:05 +02:00
Michael Olbrich
69df6f00f2 dbus: make the service property StartLimitAction writeable 2012-04-10 22:41:28 +02:00
Michael Olbrich
c57c09eed4 dbus: add generic DEFINE_BUS_PROPERTY_SET_ENUM() macro for enum properties
The defined function can be used as BusPropertySetCallback.
2012-04-10 22:41:20 +02:00
Michael Olbrich
9612f07cbf dbus: add data argument to BusPropertySetCallback
BusPropertyCallback already has the argument. It is necesary for the
callback to know what data to access.
2012-04-10 22:41:15 +02:00
Michael Olbrich
56bcbfa5f8 watchdog: really return the actual watchdog timeout
In the current code setting the return argument is never reached.
2012-04-10 22:32:30 +02:00
Kay Sievers
771f19c06a move list.h, macro.h, ioprio.h to shared/ 2012-04-10 19:47:00 +02:00
Kay Sievers
9f36aa6846 move pager.[ch] to shared/ 2012-04-10 19:32:48 +02:00
Kay Sievers
b6358b8d76 use libsystemd-daemon.la instead of source file 2012-04-10 19:23:08 +02:00
Kay Sievers
0d0a5ab46a use libsystemd-id128.la instead of source file 2012-04-10 19:14:42 +02:00
Kay Sievers
159baa1bb0 move libsystemd-capability.la dep from basic to core 2012-04-10 18:59:47 +02:00
Kay Sievers
77d47be64f move cgroup-util.[ch] to shared/ 2012-04-10 18:46:51 +02:00
Kay Sievers
d33e31f845 udev: remove deps already pulled in by LIBADD 2012-04-10 17:48:44 +02:00
Kay Sievers
04a9d3a00a udev: fix gcc warnings showing up after adding $(AM_CFLAGS) 2012-04-10 17:27:46 +02:00
Kay Sievers
235450b0d1 build-sys: add $(AM_CFLAGS) where needed 2012-04-10 16:07:17 +02:00
Kay Sievers
78b2e3a632 util: move ACL code into internal library 2012-04-10 14:59:45 +02:00
Kay Sievers
d7832d2c6e util: move all to shared/ and split external dependencies in separate internal libraries
Before:
  $ ldd /lib/systemd/systemd-timestamp
  linux-vdso.so.1 =>  (0x00007fffb05ff000)
  libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f90aac57000)
  libcap.so.2 => /lib64/libcap.so.2 (0x00007f90aaa53000)
  librt.so.1 => /lib64/librt.so.1 (0x00007f90aa84a000)
  libc.so.6 => /lib64/libc.so.6 (0x00007f90aa494000)
  /lib64/ld-linux-x86-64.so.2 (0x00007f90aae90000)
  libdl.so.2 => /lib64/libdl.so.2 (0x00007f90aa290000)
  libattr.so.1 => /lib64/libattr.so.1 (0x00007f90aa08a000)
  libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f90a9e6e000)

After:
  $ ldd systemd-timestamp
  linux-vdso.so.1 =>  (0x00007fff3cbff000)
  libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f5eaa1c3000)
  librt.so.1 => /lib64/librt.so.1 (0x00007f5ea9fbb000)
  libc.so.6 => /lib64/libc.so.6 (0x00007f5ea9c04000)
  /lib64/ld-linux-x86-64.so.2 (0x00007f5eaa3fc000)
  libdl.so.2 => /lib64/libdl.so.2 (0x00007f5ea9a00000)
  libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5ea97e4000)
2012-04-10 14:13:38 +02:00
Kay Sievers
304b9f3078 udev: set errno = ENOSYS for removed interfaces 2012-04-10 13:33:43 +02:00
Kay Sievers
b8b5e648ca update TODO 2012-04-09 22:07:18 +02:00
Kay Sievers
2d13da8821 udev: remove RUN+="socket:.." and udev_monitor_new_from_netlink() 2012-04-09 21:18:30 +02:00
Kay Sievers
83cd6b754b udev: convert 'uaccess' to a builtin 2012-04-09 19:25:41 +02:00
Kay Sievers
f1ff47be17 udev: keymap: remove rootprefix mangling from script 2012-04-08 17:10:03 +02:00
Kay Sievers
1c0f62e37b udev: fix test-udev binary 2012-04-08 17:03:17 +02:00
Kay Sievers
07cd4fc168 udev: remove support for /lib/udev/devices/; tmpfiles should be used 2012-04-08 16:50:16 +02:00
Tom Gundersen
58db57fedf udev: fix rules sort order
Commit 91418155ae moved around the code,
but did not chang ethe array index.
2012-04-08 16:09:42 +02:00
Kay Sievers
baa30fbc2c udev: switch to systemd logging functions 2012-04-08 16:06:20 +02:00
Kay Sievers
64661ee70d build-sys: bump systemd version to 'udev version 182' 2012-04-06 19:52:49 +02:00
Lennart Poettering
e96d6be763 systemd: add hardware watchdog support
This adds minimal hardware watchdog support to PID 1. The idea is that
PID 1 supervises and watchdogs system services, while the hardware
watchdog is used to supervise PID 1.

This adds two hardware watchdog configuration options, for the runtime
watchdog and for a shutdown watchdog. The former is active during normal
operation, the latter only at reboots to ensure that if a clean reboot
times out we reboot nonetheless.

If the runtime watchdog is enabled PID 1 will automatically wake up at
half the configured interval and write to the watchdog daemon.

By default we enable the shutdown watchdog, but leave the runtime
watchdog disabled in order not to break independent hardware watchdog
daemons people might be using.

This is only the most basic hookup. If necessary we can later on hook
up the watchdog ping more closely with services deemed crucial.
2012-04-05 22:15:29 +02:00
Michal Schmidt
348e27fedf job: use a lookup table for merging of job types
It is easier to see what job_type_merge() is doing when the merging
rules are written in the form of a table.

job_type_is_superset() contained redundant information. It can be
simplified to a simple rule: Type A is a superset of B iff merging A
with B gives A.

Two job types are conflicting iff they are not mergeable.

Make job_type_lookup_merge() the core function to decide the type
merging. All other job_type_*() are just short wrappers around it.
They can be inline.

test-job-type gives the same results as before.
btw, the systemd binary is smaller by almost 1 KB.
2012-04-05 11:54:13 +02:00
Kay Sievers
b8217b7bd5 update TODO 2012-04-04 14:57:36 +02:00
Kay Sievers
d3a2386d15 man: update udev man pages 2012-04-04 14:42:32 +02:00
Kay Sievers
8d62c69d9e build-sys: add a few missing headers 2012-04-04 14:15:36 +02:00
Lennart Poettering
704179d839 units: direct users to the journal for logs when entering rescue mode 2012-04-04 13:52:02 +02:00
Kay Sievers
54cf0b7fa6 udev: replace UDEV_EXPORT with _public_ 2012-04-04 13:30:09 +02:00
Kay Sievers
51fc11c10d udev: ata_id - remove assert() until we switch over to systemd logging 2012-04-04 13:29:37 +02:00
Kay Sievers
0c9507fe24 udev: enable logging 2012-04-04 13:14:29 +02:00