Commit Graph
179 Commits
Author SHA1 Message Date
Kay Sievers 842ee61c43 libudev: print log_fn address instead of ctx when setting logging function
Patch from Jiri Pirko <jpirko@redhat.com> for libabc.
2011-11-08 21:59:27 +01:00
Kay Sievers 6a90a5124a make: tweak some autofoo according to Flameeyes' recommendations for libabc 2011-11-04 15:16:35 +01:00
Kay Sievers 0bbe8838e7 libudev: export udev_util_encode_string() 2011-10-06 01:10:59 +02:00
Kay Sievers 289a1821a4 remove 'udevadm trigger --type=failed' and SYSFS, ID, BUS keys 2011-10-06 00:45:06 +02:00
Kay Sievers a3321f687b libudev: fix typo in documentation 2011-09-26 21:36:32 +02:00
Kay Sievers c99b72121f libudev: list - properly sort linked list not only the index
<mgorny> it seems that udev-git is b0rked while tag '173' works fine for me
<mgorny> the rule in question is:
<mgorny> also, with >173 persistent-net rules seem to get constantly recreated
         for same devices
<kay> mgorny: logic bug. we only sort the keys in an index, but we don't care
      about the index when reading the list, which doesn't work too well for
      the rules file list where we depend on the order
2011-08-28 22:45:34 +02:00
Kay Sievers 2fdaa983a9 libudev: udev_device_get_sysattr_value() return syspath of custom links 2011-08-17 21:07:09 +02:00
Kay Sievers a20a57a7bf export USEC_INITIALIZED= and take timestamp on message receive time 2011-08-17 21:05:18 +02:00
Kay Sievers cdfdc85fb5 libudev: util_get_sys_(subsystem,driver}() -> util_get_sys_core_link_value() 2011-08-17 21:03:05 +02:00
Kay Sievers d7867b3183 implement path_id, usb_id, input_id as built-in command 2011-08-05 02:00:30 +02:00
Kay Sievers 869c903160 libudev: list - use binary search for list lookup 2011-08-04 22:59:58 +02:00
Kay Sievers ce0119d98a gtk-doc: delete empty files 2011-07-31 02:59:25 +02:00
Kay Sievers c15d02e570 libudev: ctrl - move code to udev directory 2011-07-11 01:16:32 +02:00
Kay Sievers a07e011434 libudev: enumerate - clarify documentation 2011-07-08 02:09:40 +02:00
Kay Sievers 6ed03d1e2c libudev: enumerate - include parent device itself with match_parent() 2011-07-08 00:57:58 +02:00
Kay Sievers b05211fa3e libudev: enumerate - add udev_enumerate_add_match_parent() 2011-07-08 00:42:35 +02:00
Kay Sievers b59c22a758 libudev: device - add udev_device_has_tag() to libudev.h and gtk-doc 2011-07-07 21:31:50 +02:00
Kay Sievers 5433b7320e libudev: device - export udev_device_has_tag() 2011-07-06 17:01:11 +02:00
Kay Sievers 2bbafbfd4f libudev: device - fix udev_device_get_tags_list_entry() to always load database 2011-06-28 20:57:05 +02:00
Kay Sievers 5057929527 libudev: monitor - update doc 2011-06-28 00:17:55 +02:00
Kay Sievers 3252936093 libudev: enumerate - scan /sys/module 2011-06-18 22:50:55 +02:00
Kay Sievers 19e47d9725 libudev: enumerate - do not ignore other matches when add_match_tag() is used 2011-05-26 02:15:43 +02:00
Kay Sievers 13d83b88b6 libudev: monitor - use SOCK_NONBLOCK 2011-05-23 22:37:02 +02:00
Kay Sievers 905555dc83 libudev: device - make a bunch of symbols static 2011-05-20 15:36:27 +02:00
Kay Sievers 666fcf03bc libudev: export symbols explicitely and individually from C code not from separate file or prefix match 2011-05-20 14:41:10 +02:00
Kay Sievers 2c64f5898c libudev: ctrl - properly wait for incoming message after connect 2011-05-19 22:57:46 +02:00
Nix 12f79fb0b9 libudev: queue - accept NULL passed into udev_queue_export_cleanup() 2011-05-16 22:51:38 +02:00
Kay Sievers 3cf1a8e36e libudev: device - use DEVMODE from kernel as the default mode 2011-05-16 22:04:02 +02:00
Kay Sievers 4b718be86d libudev: queue - always rebuild queue file when nothing is queued anymore 2011-05-16 19:13:42 +02:00
Kay Sievers 2906cbbae4 update INSTALL, NEWS, configure comment, queue doc 2011-05-10 14:58:49 +02:00
Kay Sievers 1547687a83 libudev: ctrl - log accept4() errors 2011-05-05 19:17:09 +02:00
Kay Sievers f6577968a2 libudev: queue - _unref() should return the object 2011-04-24 00:36:22 +02:00
Kay Sievers 8958da13c7 libudev: list - use bit flags for 'sort' and 'unique' 2011-04-24 00:22:23 +02:00
Kay Sievers 2181d30a34 timeout handling without alarm() 2011-04-20 01:54:38 +02:00
Kay Sievers 1d843b7d68 libudev: run_program() - select() -> epoll 2011-04-18 02:13:40 +02:00
Kay Sievers 13052c0285 use 'else if' in epoll event array loop 2011-04-17 22:10:18 +02:00
Kay Sievers f2fd4d2723 libudev: test - use epoll 2011-04-15 12:18:06 +02:00
Kay Sievers fdf52f5e2a libudev: ctrl, monitor - use SOCK_NONBLOCK 2011-04-15 01:14:10 +02:00
Kay Sievers 7459bcdc8d udevd: get netlink socket from systemd 2011-04-14 23:46:44 +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 80707e9ad6 libudev: ctrl - fix refcounting in connection handling 2011-04-13 18:21:47 +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
Kay Sievers b4155660f2 libudev: make valgrind happy
Warning: noted but unhandled ioctl 0x641e with no size/direction hints
  Syscall param socketcall.setsockopt(optval) points to uninitialised byte(s)
  at 0x6A30BAA: setsockopt (syscall-template.S:82)
  by 0x4E36E1C: udev_monitor_filter_update (libudev-monitor.c:347)
  by 0x4E36ED8: udev_monitor_enable_receiving (libudev-monitor.c:373)
  by 0x8A9E68E: I830ScreenInit (intel_driver.c:838)
  by 0x42EE9E: AddScreen (dispatch.c:3890)
  by 0x471561: InitOutput (xf86Init.c:738)
  by 0x422C18: main (main.c:205)
  Location 0x7ff0000c2 is 2 bytes inside local var "filter"
  declared at libudev-monitor.c:256, in frame #1 of thread 1
  Uninitialised value was created by a stack allocation
  at 0x4E30860: ??? (in /lib64/libudev.so.0.10.0)

Thanks to Zdenek Kabelac.
2011-03-28 14:34:05 +02:00
Kay Sievers 672ff71911 libudev: docs - add udev_get_run_path() 2011-03-25 17:58:30 +01:00
Kay Sievers 6e0768d290 libudev: export udev_get_run_path() 2011-03-25 16:29:36 +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