1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00
Commit Graph

3911 Commits

Author SHA1 Message Date
Michael Witten
401e59e9ae Docs: udev.xml: a shell style' -> shell-style'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:36 +00:00
Michael Witten
2e9820e374 Docs: udev.xml: Clarify PROGRAM key
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:36 +00:00
Michael Witten
65e039c2e2 Docs: udev.xml: Use `unless' for clarity
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:35 +00:00
Michael Witten
2e7f69ebbf Docs: udev.xml: Add a few more words for context
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:35 +00:00
Michael Witten
2bf11540cf Docs: udev.xml: Remove unnecessary repitition
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:35 +00:00
Michael Witten
55f5037ce8 Docs: udev.xml: `comma-separated' is a better description
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:34 +00:00
Michael Witten
b834042f05 Docs: udev.xml: Use `assignment' consistently
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:34 +00:00
Michael Witten
57c0409fce Docs: udev.xml: ,' -> :'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:34 +00:00
Michael Witten
feedf8f3ee Docs: udev.xml: key value' -> key-value'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:34 +00:00
Michael Witten
c3cba32f18 Docs: udev.xml: ,' -> ;'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:33 +00:00
Michael Witten
d4a7bf2583 Docs: udev.xml: Clarification through proper wording
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:33 +00:00
Michael Witten
933b56237d Docs: udev.xml: Use present tense
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:33 +00:00
Michael Witten
17fd0f60f2 Docs: udev.xml: are' -> is'; the subject is `Access'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:33 +00:00
Michael Witten
0e846301f4 Docs: udev.xml: Remove commas (and unnecessary repetition)
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:32 +00:00
Michael Witten
0e4fa2abfe Docs: udev.xml: Offset daemon name with commas
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:49:32 +00:00
Kay Sievers
9602509521 selinux: firmware - do not label files in runtime dir 2011-04-08 03:08:16 +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
Seth Forshee
5e0ec43fc4 keymap: Support Dell Latitude XT2 tablet-mode navigation keys
The XT2 has a rocker (up/down/enter) and back button on the side
in tablet mode, none of which work currently. Add entries for
these keys.

There is some overlap here with scan codes used in other Dell
models, so these buttons are put in a new file specific to this
model.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-04-05 19:38:36 +02:00
Martin Pitt
55eb500cc5 Avoid spinning up CD on pressing eject button
When the CD tray door is locked and the hardware eject button is pressed, newer
kernels (2.6.38+) will send out a change event with a DISK_EJECT_REQUEST==1
property. Do not run cdrom_id and blkid in this case, as the media state and
contents does not change, and this only needlessly spins up the drive again
right before ejection.
2011-04-04 11:47:54 +02:00
Martin Pitt
9bb54267a1 Revert "Do not build extras with --disable-extras"
This reverts commit 905818f596.

We do want to build some extras, just not the ones with extra dependencies.
Thanks to Juergen Daubert for pointing this out.
2011-03-31 19:23:19 +02:00
Thomas Egerer
6ee9b2cb8c udevd: add 'N:' to optstring in getopt_long 2011-03-31 17:26:37 +02:00
Lee, Chun-Yi
ff4a035a8a Add rule for Acer Aspire One ZG8 to use acer-aspire_5720 keymap
Acer Aspire One ZG8's bluetooth HW key emit 0xD9 scancode, it must map
to KEY_BLUETOOTH like Acer Aspire 5720. So, add rule for Acer Aspire One
ZG8 use acer-aspire_5720 keymap.

Tested on Acer Aspire One ZG8 netbook.

Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-03-31 16:37:31 +02:00
Kay Sievers
daf32d3217 systemd: let settle depend on trigger, do not block basic with trigger 2011-03-31 13:16:42 +02:00
David Zeuthen
42b9482ab2 Run ata_id on non-removable USB devices
If a USB device is marked as removable, it is often a SATA/PATA disk
in an enclosure (note that flash card readers and usb storage sticks
are always marked as removable). In this case, try running ata_id
(which sends ATA commands wrapped in SCSI ATA PASS THROUGH commands)
to get information about the disk. If this fails, just fall back to
running usb_id since it could be the device isn't an ATA device at
all or the device doesn't have a SAT layer.

This extra information is nice to have as it indicates if it is
suitable to send e.g. SMART commands to the disk, whether the disk
supports power management and so on. Additionally, the VPD and serial
number returned by ata_id is usually more accurate as it stems from
the disk itself instead of the enclosure.

