Marcus Folkesson
cb1cfc6c1b
man: remove UDEV_LOG environment variable
...
Last time $UDEV_LOG was referred in code was in
dacd994fda
.
Remove all traces for this legacy option.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-12-05 08:45:57 -05:00
Marcus Folkesson
4f75438278
udev-event.c: do not assign s to address to pointer
...
Solve a bug that could result in really nasty behavior.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-12-04 07:13:35 -05:00
Marcus Folkesson
e521ce6ba5
util.c: cleanup warnings
...
Resolve warning:
util.c:1730:23: warning: passing argument 1 of ‘__xpg_basename’ discards
‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-12-04 07:13:12 -05:00
Marcus Folkesson
a13158b968
CONTRIBUTION: give instruction on how to send patches to mailinglist
...
For all those who prefer emails instead of web GUIs.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-11-29 06:22:21 -05:00
Marcus Folkesson
b1e47be382
libudev-monitor.c: fail to monitor udev if udev is not started
...
We makes two controls if we consider udev is started;
access(UDEV_ROOT_RUN "/udev/control", F_OK) < 0
and
!udev_has_devtmpfs(udev))
If one(not both) of these statements fails, we consider that udev is not
running.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-11-29 06:21:11 -05:00
Marcus Folkesson
7e2a3327b3
udevd.c: event-timout options requires an argument
...
The optionparser will simply abort(3) if you try to access optarg on an
option that not takes arguments.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-11-29 06:20:26 -05:00
Marcus Folkesson
4aed06cacc
udevd.c: list all short options in help text
...
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-11-29 06:19:53 -05:00
Anthony G. Basile
8154c679d0
configure.ac: bump to version 3.2.5
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-11-21 16:46:37 -05:00
Anthony G. Basile
f5e3aea95b
Include <sys/sysmacros.h> to build under glibc-2.25
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-10-21 18:08:22 -04:00
Anthony G. Basile
eb12fb7139
Merge pull request #152 from mtansorier/master
...
configure.ac: fix typo on blkid
2017-10-08 12:22:37 -04:00
Mickaël Tansorier
ab8b62f1c1
configure.ac: fix typo on blkid
2017-10-06 17:30:41 +02:00
Anthony G. Basile
7b07373ca8
configure.ac: bump to version 3.2.4
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-05 18:06:23 -04:00
Anthony G. Basile
451bbdaa39
man/udev.xml: remove repeated section, gentoo bug #619434
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-04 20:49:25 -04:00
Anthony G. Basile
99e12e394f
rules: restore input SUBSYSTEM rule in default
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-04 18:29:33 -04:00
Anthony G. Basile
1aa224d074
configure.ac: bump to version 3.2.3
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-03 14:09:56 -04:00
Anthony G. Basile
ac4be6d36e
src/ata_id/ata_id.c: fix names under /dev/disk/by-id/, gentoo bug #616628
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-03 13:51:25 -04:00
Anthony G. Basile
7fc1d0b190
Merge pull request #149 from msmith626/symlink_spaces_fix
...
always replace spaces in symlinks, unless string_escape=none
2017-09-03 13:32:07 -04:00
Anthony G. Basile
47367bc4df
rules: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-03 13:20:33 -04:00
Anthony G. Basile
7b3556d1ea
hwdb: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-03 13:05:05 -04:00
Marc A. Smith
5c39ec9686
"always replace spaces in symlinks, unless string_escape=none" -- This fix is backported from systemd which resolves an issue with whitespace characters in symbolic links created by [e]udev. See systemd/systemd issue # 4833 and systemd/systemd pull request # 4837 for details. This issue was originally observed with some NVMe devices when using eudev 3.2.x and this fix resolves eudev issue # 148.
2017-08-25 11:44:29 -04:00
Anthony G. Basile
6b5db4f21e
configure.ac: bump to version 3.2.2
2017-04-19 17:09:29 -04:00
Anthony G. Basile
90a8c95446
src/udev/udev-rules.c: fix global properties, issue #142
...
An important hunk was lost when merging systemd commit
adeba500 leading to broken global properties, issue #142 .
This commit fixes this bug.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-02-25 14:59:19 -05:00
Anthony G. Basile
5bab4d8de0
src/udev/udev-builtin-keyboard.c: fix build with gperf 3.1
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-01-05 16:21:17 -05:00
Yann E. MORIN
18565392cf
configure.ac: add option to disable building programs
...
In some cases (e.g. trimmed-down chroot or containers), libudev is the
only thing needed, with udevd and assorted programs totally useless
(e.g. because /dev is bind-mounted from the real one and managed
out-side the chroot/container).
Add an option to ./configure to enable/disable building the programs;
this option defaults to "enable", so that it is backward compatible with
existing build procedure, and because it by default makes sense to have
udevd et al.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-01-01 18:19:58 -05:00
Anthony G. Basile
23a9d68c21
Merge pull request #139 from barbieri/eudev-old-kernels
...
udev-builtin-input_id.c: add missing kernel header defines.
2016-12-30 17:57:33 -05:00
Gustavo Sverzut Barbieri
c0f63850ad
udev-builtin-input_id.c: add missing kernel header defines.
...
Add missing defines so eudev builds for older kernels such as 2.6
Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
2016-12-30 12:55:13 -02:00
Anthony G. Basile
29f9e04a96
Merge pull request #137 from 10ne1/dev/aratiu/upstream-disable-mtd_probe
...
configure.ac: add option to disable mtd_probe
2016-12-21 14:27:43 -05:00
Ioan-Adrian Ratiu
2edc3cf879
configure.ac: add option to disable mtd_probe
...
FTL is not necessarily present on all kernels so it's useful to
have an option to disable this.
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
2016-12-21 16:30:44 +02:00
Anthony G. Basile
823db6f44c
configure.ac bump 3.2.1
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11 11:50:20 -05:00
Bastien Nocera
c61e6c912b
udev: Add rules for accelerometer orientation quirks
...
This commit adds a rules file to extract the properties from hwdb
to set on i2c IIO devices. This is used to set the ACCEL_MOUNT_MATRIX
property on IIO devices, to be consumed by iio-sensor-proxy or
equivalent daemon.
The hwdb file contains documentation on how to write quirks. Note
however that mount information is usually exported in:
- the device-tree for ARM devices
- the ACPI DSDT for Intel-compatible devices
but currently not extracted by the kernel.
Also note that some devices have the framebuffer rotation that changes
between the bootloader and the main system, which might mean that the
accelerometer is then wrongly oriented. This is a missing feature in the
i915 kernel driver: https://bugs.freedesktop.org/show_bug.cgi?id=94894
which needs to be fixed, and won't require quirks.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11 10:55:12 -05:00
Anthony G. Basile
48e435dcfd
hwdb, rules: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11 10:52:02 -05:00
Luca Barbato
04bb81119c
travis: Add docbook dep
2016-11-26 00:25:36 +01:00
Anthony G. Basile
b226ddfc1b
rules: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-23 20:00:48 -05:00
Anthony G. Basile
d08aa94fec
hwdb: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-23 11:44:20 -05:00
Anthony G. Basile
d3aab3bde9
src/libudev/libudev.h, src/udev/udev.h: include <sys/sysmacros.h>
...
<sys/sysmacros.h> is no longer implicitly pulled in via <sys/types.h>
in glibc 2.24 and above.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-21 07:22:53 -05:00
Thomas Petazzoni
4f3b8298fb
src/shared/missing.h: fix getrandom system call number on ARM64
...
The getrandom() system call number is indeed 384 on ARM, but it is not
the same on ARM64. ARM64 uses the asm-generic headers, including for
system call numbers, so the getrandom() system call number on ARM64 is
278. This fixes runtime issues of eudev on ARM64, such as:
Populating /dev using udev: [ 6.186817] udevd[1204]: starting version 3.1.5
[ 6.191662] udevd[1204]: syscall 384
[ 6.195217] Code: aa0503e4 aa0603e5 aa0703e6 d4000001 (b13ffc1f)
[ 6.201291] CPU: 4 PID: 1204 Comm: udevd Not tainted 4.7.0+ #1
[ 6.207079] Hardware name: ARM Juno development board (r2) (DT)
[ 6.212954] task: ffff800976421900 task.stack: ffff800975610000
[ 6.218825] PC is at 0xffff97f12234
[ 6.222281] LR is at 0x41b15c
[ 6.225214] pc : [<0000ffff97f12234>] lr : [<000000000041b15c>] pstate: 80000000
[ 6.232544] sp : 0000ffffcf9b3870
[ 6.235828] x29: 0000ffffcf9b3870 x28: 0000000000428218
[ 6.241110] x27: 0000000000000000 x26: 000000000042a7e3
[ 6.246395] x25: 0000ffffcf9b39c8 x24: 0000000000428000
[ 6.251670] x23: 0000000000449000 x22: 0000000000449678
[ 6.256946] x21: 0000000000000010 x20: 0000000000449000
[ 6.262233] x19: 0000000000449678 x18: 0000000000000000
[ 6.267507] x17: 0000ffff97f12210 x16: 0000000000449440
[ 6.272779] x15: 0000ffff97e4f730 x14: 0000ffff98050cb8
[ 6.278060] x13: 000000000000033c x12: 00000000000004b4
[ 6.283331] x11: 0000000000000000 x10: 0101010101010101
[ 6.288604] x9 : 0000000000001010 x8 : 0000000000000180
[ 6.293882] x7 : ffffffffffffffff x6 : ffffffffffffffff
[ 6.299154] x5 : 00000000271e36c0 x4 : 0007061c00190d07
[ 6.304426] x3 : 00000000271e36d0 x2 : 0000000000000001
[ 6.309705] x1 : 0000000000000010 x0 : 0000000000449678
[ 6.314976]
[ 6.398734] sky2 0000:08:00.0 enp8s0: renamed from eth0
Reported-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-08-06 14:26:11 -04:00
Anthony G. Basile
ec9a5d6547
configure.ac: bump 3.2 = upstream 220
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-06-01 14:33:43 -04:00
Murray Calavera
5c87a79fb0
udevd: remove unnecessary cgroups handling
...
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-31 09:46:45 -04:00
Anthony G. Basile
5ad7d7f9e7
rules: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-25 14:09:04 -04:00
Anthony G. Basile
114908765f
hwdb: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-25 13:53:22 -04:00
Anthony G. Basile
31ce9f89a5
rules: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-10 07:59:30 -04:00
Anthony G. Basile
20a05c562a
hwdb: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-10 07:57:32 -04:00
Murray Calavera
11cc291a3b
shared: remove unused file exit-status
...
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-04-24 11:51:51 -04:00
Murray Calavera
d7072e1631
shared: remove unused function execute_command
...
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-04-24 11:51:28 -04:00
Anthony G. Basile
7f4f5b7dba
src/shared/util.c: fix typo
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 11:54:57 -04:00
Anthony G. Basile
0fe32c8006
src/shared/util.c: add fallback for ppoll(), issue #129 .
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 10:58:31 -04:00
Anthony G. Basile
1e521c3cf1
configure.ac: fix some white space
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 09:51:40 -04:00
Anthony G. Basile
25a718a138
hwdb: update
...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 09:12:21 -04:00
Anthony G. Basile
4b6c99d7e5
configure.ac: use automake 1.11
2016-02-28 17:31:02 -05:00
Anthony G. Basile
754c98e8df
configure.ac: we don't need xsltproc, but making doc's does
2016-02-28 14:45:12 -05:00