summaryrefslogtreecommitdiff
path: root/src/udev
AgeCommit message (Collapse)Author
2013-01-28Add missing ':' to getopt_long 'e'Ian Stakenvicius
Parameter -e is set without additional argument in getopt and this leads to segfault when calling 'udevd -e'. systemd commit 5bbbe461fd4d133eac49f41210e2fd4846f577d8 Author: Lukas Nykryn <lnykryn@redhat.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28Handle scsi Hyper-V devices properlyIan Stakenvicius
Hyper-V has an abstract bus, which gets renumbered on guest startup. So instead of the bus numbers we should be using the device GUIDs, which can be retrieved from the 'device_id' sysfs attribute. systemd commit a24d03b8ee2ca62cd1273e27cf4e79ddcc0fbb1c Author: Hannes Reinecke <hare@suse.de> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28Port new net_id capabilities from systemd-udev-197Ian Stakenvicius
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28Honor DEVUID, DEVGID in addition to DEVMODEIan Stakenvicius
New behaviour in udev-197 systemd commit 1edefa4f1d7bae6cc19aa4a97238400c5a04f7a4 Author: Kay Sievers <kay@vrfy.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28Add missing selinux code to udev core (convenience lib)Ian Stakenvicius
Original Author: Alexey D. (TZ86) Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
2013-01-21Remove the remaining systemd code since it is not needed anymoreIan Stakenvicius
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-20Comment out sd_is_mq()Richard Yao
sd_is_mq() calls mq_getattr, which requires -lrt on systems using uclibc. Ordinarily, I would write an autotools check to handle this, but we do not use this code for anything, so I am commenting it out until a decision on the fate of this code is made. Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org> temp
2013-01-14Make binaries report udev version compatibility version instead of eudev versionRichard Yao
Software such as dracut performs a sanity check on udev by querying the udev tools for the version. Reporting the eudev version causes this check to fail, so we resort to reporting the udev compatibility versionj. Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-01-07The only functional changes in systemd-udev-196Ian Stakenvicius
As far as I can tell these are the only functional changes between the current eudev codebase and the codebase of systemd-196, in relation to udev hwdb code. There are some code style differences, and a number of error-trap-and-log lines that are not present, but that's about it Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-04Fix bugs in execv() calls to modprobeIan Stakenvicius
Change the execv() call to an execvp() call so that --with-modprobe="modprobe" is supported; also added the command as argv[0] in the call to execvp(), which fixes the failures when 'modprobe' is a symlink to kmod Signed off by ryao
2012-12-17Fixed some cosmetic naming in log entriesIan Stakenvicius
2012-12-12Changed --enable-split-usr to add hard-coded paths for rules etc in both / ↵Ian Stakenvicius
and /usr This is necessary because the code originally defined paths assuming UDEV_LIBEXECDIR was /usr prefixed, and also that udevrulesdir was located in /etc. Since (1) both of these defaults have changed, and (2) they could be set to more or less anything, we want to ensure that there is support for the standard paths as well, irrespective of what UDEV_LIBEXECDIR and UDEV_RULES_DIR are set to. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-12-08Add fallback path when accept4() is not available.Richard Yao
Commit ff2c503df091e6e4e9ab48cdb6df6ec8b7b525d0 introduced accept4() into udev, which broke compatibility with kernels older than Linux 2.6.32 (or Linux 2.6.36 on ARM). The purpose of accept4() is to permit O_NONBLOCK and O_CLOEXEC to be specified at the accept() call site while previously, they had to be set using fcntl() because Linux does not inherit them. Since accept4() increases the minimum kernel version, we add a fallback path for situations in which it is unavailable. Reported-by: Stephen Klimaszewski <steev@gentoo.org> Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-12-02Use udev version instead of eudev version for compatibilityRichard Yao
The use of the eudev version in pkgconfig files caused build failures, so we switch to the udev version for compatibility purposes. Resolves gentoo/eudev#22 Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-12-01Moved files to libudev that once were in upstream libsystemd-sharedIan Stakenvicius
2012-12-01drop ACL support, udev-acl is in consolekit upstreamIan Stakenvicius
2012-11-25Fixes the contents of udev.pcAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-24Fix paths: test/udev-test.pl now works under sudo make distcheckAnthony G. Basile
We move the test-udev.c and test-libudev.c from src/test to test. This corrects the a problem with hard coded relative paths finding the test/test/sys directory created by test/udev-test.pl. This commit draws heavily from nvinson patch in https://github.com/gentoo/eudev/pull/20 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-23Propagation of configured installation paths to Makefile.am and .c codeAnthony G. Basile
This commit is a continuation of the previous one in which all the configured paths obtained in configure.ac are propagated to the Makefile.am and .c files via AM_CPPFLAGS of the form -DUDEV_CONF_FILE=\"$(udevconffile)\". This should address the issue in https://github.com/gentoo/eudev/issues/17 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-23Consolidate configuration of all installation paths into configure.acAnthony G. Basile
The configuration of the installation paths for various components was scattered between the main configure.ac file and the various Makefile.am's. These components are: udev config file, hwdb, keymaps and force-release keymaps and the rules. This commit consolidates them all into one point in configure.ac and anticipates the inclusion of new AM_CPPFLAGS of the form -DHWDB_BIN=@udevhwdbdir@ as upstream has done, so it is easier to address issues like: https://github.com/gentoo/eudev/issues/17 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-23Permit users to disable module loading supportRichard Yao
Inspired by e30431623a7d871da123cc37055ac49abf2c20ea from systemd. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-23Use libkmod only when requestedRichard Yao
We support module loading through modprobe when libkmod is neither available nor wanted. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-23Reintroduce blkid-kmodRichard Yao
This opens the door to using disabling the use of kmod from autotools. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-22Introduce execute_commandRichard Yao
This is useful in situations where we do not have builtins avaiable. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-22Make udevlibexecdir be substituted out of configure and assigned ↵Ian Stakenvicius
${rootlibdir}/udev instead of ${root}/lib/udev
2012-11-20udev: allow helpers to be in /lib/udevEgor Y. Egorov
Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-20udev: add /lib/udev/rules.d to rules directoriesMichał Górny
This adds /lib if split-usr is enabled to the directories where udev searches for rules.d. This is needed if split-usr is enabled because some software still installs rules in /lib/udev/rules.d. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-20Fix NULL pointer deference in udev_hwdb_get_properties_list_entryFelipe Contreras
It is possible for udev_hwdb_get_properties_list_entry to be invoked during udevd initialization before hwdb has been initialized. We workaround that for now by introducing a check to handle that. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Commit-message-by: Richard Yao <ryao@gentoo.org>
2012-11-19Reintroduce blkid-builtinRichard Yao
The build failure that prompted its removal has been resolved. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-18Include dev-setup.h and cgroup-util.h to explicitly declare functionsRichard Yao
Clang 3.1 indicated that we had implicitly declared several, which is illegal in C99. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-18Fix unused result warningsKacper Kowalik (Xarthisius)
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-18Got helper in src/* and make distcheck workingAnthony G. Basile
2012-11-17Restructure src/ as per lu_zeroAnthony G. Basile
2012-11-17Fix all Makefile.am: work towards 'make distcheck' sanityAnthony G. Basile
2012-11-17Rename src/shared to src/include, a saner nameAnthony G. Basile
2012-11-17udev: firmware - disable firmware loading when firmware file is 0 byteUmut Tezduyar
If firmware file is not found in the file system, udev terminates firmware loading. This is not the case if firmware file exists in the file system but doesn't have any data in it.
2012-11-17Add missing HAVE_ACL preprocessor directivesRichard Yao
This fixes a build failure with --disable-acl Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17src/test: disable for now to get a full buildAnthony G. Basile
2012-11-17Eliminate blkid-builtinRichard Yao
Changes to rules were introduced by 7c2dee4a4d7f1b264031daaee786a8fe429884e1 while builtin-blkid support was introduced in other commits. The removal of systemd resulted in this code causing linker errors. This code adds complexity with no clear benefit, so we remove it. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17Eliminate kmod dependencyRichard Yao
Changes to rules were introduced by 06316d9f1a91b4d3efdb7402e72498cb3deb1806 while kmod support was introduced in other commits. A ton of commits were made involving kmod and it is quite clear that it is broken, so we remove it. This changes our rules to depend on modprobe. As long as the modprobe binary is in /, and not /usr, udev module loading should function properly. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17src/gudev: builds successfullyAnthony G. Basile
2012-11-17src/udev: breakout Makefile.am for helpersAnthony G. Basile
2012-11-17src/udev: continue restoring needed depsAnthony G. Basile
2012-11-16src/udev: restore needed deps from src/shareAnthony G. Basile
2012-11-16src/udev/log.c: remove log_parse_environment()Anthony G. Basile
2012-11-16src/udev/Makefile.am: work towards fixing up udev buildAnthony G. Basile
2012-11-16src/udev: work towards building udevAnthony G. Basile
2012-11-15src/libudev: successfully buildsAnthony G. Basile
2012-11-15Final step of revamping the build systemAnthony G. Basile
The structure of the source tree is basically correct and this is about as far as we can go without hacking at the C code.
2012-11-15Second step of revamping the build systemAnthony G. Basile
The original Makefile.am was drawn to the top level. This commit breaks it out into the various directories with SUBDIRS connecting them. This makes each directory easier to maintain.