39a15c8a8d
This fixes bugs introduced by29448498c7
andd838e14515
. Previously, RUN and SECLABEL keys are stored in udev_list with its unique flag is false. If the flag is false, then udev_list is just a linked list and new entries are always added in the last. So, we should use OrderedHashmap instead of Hashmap. Fixes #11368.
16 lines
400 B
C
16 lines
400 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <sys/types.h>
|
|
|
|
#include "sd-device.h"
|
|
|
|
#include "hashmap.h"
|
|
|
|
int udev_node_add(sd_device *dev, bool apply,
|
|
mode_t mode, uid_t uid, gid_t gid,
|
|
OrderedHashmap *seclabel_list);
|
|
int udev_node_remove(sd_device *dev);
|
|
int udev_node_update_old_links(sd_device *dev, sd_device *dev_old);
|