udev: do not selinux label files in /run/udev

This commit is contained in:
Kay Sievers
2012-05-31 13:20:06 +02:00
parent c66e7f0499
commit 667e392408
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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 */