]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - systemd/patches/systemd-185-udev-remove-remaining-selinux-labeling.patch
systemd: Update to 185.
[people/ms/ipfire-3.x.git] / systemd / patches / systemd-185-udev-remove-remaining-selinux-labeling.patch
1 From 3cbd5f6be191a4e71fc85d8b893e96d6d65bf792 Mon Sep 17 00:00:00 2001
2 From: Kay Sievers <kay@vrfy.org>
3 Date: Tue, 05 Jun 2012 15:31:32 +0000
4 Subject: udev: remove remaining selinux labeling for file in /run
5
6 ---
7 diff --git a/src/libudev/libudev-device-private.c b/src/libudev/libudev-device-private.c
8 index bdb0e70..2347736 100644
9 --- a/src/libudev/libudev-device-private.c
10 +++ b/src/libudev/libudev-device-private.c
11 @@ -35,7 +35,7 @@ static void udev_device_tag(struct udev_device *dev, const char *tag, bool add)
12 if (add) {
13 int fd;
14
15 - mkdir_parents_label(filename, 0755);
16 + mkdir_parents(filename, 0755);
17 fd = open(filename, O_WRONLY|O_CREAT|O_CLOEXEC|O_TRUNC|O_NOFOLLOW, 0444);
18 if (fd >= 0)
19 close(fd);
20 @@ -119,7 +119,7 @@ int udev_device_update_db(struct udev_device *udev_device)
21
22 /* write a database file */
23 util_strscpyl(filename_tmp, sizeof(filename_tmp), filename, ".tmp", NULL);
24 - mkdir_parents_label(filename_tmp, 0755);
25 + mkdir_parents(filename_tmp, 0755);
26 f = fopen(filename_tmp, "we");
27 if (f == NULL) {
28 udev_err(udev, "unable to create temporary db file '%s': %m\n", filename_tmp);
29 diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c
30 index 2ef6341..aee84a9 100644
31 --- a/src/udev/udev-node.c
32 +++ b/src/udev/udev-node.c
33 @@ -226,7 +226,7 @@ static void link_update(struct udev_device *dev, const char *slink, bool add)
34 do {
35 int fd;
36
37 - err = mkdir_parents_label(filename, 0755);
38 + err = mkdir_parents(filename, 0755);
39 if (err != 0 && err != -ENOENT)
40 break;
41 fd = open(filename, O_WRONLY|O_CREAT|O_CLOEXEC|O_TRUNC|O_NOFOLLOW, 0444);
42 --
43 cgit v0.9.0.2-2-gbebe