Commit Graph

10720 Commits

Author SHA1 Message Date
Romain Naour
0e2be0c217 build-sys: check for strndupa
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>
2015-07-31 14:57:27 +02:00
Romain Naour
24ccb6ebc5 build-sys: check for mallinfo
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>
2015-07-31 14:49:20 +02:00
Tom Gundersen
019c458afe udevd: don't unref worker objects on SIGSTOP/SIGCONT
We should not be receiving these anyway, but let's be correct.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 10:00:52 -04:00
Tom Gundersen
75e930ed64 udevd: warn if we receive SIGCHLD from untracked worker
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:52:44 -04:00
Anthony G. Basile
2cf24b3978 libudev: fix commit 3df6350
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:49:29 -04:00
Tom Gundersen
f4e9270310 libudev: monitor - set nl_pid when reusing fd in 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>
2015-07-20 09:26:56 -04:00
Tom Gundersen
3df635050b sd-device: get_subsystem - don't complain if a device does not have a subsystem
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:25:52 -04:00
Anthony G. Basile
8ba53c912b skip: udevd: manager - move a few global variables into the Manager object
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:22:48 -04:00
Anthony G. Basile
252150e181 src/gudev: remove Gobject libudev support.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:42:01 -04:00
Anthony G. Basile
1b6370e74b docs: remove gtk-docs.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:33:47 -04:00
Anthony G. Basile
9cb37638de rules: import 20-net-ifname.hwdb from upstream.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:20:16 -04:00
Marcel Holtmann
3792b2d508 hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:15:31 -04:00
Kay Sievers
871ed1d9f7 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:14:29 -04:00
Peter Hutterer
af535a4466 hwdb: move a couple of entries to expected sort order
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:12:23 -04:00
Peter Hutterer
d5ffc84249 hwdb: add Logitech MX Revolution
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:11:13 -04:00
Lennart Poettering
d67ff38fd4 hwdb: update databases from upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:10:33 -04:00
Marcel Holtmann
532135e20c hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:09:55 -04:00
Mario Limonciello
4c3c4bc941 hwdb: add support for Alienware graphics amplifier
Unplugging and plugging in the cable will create various scancodes
on the keyboard controller.

Userspace within X should be able to interact with these to show
interesting messages. Assign them to generic prog1/prog2.

(David: add comment to hwdb explaining that these keycodes are reserved)

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:09:21 -04:00
dslul
37f3e3b0f7 keymap: Add Samsung NP350V and NP670Z
typo

keymap: Add Samsung NP350V and NP670Z

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:08:42 -04:00
Peter Hutterer
43b1c1c4e8 hwdb: update Logitech's unifying receiver devices
Since 3.19, the devices have the proper vid/pid and the model number in the
name.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:08:04 -04:00
Peter Hutterer
a3d396fd36 hwdb: add Logitech TrackMan Marble Wheel USB
DPI is guesswork, no specs found on the web and calculating DPIs on a
trackball is tedious.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:07:27 -04:00
Peter Hutterer
62485d6d1c hwdb: add Apple MagicMouse entry 2015-07-20 08:06:45 -04:00
Kay Sievers
deccfc8b10 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:05:47 -04:00
Marcel Holtmann
cead3921ab hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:05:00 -04:00
Kay Sievers
97fbeb0b45 rules: block - add dasd to whitelist
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:52:06 -04:00
Cédric Delmas
224a128b0a Process cciss devices
Do not skip the persistent storage rules for cciss devices

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:50:17 -04:00
Bastien Nocera
e172381913 It's moved to the iio-sensor-proxy D-Bus service.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:45:23 -04:00
Peter Hutterer
a5cb5f0b4c Revert "hwdb: add a touchpad hwdb"
The main purpose of this hwdb was to tag touchpads that have the physical
trackstick buttons wired to the touchpad (Lenovo Carbon X1 3rd, Lenovo *50
series).  This hwdb is not required on kernels 4.0 and above, the kernel now
re-routes button presses through the trackstick's device node. Userspace does
not need to do anything.

See kernel commit cdd9dc195916ef5644cfac079094c3c1d1616e4c.

This reverts commit 001a247324b44c0e0b8fdba41a6fc66e7465b8b6.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:28:05 -04:00
Kay Sievers
b5ac92fb85 rules: remove all power management from udev
It is not udev's task to apply any of these setting that way, or
from udev rules files. Things need to be sortet out in the kernel,
or explicit whitelist can possibly be added to the hardware database.
Until that is sorted out, and general agreement, udev is not
willing to maintain any such lists or power management settings
in general.

