Commit Graph

2254 Commits

Author SHA1 Message Date
Kay Sievers e885455641 udev: check-keymaps.sh - fix source directory 2012-04-12 00:09:13 +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
Kay Sievers 4590cfe455 udev: fix RUN+= logic regarding builtin vs. program 2012-04-11 22:34:25 +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
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
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
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 77d47be64f move cgroup-util.[ch] to shared/ 2012-04-10 18:46:51 +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 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 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
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 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
Ayan George a985a8f547 keymap: Add support for Lenovo v480 touchpad toggle hotkey.
Signed-off-by: Martin Pitt <martinpitt@gnome.org>
2012-04-04 08:38:38 +02:00
Kay Sievers 4b0060e68b udev: fix gcc warnings 2012-04-04 05:31:21 +02:00
Kay Sievers 6df831f25e Merge branch 'master' of ssh://git.freedesktop.org/git/systemd/systemd 2012-04-04 05:23:51 +02:00
Kay Sievers fc863deada udev: fix gcc warnings 2012-04-04 05:21:35 +02:00
Kay Sievers 3e2147858f move imported udev into place 2012-04-04 05:05:07 +02:00
Lennart Poettering 112301ae44 journal: don't export the boot id twice per entry 2012-04-04 01:00:09 +02:00
Lennart Poettering feb88c9ff5 man: update documentation of special units 2012-04-03 22:32:05 +02:00
Lennart Poettering ffa16db026 man: document special journal fields 2012-04-03 22:31:48 +02:00
Kay Sievers 19c5f19d69 import udev repository 2012-04-03 21:08:04 +02:00