chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] remove udev_dbus.h from Makefile
[elogind.git]
/
udev-add.c
diff --git
a/udev-add.c
b/udev-add.c
index ce723e45cc74d8e2ce9266e1d7b53efbe51204c7..aef755442fd3c4ecfab6d36489d65cb8c963a28e 100644
(file)
--- a/
udev-add.c
+++ b/
udev-add.c
@@
-37,9
+37,8
@@
#include "libsysfs/sysfs/libsysfs.h"
#include "udev.h"
#include "libsysfs/sysfs/libsysfs.h"
#include "udev.h"
+#include "udev_lib.h"
#include "udev_version.h"
#include "udev_version.h"
-#include "udev_dbus.h"
-#include "udev_selinux.h"
#include "logging.h"
#include "namedev.h"
#include "udevdb.h"
#include "logging.h"
#include "namedev.h"
#include "udevdb.h"
@@
-277,9
+276,6
@@
static int create_node(struct udevice *dev, int fake)
}
}
}
}
- if (!fake)
- selinux_add_node(filename);
-
/* create symlink if requested */
foreach_strpart(dev->symlink, " ", pos, len) {
strfieldcpymax(linkname, pos, len+1);
/* create symlink if requested */
foreach_strpart(dev->symlink, " ", pos, len) {
strfieldcpymax(linkname, pos, len+1);
@@
-417,7
+413,7
@@
int udev_add_device(char *path, char *subsystem, int fake)
retval = create_node(&dev, fake);
if ((retval == 0) && (!fake))
retval = create_node(&dev, fake);
if ((retval == 0) && (!fake))
-
sysbus_send_create(&dev, path
);
+
dev_d_send(&dev, subsystem
);
exit:
if (class_dev)
exit:
if (class_dev)