aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* src/udev/udev-event.c: clean up whitespacesHEADmasterAnthony G. Basile2021-08-231-36/+36
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* On collision rename my name to a temporal one letting others got my name...Andoni Zarate2021-08-231-0/+11
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Makefile: flag -n of ln is not POSIXIssam E. Maghni2021-08-231-1/+1
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udevadm: hwdb: allow empty propertiesThomas Deutschmann2021-02-091-3/+2
| | | | | | | | | | | | | | Backport of https://github.com/systemd/systemd/commit/afe87974dd57741f74dd87165b251886f24c859f. Will address shown error > Error, empty key or value ' XKB_FIXED_VARIANT' in '/usr/lib/udev/hwdb.d/60-keyboard.hwdb' caued by recent changes in sys-apps/hwids-20201207 [Link 1]. Link 1: https://github.com/gentoo/hwids/commit/f30071bbebc0685c645783024cae0f9f213a1458#diff-7b9ba9c30888b1b5b1fa008f185e4efaff34eaff2c13f35c38b2ae0416cd891eR1840 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udevadm: hwdb: sync with systemdThomas Deutschmann2021-02-091-13/+31
| | | | | | | Backports some changes from https://github.com/systemd/systemd/commit/6a34639e76b8b59233a97533b13836d5a44e8d4a. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* switch make usage to be POSIX compatibleEthan Sommer2020-04-222-18/+14
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* src/libudev/libudev-monitor.c: do not check if /dev is tmpfsAnthony G. Basile2020-01-061-1/+1
| | | | | | | | | | This check fails for buildroot systems where /dev is not mounted as a tmpfs filesystem. Dropping this check should be safe even on regular systems. This solves issue #172. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* src/libudev/libudev-device.c: properly handle empty tag listMichał Kępień2019-03-281-0/+2
| | | | | | | See: https://github.com/gentoo/eudev/pull/171 Signed-off-by: Michał Kępień <github@kempniu.pl> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Drop unused <langinfo.h>, resolves issue 167Anthony G. Basile2019-01-091-1/+0
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Revert "udevadm: prepend $(DESTDIR) for symlink target"Anthony G. Basile2018-12-221-1/+1
| | | | | | | | This reverts commit 36d0c1c9d6efb8dc7c7e2de515b54a8c2c1eea13. This sets up the wrong symlink, see https://github.com/gentoo/eudev/pull/165 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udevadm: prepend $(DESTDIR) for symlink targetJoel Carlson2018-12-211-1/+1
| | | | | Signed-off-by: Joel Carlson <JoelsonCarl@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* missing.h: add BTN_DPAD_UPEric Le Bihan2018-12-111-0/+5
| | | | | | | | | | | | | As explained in issue 6267 of systemd [1], Linux < 3.11 does not provide definitions for BTN_DPAD_{UP,RIGHT}, which were introduced in [2]. This patch fixes this issue. [1] https://github.com/systemd/systemd/pull/6267 [2] https://github.com/torvalds/linux/commit/9ee27487127461b5cf71670b708ed5b2b8da568c Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* missing.h: add KEY_ALS_TOGGLEFabrice Fontaine2018-12-041-0/+4
| | | | | | | | | | | | | KEY_ALS_TOGGLE has been added in kernel 4.8 with https://github.com/torvalds/linux/commit/9ee27487127461b5cf71670b708ed5b2b8da568c So add it to missing.h to fix build with kernel older than 4.8 Fixes: - http://autobuild.buildroot.org/results/0c0aff02df91cdb869efa01e397f7ccc0d9f69af Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udev: don't label high-button mice as joysticksPeter Hutterer2018-09-301-7/+15
| | | | | | | | | | If a device exposes more than 16 mouse buttons, we run into the BTN_JOYSTICK range, also labelling it as joystick. And since 774ff9b this results in only ID_INPUT_JOYSTICK but no ID_INPUT_MOUSE. Fixes #8460 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Add line buffering to udevadm monitor outputDonald Johnson2018-05-301-0/+3
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udev-builtin-input_id.c: remove BTN_DPAD_* keys, upstream's commit f472d466ecAnthony G. Basile2018-02-251-7/+25
|
* udev-builtin-input_id.c: import upstream's work on input devices, issue #154Anthony G. Basile2018-02-241-60/+91
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* consistently use #pragma once for header filesMarcus Folkesson2017-12-0615-24/+26
| | | | | | | | | | | Some headerfiles are missing "#pragma once" or corresponding "#ifndef..." which may result in build error if multiple source files include the same file. Use "#pragma once" for all header files. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udevd: spit out --debug to stderrMarcus Folkesson2017-12-051-1/+3
| | | | | | | When using --debug, we want the output to our console. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udev-event.c: do not assign s to address to pointerMarcus Folkesson2017-12-041-1/+1
| | | | | | | 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>
* util.c: cleanup warningsMarcus Folkesson2017-12-041-1/+1
| | | | | | | | | 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>
* libudev-monitor.c: fail to monitor udev if udev is not startedMarcus Folkesson2017-11-291-1/+1
| | | | | | | | | | | | | 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>
* udevd.c: event-timout options requires an argumentMarcus Folkesson2017-11-291-1/+1
| | | | | | | | 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>
* udevd.c: list all short options in help textMarcus Folkesson2017-11-291-7/+7
| | | | | Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Include <sys/sysmacros.h> to build under glibc-2.25Anthony G. Basile2017-10-2110-0/+10
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* src/ata_id/ata_id.c: fix names under /dev/disk/by-id/, gentoo bug #616628Anthony G. Basile2017-09-031-5/+19
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* "always replace spaces in symlinks, unless string_escape=none" -- This fix ↵Marc A. Smith2017-08-255-28/+61
| | | | 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.
* src/udev/udev-rules.c: fix global properties, issue #142Anthony G. Basile2017-02-251-1/+12
| | | | | | | | 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>
* src/udev/udev-builtin-keyboard.c: fix build with gperf 3.1Anthony G. Basile2017-01-051-1/+0
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* configure.ac: add option to disable building programsYann E. MORIN2017-01-011-3/+9
| | | | | | | | | | | | | | | 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>
* udev-builtin-input_id.c: add missing kernel header defines.Gustavo Sverzut Barbieri2016-12-302-0/+9
| | | | | | Add missing defines so eudev builds for older kernels such as 2.6 Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
* configure.ac: add option to disable mtd_probeIoan-Adrian Ratiu2016-12-211-1/+5
| | | | | | | 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>
* src/libudev/libudev.h, src/udev/udev.h: include <sys/sysmacros.h>Anthony G. Basile2016-11-212-0/+2
| | | | | | | <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>
* src/shared/missing.h: fix getrandom system call number on ARM64Thomas Petazzoni2016-08-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* udevd: remove unnecessary cgroups handlingMurray Calavera2016-05-314-309/+0
| | | | | Signed-off-by: Murray Calavera <murray.calavera@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* shared: remove unused file `exit-status`Murray Calavera2016-04-243-77/+0
| | | | | Signed-off-by: Murray Calavera <murray.calavera@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* shared: remove unused function `execute_command`Murray Calavera2016-04-242-42/+0
| | | | | Signed-off-by: Murray Calavera <murray.calavera@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* src/shared/util.c: fix typoAnthony G. Basile2016-03-211-1/+1
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* src/shared/util.c: add fallback for ppoll(), issue #129.Anthony G. Basile2016-03-211-0/+20
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* src/udev/udevd.c: add eudev startup message for kmsgRichard Narron2015-11-221-0/+7
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Forward-ported network rule-generator code from eudev-1.10v3.1.43.1.4Ian Stakenvicius2015-09-252-11/+190
|
* Revert "udevd: warn if we receive SIGCHLD from untracked worker"v3.1.3Anthony G. Basile2015-09-111-6/+0
| | | | | | | | This reverts commit 75e930ed64b62ac7e684cbe3493963371904d55b. This fixes issue #121. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Merge pull request #122 from RomainNaour/musl-fixesblueness2015-09-112-0/+27
|\ | | | | Musl fixes
| * build-sys: check for strndupaRomain Naour2015-07-312-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | strndupa is a GNU extension, therefore it's not available for all libc libraries (musl). This patch is based on the one proposed by Emil Renner Berthing for systemd [1]. [1] http://lists.freedesktop.org/archives/systemd-devel/2014-September/023190.html Signed-off-by: Romain Naour <romain.naour@openwide.fr>
| * build-sys: check for mallinfoRomain Naour2015-07-311-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | mallinfo is not specified by POSIX or the C standards, therefore it's not available for all libc libraries (musl). Add the ability to disable mallinfo statistics. Fixes: selinux-util.c: In function ‘mac_selinux_init’: selinux-util.c:70:25: error: storage size of ‘before_mallinfo’ isn’t known struct mallinfo before_mallinfo, after_mallinfo; Signed-off-by: Romain Naour <romain.naour@openwide.fr>
* | Add missing space between filename and error messageRobert C. Sheets2015-09-081-1/+1
|/
* udevd: don't unref worker objects on SIGSTOP/SIGCONTTom Gundersen2015-07-201-2/+2
| | | | | | We should not be receiving these anyway, but let's be correct. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udevd: warn if we receive SIGCHLD from untracked workerTom Gundersen2015-07-201-0/+6
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* libudev: fix commit 3df6350Anthony G. Basile2015-07-201-2/+1
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* libudev: monitor - set nl_pid when reusing fd in ↵Tom Gundersen2015-07-201-14/+22
| | | | | | | | | udev_monitor_new_from_netlink_fd This allows a fd to be created and configured as part of one monitor, to be passed in to create a second monitor without having to redo any of the configuration. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>