1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00
Commit Graph

4023 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
Michael Witten
49500e9b0d Docs: README: Add a comma to offset the modifier
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:50 +00:00
Michael Witten
00ecb6745b Docs: README: set up' is the verb; setup' is a noun
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:48 +00:00
Michael Witten
fd752623fa Docs: README: Flip sentence structure to improve wording
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:47 +00:00
Michael Witten
cb936a3961 Docs: README: does never apply' -> never applies'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:46 +00:00
Michael Witten
e62c9c72cd Docs: README: Clarify configuration of existing devices
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:45 +00:00
Michael Witten
1224944f61 Docs: README: Clean up `udev extras' requirements
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:43 +00:00
Michael Witten
47d9121c9a Docs: README: Remove commas and use subjective mood
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:42 +00:00
Michael Witten
bde1af68b6 Docs: README: Add missing `and'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:41 +00:00
Michael Witten
3fe44a296a Docs: README: Use present tense
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:40 +00:00
Michael Witten
600b258456 Docs: README: Clean up a sentence
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:38 +00:00
Michael Witten
9698e70c1f Docs: README: ,' -> ;'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:37 +00:00
Michael Witten
a2ddee7392 Docs: README: to replace' -> replacing'
Signed-off-by: Michael Witten <mfwitten@gmail.com>
2011-04-11 05:14:36 +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