1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
Commit Graph

588 Commits

Author SHA1 Message Date
Kay Sievers
a95f038521 udevd, udev-event: sync waitpid() error handling 2011-04-21 14:05:34 +02:00
Harald Hoyer
b466e9ab39 udevd: clarify worker exit status 2011-04-21 10:09:41 +02:00
Kay Sievers
c7be212dbd udevd: log signal number when spawned processes fail 2011-04-20 18:36:01 +02:00
Kay Sievers
a178e7fe90 udevd: rules files - accept empty or /dev/null links 2011-04-20 17:58:58 +02:00
Kay Sievers
dff107dc1a udevd: always use udevd[] log prefix 2011-04-20 17:39:44 +02:00
Kay Sievers
5e8176e156 udevd: netif rename - use ifindex for temporary name 2011-04-20 17:30:30 +02:00
Kay Sievers
ead7c62ab7 udevadm: settle - kill alarm() 2011-04-20 02:18:22 +02:00
Kay Sievers
2181d30a34 timeout handling without alarm() 2011-04-20 01:54:38 +02:00
Kay Sievers
82063a88d1 udevd: ppoll() -> epoll + signalfd 2011-04-18 02:14:24 +02:00
Kay Sievers
13052c0285 use 'else if' in epoll event array loop 2011-04-17 22:10:18 +02:00
Kay Sievers
372b9bffa7 udevadm: test - use printf() instead of info() for non-debug output 2011-04-17 22:09:08 +02:00
Kay Sievers
578cd5101d udevadm: monitor - use epoll 2011-04-15 11:58:17 +02:00
Kay Sievers
7459bcdc8d udevd: get netlink socket from systemd 2011-04-14 23:46:44 +02:00
Kay Sievers
7f2d3a3fc8 require explicit "db_persist" to exclude device info from --db-cleanup 2011-04-14 14:44:56 +02:00
Kay Sievers
8b4631362f udevd: move OOM disable into --daemon option 2011-04-14 14:43:22 +02:00
Kay Sievers
d3990a576a "db_persist=" -> "db_persist" 2011-04-14 12:42:59 +02:00
Kay Sievers
02bf3e13e0 udevd: do not nice processes 2011-04-14 12:25:19 +02:00
Kay Sievers
9ead662791 udevadm: info --cleanup-db
Most of the udev database from initramfs should be deleted before
starting udev in the real root. udevadm: info --cleanup-db deletes
all database entries in /run/udev. Events that processed IMPORT{db},
or mark devices explicitely as persistent, will be excluded.
2011-04-13 22:33:01 +02:00
Kay Sievers
a3eca08b19 udevadm: settle - watch queue file 2011-04-13 18:44:28 +02:00
Kay Sievers
2903820a62 udevd: log warning if /run is not writable 2011-04-13 15:01:00 +02:00
Kay Sievers
e48e291202 trivial cleanups 2011-04-13 01:47:56 +02:00
Kay Sievers
ff2c503df0 udevadm: control - add --exit 2011-04-13 01:17:09 +02:00
Kay Sievers
51f43b5329 selinux: do not label files in runtime dir
Do not label any files in the udev runtime directory, but only nodes,
links and directories below /dev.

In case the runtime directory falls back to /dev/.udev, label this
directory once at udevd startup, but never anything below it.
2011-04-08 01:09:20 +02:00
Thomas Egerer
6ee9b2cb8c udevd: add 'N:' to optstring in getopt_long 2011-03-31 17:26:37 +02:00
Kay Sievers
864fde8a08 man: remove trigger --type=failed handling 2011-03-23 23:56:15 +01:00
Kay Sievers
fc1de713f5 systemd: bind udev control socket in systemd and split udev.service
We should bind the udev socket from systemd, so we are sure
that the abstract namespace socket is always bound by a root
process and there is never a window during an update where
an untrusted process can steal our socket.

