chiark / gitweb /
udev: do not selinux label files in /run/udev
authorKay Sievers <kay@vrfy.org>
Thu, 31 May 2012 11:20:06 +0000 (13:20 +0200)
committerKay Sievers <kay@vrfy.org>
Thu, 31 May 2012 11:20:06 +0000 (13:20 +0200)
src/udev/udev-builtin-firmware.c
src/udev/udev-watch.c
src/udev/udevd.c

index 69e1db980a10a5ea4d82f0ffc2f22dd91544b571..56dc8fcaa93b3d9dec17b7020434549cbf284e4e 100644 (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);
index 04609a776fcf9f16fc398994c12d58a6ab5c3469..1091ec8d69765cbf4f5c6606d3d5e7bbbc232ac7 100644 (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);
 
index 131d12d1b13823383513f7a1ffab6d58fb709176..43937db8903a5aa0742717a564098111ce59b9d4 100644 (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 */