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] fixed up udev.spec to handle selinux stuff properly now.
[elogind.git]
/
udev-add.c
diff --git
a/udev-add.c
b/udev-add.c
index 94a423dc6e56f36fe29d1b9f5f20352740be1a18..aef755442fd3c4ecfab6d36489d65cb8c963a28e 100644
(file)
--- a/
udev-add.c
+++ b/
udev-add.c
@@
-39,8
+39,6
@@
#include "udev.h"
#include "udev_lib.h"
#include "udev_version.h"
#include "udev.h"
#include "udev_lib.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"
@@
-278,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,10
+412,8
@@
int udev_add_device(char *path, char *subsystem, int fake)
dbg("name='%s'", dev.name);
retval = create_node(&dev, fake);
dbg("name='%s'", dev.name);
retval = create_node(&dev, fake);
- if ((retval == 0) && (!fake))
{
+ if ((retval == 0) && (!fake))
dev_d_send(&dev, subsystem);
dev_d_send(&dev, subsystem);
- sysbus_send_create(&dev, path);
- }
exit:
if (class_dev)
exit:
if (class_dev)