"Thanks for digging this out! I thought my Kinesis keyboard got broken
and ordered a new one, only to find out that the new one doesn't work
as well. I'm not sure whether we should start collecting a blacklist
of keyboards which don't work with USB autosuspend, or rather a
whitelist? Or revert this wholesale?"

  https://github.com/systemd/systemd/issues/340

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:20:01 -04:00
Alex Crawford
73c2d3cd6d rules: re-add cciss rules
The original commit (1aff206) doesn't explain why these were removed.
This adds them back since they are in fact needed.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:17:36 -04:00
Alex Crawford
03638dd242 rules: whitelist xvd* devices
Xen disks need to be whitelisted as well.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:17:13 -04:00
Ed Swierk
19d2ceea61 Add /dev/xvd* to 60-persistent-storage whitelist Without this, systemd-udevd does not create persistent storage symlinks for xen block devices.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:16:26 -04:00
David Mohr
be3ceedb88 udev: Bring back persistant storage symlinks for bcache
https://bugs.debian.org/787367

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:15:57 -04:00
Tom Gundersen
0617e636ab rules: restore block watch after CHANGE events
When processing an event, the watch is disabled, make sure it is restorted after
a CHANGE event has been processed.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:14:41 -04:00
Tom Gundersen
ebcaf4b310 rules: fix typo in block watch rule
The intention was to turn this rule from using a blacklist to a whitelist, but
there was a stray '!'.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:13:39 -04:00
Anthony G. Basile
c9ed0f0dc6 configure.ac: bump 3.1.2 = upstream 220
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-06-19 12:33:33 -04:00
Anthony G. Basile
5e11fe2da4 Rename mkdir_p -> udev_mkdir_p to avoid symbol collisions.
While usptream doesn't support a static libudev.a, we will try to
do so.  However, mkdir_p() is used in lvm2 and util-linux, so
to avoid the collision, we rename it to udev_mkdir_p().  See:

https://bugs.gentoo.org/show_bug.cgi?id=520450

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-06-18 14:11:59 -04:00
Chris Clayton
52a4d0c0d5 udevd: fix REMOVE handling
The original upstream commit is at

http://cgit.freedesktop.org/systemd/systemd/commit/?id=107f2e2526d476c6cc9b81a690391c111027d641

This was reworked by Chris Clayton for eudev.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-06-18 13:22:13 -04:00
Anthony G. Basile
7061de26fa Revert "udev: don't close std{in,out,err}"
This reverts commit b2399d9b72.

This solves issue #108.  While upstream also reverted this commit,
they did so using functions in terminal-util.c.  We could import
that file and those functions but for such a small commit, its not
worth it.   We may do so at some future time if there are further
gains.  See:

40e749b59b

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-06-18 12:32:17 -04:00
Anthony G. Basile
3c49a3776a configure.ac: bump 3.1.1 = upstream 220
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-06-05 10:35:38 -04:00
Anthony G. Basile
2eba1b8055 80-net-name-slot.rules: restored for issue #117.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-06-02 10:10:45 -04:00
Anthony G. Basile
ebb37f6a47 configure.ac: add --enable-hwdb option. Address issue #111.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-30 08:50:28 -04:00
Anthony G. Basile
53997d40dd configure.ac: slightly better organize xsltproc stuff
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-30 08:36:16 -04:00
Anthony G. Basile
047416ff0f configure.ac: fix --enable-manpages. Fixes issue #109.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-30 08:25:58 -04:00
blueness
0dd8f3848e Merge pull request #116 from ahills/master
Update project URL in README
2015-05-30 07:23:28 -04:00
Anthony G. Basile
71640ee498 man: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-30 07:09:14 -04:00
Anthony G. Basile
5803c30ed2 configure.ac: bump udev to 220 and eudev to 3.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-30 06:53:04 -04:00
Anthony G. Basile
cca9d72d96 random-util.c: remove <sys/auxv.h> missing in uClibc
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-29 19:19:29 -04:00
Anthony G. Basile
63126619bb src/shared/missing.h: O_PATH and AT_EMPTY_PATH missing in uClibc's <fcntl.h>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-29 19:15:25 -04:00
Anthony G. Basile
10647c881b src/shared/util.h: update qsort_safe() for musl
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-27 12:42:05 -04:00