summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-05-31 13:20:06 +0200
committerKay Sievers <kay@vrfy.org>2012-05-31 13:20:06 +0200
commit667e392408d6b56db981d8e76c31990501d0faf3 (patch)
tree9d60e15a778b250137f45e0114f6f46b78977eb9
parentc66e7f04997fb42b778703418097a5023fa17581 (diff)
udev: do not selinux label files in /run/udev
-rw-r--r--src/udev/udev-builtin-firmware.c2
-rw-r--r--src/udev/udev-watch.c2
-rw-r--r--src/udev/udevd.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/udev-builtin-firmware.c b/src/udev/udev-builtin-firmware.c
index 69e1db980a..56dc8fcaa9 100644
--- a/src/udev/udev-builtin-firmware.c
+++ b/src/udev/udev-builtin-firmware.c
@@ -121,7 +121,7 @@ static int builtin_firmware(struct udev_device *dev, int argc, char *argv[], boo
/* This link indicates the missing firmware file and the associated device */
log_debug("did not find firmware file '%s'\n", firmware);
do {
- err = mkdir_parents_label(misspath, 0755);
+ err = mkdir_parents(misspath, 0755);
if (err != 0 && err != -ENOENT)
break;
err = symlink(udev_device_get_devpath(dev), misspath);
diff --git a/src/udev/udev-watch.c b/src/udev/udev-watch.c
index 04609a776f..1091ec8d69 100644
--- a/src/udev/udev-watch.c
+++ b/src/udev/udev-watch.c
@@ -111,7 +111,7 @@ void udev_watch_begin(struct udev *udev, struct udev_device *dev)
}
snprintf(filename, sizeof(filename), "/run/udev/watch/%d", wd);
- mkdir_parents_label(filename, 0755);
+ mkdir_parents(filename, 0755);
unlink(filename);
symlink(udev_device_get_id_filename(dev), filename);
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 131d12d1b1..43937db890 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -896,7 +896,7 @@ static int convert_db(struct udev *udev)
return 0;
/* make sure we do not get here again */
- mkdir_parents_label("/run/udev/data", 0755);
+ mkdir_parents("/run/udev/data", 0755);
mkdir(filename, 0755);
/* old database */