Also split the udev.service file, so that the daemon can be
updated/restarted without triggering any coldplug events.
2011-03-23 16:40:23 +01:00
Kay Sievers
4ec9c3e797 use /run/udev/ if possible and fall back to /dev/.udev/ 2011-03-23 02:31:09 +01:00
Kay Sievers
3c6ee19027 udevd: initialize fds, for proper close() on exit 2011-03-23 01:45:21 +01:00
Kay Sievers
cf3b3fbcd5 udevd: use facility == LOG_DAEMON when writing to /dev/kmsg
Syslog wants to distinguish the sorce of messages. We should
indicate that this is a userspace message (LOG_DAEMON) and not
a kernel message (LOG_KERNEL).
2011-03-23 01:41:25 +01:00
Kay Sievers
b7822bc498 update sd-daemon.[ch] 2011-03-23 01:34:29 +01:00
Kay Sievers
5f59fa0900 move /dev/.udev/ to /dev/.run/udev/ and convert old udev database at udevd startup 2011-03-15 17:26:08 +01:00
Thomas Egerer
74e8a45ed4 udevadm: info - make attribute array static and const 2011-03-08 13:14:44 +01:00
Kay Sievers
20bee04c19 libudev: udev_device_get_sysattr_list_entry() update 2011-03-04 23:00:52 +01:00
Thomas Egerer
95ce1875d7 libudev: use sysfs attr ilist interface for attribute walk
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
2011-03-04 21:51:32 +01:00
Kay Sievers
0c19cc73da update some comments 2011-02-15 22:28:31 +01:00
Kay Sievers
50863e4a23 update gitignore 2011-02-09 22:12:15 +01:00
Kay Sievers
378380397c man: fix typo
Found by: Minh Ha-Duong.
2011-01-04 18:32:46 +01:00
Kay Sievers
9c6a11b1c6 libudev: record and export "age" of device record 2010-12-15 08:58:46 +01:00
Kay Sievers
48a0170b11 libudev: enumerate - allow to filter-out not-already-initialized devices 2010-12-14 14:18:32 +01:00
Kay Sievers
ff0e1f4e5d check ifindex > 0 instead of subsystem == "net" 2010-12-14 11:27:02 +01:00
Kay Sievers
cad40a5fe7 udevd: switch to common id_filename functions 2010-12-12 20:07:15 +01:00
Kay Sievers
24d1076696 udevd: simplify udev database and fix DEVNAME handling 2010-12-11 14:00:46 +01:00
Kay Sievers
2713e6ab0a udevd: always create /dev/{char,block}/$major:$minor 2010-12-10 13:27:03 +01:00
Kay Sievers
4281da1fa6 udevd: use dev_t or netif ifindex as database key
We need to preserve the database of network interfaces while we
rename them. Use the kernel's numbers wherever possible, instead
of the device names.

Fix wrong database filenames which contain a '/', translated
from '!' in the kernel name.

Fix segfault for kobject pathes where the subsystem can not be
determined from sysfs.
2010-12-10 01:18:15 +01:00
Kay Sievers
dc1791a9e6 udevadm: info - honor --export, --export-prefix= 2010-12-10 01:18:15 +01:00
Kay Sievers
88163971b9 udevadm: info - honor --export and --export-prefix for property query
The output will always be quoted:
  $ udevadm info --export --export-prefix=MY_ --query=property --name=sda
  MY_UDEV_LOG='3'
  MY_DEVPATH='/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda'
  MY_MAJOR='259'
  MY_MINOR='0'
  MY_DEVNAME='sda'
  MY_DEVTYPE='disk'
  MY_SUBSYSTEM='block'
2010-12-10 01:18:14 +01:00
Michal Soltys
1a6ab67030 udevd: create static nodes before /dev/null is needed 2010-11-22 13:55:20 +01:00
Harald Hoyer
851dd4ddc5 udev-rules.c: change import property buffer to 16384 bytes
import_program_into_properties() should have the same line length as
import_file_into_properties()

see also https://bugzilla.redhat.com/show_bug.cgi?id=652318
2010-11-12 14:42:35 +01:00
Jakub Wilk
b8015eea2d man: udev - workaraound -> workaround 2010-11-10 01:30:53 +01:00
Kay Sievers
1c2311c556 return proper error code in rename_netif()
<Md>  kay: can you look at rename_netif()? it returns -errno in a place,
      but I think that it may by changed by err() (at least)
<kay> Md: yeah, that doesn't look correct
2010-10-18 12:55:06 +02:00