[PATCH] remove selinux support from udev core as it's no longer needed.
This commit is contained in:
parent
3bfbe50bd8
commit
eddf1bca24
|
@ -39,7 +39,6 @@
|
||||||
#include "udev.h"
|
#include "udev.h"
|
||||||
#include "udev_lib.h"
|
#include "udev_lib.h"
|
||||||
#include "udev_version.h"
|
#include "udev_version.h"
|
||||||
#include "udev_selinux.h"
|
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
#include "namedev.h"
|
#include "namedev.h"
|
||||||
#include "udevdb.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 */
|
/* create symlink if requested */
|
||||||
foreach_strpart(dev->symlink, " ", pos, len) {
|
foreach_strpart(dev->symlink, " ", pos, len) {
|
||||||
strfieldcpymax(linkname, pos, len+1);
|
strfieldcpymax(linkname, pos, len+1);
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
#ifndef UDEV_SELINUX_H
|
|
||||||
#define UDEV_SELINUX_H
|
|
||||||
|
|
||||||
#ifdef USE_SELINUX
|
|
||||||
extern void selinux_add_node(char *filename);
|
|
||||||
#else
|
|
||||||
static void selinux_add_node(char *filename) { }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in a new issue