udev: remove remaining selinux labeling for file in /run
This commit is contained in:
parent
e6f86cac16
commit
3cbd5f6be1
|
@ -35,7 +35,7 @@ static void udev_device_tag(struct udev_device *dev, const char *tag, bool add)
|
|||
if (add) {
|
||||
int fd;
|
||||
|
||||
mkdir_parents_label(filename, 0755);
|
||||
mkdir_parents(filename, 0755);
|
||||
fd = open(filename, O_WRONLY|O_CREAT|O_CLOEXEC|O_TRUNC|O_NOFOLLOW, 0444);
|
||||
if (fd >= 0)
|
||||
close(fd);
|
||||
|
@ -119,7 +119,7 @@ int udev_device_update_db(struct udev_device *udev_device)
|
|||
|
||||
/* write a database file */
|
||||
util_strscpyl(filename_tmp, sizeof(filename_tmp), filename, ".tmp", NULL);
|
||||
mkdir_parents_label(filename_tmp, 0755);
|
||||
mkdir_parents(filename_tmp, 0755);
|
||||
f = fopen(filename_tmp, "we");
|
||||
if (f == NULL) {
|
||||
udev_err(udev, "unable to create temporary db file '%s': %m\n", filename_tmp);
|
||||
|
|
|
@ -226,7 +226,7 @@ static void link_update(struct udev_device *dev, const char *slink, bool add)
|
|||
do {
|
||||
int fd;
|
||||
|
||||
err = mkdir_parents_label(filename, 0755);
|
||||
err = mkdir_parents(filename, 0755);
|
||||
if (err != 0 && err != -ENOENT)
|
||||
break;
|
||||
fd = open(filename, O_WRONLY|O_CREAT|O_CLOEXEC|O_TRUNC|O_NOFOLLOW, 0444);
|
||||
|
|
Loading…
Reference in a new issue