Note that udisks has been doing this for a while

 KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="udisks-probe-ata-smart $tempnode"

so this change shouldn't be too disruptive (udisks-probe-ata-smart
also sends ATA commands via the ATA PASS THROUGH command).

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-30 10:28:24 -04:00
Kay Sievers
a138cd0714 version bump 2011-03-30 16:03:56 +02:00
Kay Sievers
30b0fee9be release 167 2011-03-30 15:58:14 +02:00
Kay Sievers
7ce99fece5 systemd: udev.socket - disable implicit dependencies
Set hostname to <eeepc>.
  Found ordering cycle on sysinit.target/start
  Walked on cycle path to systemd-tmpfiles-setup.service/start
  Walked on cycle path to local-fs.target/start
  Walked on cycle path to fedora-storage-init.service/start
  Walked on cycle path to fedora-wait-storage.service/start
  Walked on cycle path to udev-settle.service/start
  Walked on cycle path to udev.service/start
  Walked on cycle path to udev.socket/start
  Walked on cycle path to sysinit.target/start
  Breaking ordering cycle by deleting job systemd-tmpfiles-setup.service/start
2011-03-29 17:59:29 +02:00
Kay Sievers
ce440d1c1b systemd: do not enable udev-settle.service by default
This barrier service is usually not enabled by default. If enabled,
it acts as a barrier for basic.target -- so all later services will
wait for udev completely finishing its coldplug run.

It might be enabled just unconditionally, or pulled-in on-demand by
broken or non-hotplug-aware services that assume a fully populated
/dev at startup.
2011-03-29 01:14:53 +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
Seth Forshee
641842bce2 keymap: continue reading keymap after invalid scancodes
Reading of keymaps is aborted when EINVAL is returned from EVIOCGETKEYCODE.
Scan codes are not always continuous ranges of values starting at 0, so this
can result in not getting the full keymap for a device. Instead, continue
processing if EINVAL is returned.
2011-03-24 16:33:54 +01:00
Kay Sievers
864fde8a08 man: remove trigger --type=failed handling 2011-03-23 23:56:15 +01:00
Kay Sievers
079f5697c1 systemd: use sockets.target not socket.target 2011-03-23 20:35:19 +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
a31d76b186 rules: run ata_id only on SPC-3 or later optical drives 2011-03-23 12:11:38 +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
180bac9db8 fstab_import: remove from configure 2011-03-19 18:28:57 +01:00
Kay Sievers
baf2b4eb0b systemd: remove deprecated udev-retry.service 2011-03-19 18:13:01 +01:00
Kay Sievers
21c53d918a fstab_import: disable build 2011-03-19 18:11:12 +01:00
Kay Sievers
7a959f1b07 input_id: silent gcc warnings 2011-03-19 17:04:56 +01:00
Martin Pitt
1d8296d6ed input_id: Rewrite debug logging to use standard udev info() 2011-03-18 16:18:17 +01:00
Martin Pitt
792479aca5 input_id: Cover key devices which only have KEY_* > 255
We previously only tested the "key" capabilities for keys between 0 and 255 to
determine ID_INPUT_KEY. If there are none, also check for keys in the upper
block (KEY_OK/0x160 to KEY_TOUCHPAD_OFF/0x214).
2011-03-18 14:45:42 +01:00
Martin Pitt
88149f668e input_id: Avoid memory overflow with too long capability masks
Joey Lee <jlee@novell.com> reported a problem on an MSI laptop which reports a
too long capabilities/key:

E: EV==3
E: KEY==180000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

This is longer than KEY_MAX and thus caused a memory overflow. Guard against
this now and just ignore the excess blocks.
2011-03-18 13:56:32 +01:00
Martin Pitt
941c40bdc4 input_id: Add some debugging output
If $DEBUG is set, output the capability bitmaps to stderr.
2011-03-18 13:42:02 +01:00
Martin Pitt
7a86845ba1 input_id: Consistently use tabs for indentation 2011-03-18 13:32:55 +01:00
Harald Hoyer
5e199245f2 udev-acl/70-acl.rules: tag ID_REMOTE_CONTROL with acl
Used by "concordance" to access Logitech Harmony programmable remote
controls.

http://www.phildev.net/concordance/
2011-03-17 20:42:12 +01:00