summaryrefslogtreecommitdiff
path: root/udev/udev_db.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-10 00:46:17 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-10 00:46:17 +0200
commit4f4b12c20388ff2cb158b040e3193f86cf7a3b96 (patch)
tree41449172690d16f6deba140d174343478f806d23 /udev/udev_db.c
parent6b12bdb62460a0bdc08d5e020a64c18bc1672bb1 (diff)
libudev: add selinux
Diffstat (limited to 'udev/udev_db.c')
-rw-r--r--udev/udev_db.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/udev/udev_db.c b/udev/udev_db.c
index e89f2c2a15..18e111ba4b 100644
--- a/udev/udev_db.c
+++ b/udev/udev_db.c
@@ -31,8 +31,6 @@
#include <sys/types.h>
#include "udev.h"
-#include "udev_selinux.h"
-
static size_t devpath_to_db_path(struct udev *udev, const char *devpath, char *filename, size_t len)
{
@@ -147,9 +145,9 @@ int udev_db_add_device(struct udevice *udevice)
!udevice->partitions && !udevice->ignore_remove) {
int ret;
dbg(udevice->udev, "nothing interesting to store, create symlink\n");
- selinux_setfscreatecon(udevice->udev, filename, NULL, S_IFLNK);
+ udev_selinux_setfscreatecon(udevice->udev, filename, S_IFLNK);
ret = symlink(udevice->name, filename);
- selinux_resetfscreatecon(udevice->udev);
+ udev_selinux_resetfscreatecon(udevice->udev);
if (ret != 0) {
err(udevice->udev, "unable to create db link '%s': %s\n", filename, strerror(errno));
return -1;