2008-08-27 17:11:58 +02:00
|
|
|
/*
|
|
|
|
* libudev - interface to udev device information
|
|
|
|
*
|
2010-03-10 14:52:42 +01:00
|
|
|
* Copyright (C) 2008-2010 Kay Sievers <kay.sievers@vrfy.org>
|
2008-08-27 17:11:58 +02:00
|
|
|
*
|
2009-03-26 19:29:36 +01:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2008-08-27 17:11:58 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _LIBUDEV_PRIVATE_H_
|
|
|
|
#define _LIBUDEV_PRIVATE_H_
|
|
|
|
|
2008-09-06 15:45:31 +02:00
|
|
|
#include <syslog.h>
|
2009-09-05 09:48:23 +02:00
|
|
|
#include <signal.h>
|
2010-04-22 18:12:36 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2008-08-27 17:11:58 +02:00
|
|
|
#include "libudev.h"
|
|
|
|
|
2008-10-15 14:21:33 +02:00
|
|
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
2009-06-09 23:05:25 +02:00
|
|
|
#define READ_END 0
|
|
|
|
#define WRITE_END 1
|
2008-10-15 14:21:33 +02:00
|
|
|
|
2009-06-09 19:03:39 +02:00
|
|
|
static inline void __attribute__((always_inline, format(printf, 2, 3)))
|
2008-10-09 22:24:43 +02:00
|
|
|
udev_log_null(struct udev *udev, const char *format, ...) {}
|
2008-09-29 18:50:21 +02:00
|
|
|
|
2009-06-09 19:03:39 +02:00
|
|
|
#define udev_log_cond(udev, prio, arg...) \
|
|
|
|
do { \
|
|
|
|
if (udev_get_log_priority(udev) >= prio) \
|
2009-12-25 14:47:59 +01:00
|
|
|
udev_log(udev, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \
|
2009-06-09 19:03:39 +02:00
|
|
|
} while (0)
|
|
|
|
|
2009-06-14 17:53:15 +02:00
|
|
|
#ifdef ENABLE_LOGGING
|
|
|
|
# ifdef ENABLE_DEBUG
|
2009-06-09 19:03:39 +02:00
|
|
|
# define dbg(udev, arg...) udev_log_cond(udev, LOG_DEBUG, ## arg)
|
2008-09-30 16:16:29 +02:00
|
|
|
# else
|
2008-10-09 22:24:43 +02:00
|
|
|
# define dbg(udev, arg...) udev_log_null(udev, ## arg)
|
2008-09-30 16:16:29 +02:00
|
|
|
# endif
|
2009-06-09 19:03:39 +02:00
|
|
|
# define info(udev, arg...) udev_log_cond(udev, LOG_INFO, ## arg)
|
|
|
|
# define err(udev, arg...) udev_log_cond(udev, LOG_ERR, ## arg)
|
2008-09-06 15:45:31 +02:00
|
|
|
#else
|
2008-10-09 22:24:43 +02:00
|
|
|
# define dbg(udev, arg...) udev_log_null(udev, ## arg)
|
|
|
|
# define info(udev, arg...) udev_log_null(udev, ## arg)
|
|
|
|
# define err(udev, arg...) udev_log_null(udev, ## arg)
|
2008-09-06 15:45:31 +02:00
|
|
|
#endif
|
2008-08-27 17:11:58 +02:00
|
|
|
|
2009-06-09 22:47:48 +02:00
|
|
|
static inline void udev_log_init(const char *program_name)
|
|
|
|
{
|
|
|
|
openlog(program_name, LOG_PID | LOG_CONS, LOG_DAEMON);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void udev_log_close(void)
|
|
|
|
{
|
|
|
|
closelog();
|
|
|
|
}
|
|
|
|
|
|
|
|
/* libudev.c */
|
2008-08-27 17:11:58 +02:00
|
|
|
void udev_log(struct udev *udev,
|
|
|
|
int priority, const char *file, int line, const char *fn,
|
|
|
|
const char *format, ...)
|
2009-06-09 19:03:39 +02:00
|
|
|
__attribute__((format(printf, 6, 7)));
|
2009-04-26 13:59:39 +02:00
|
|
|
const char *udev_get_rules_path(struct udev *udev);
|
2011-03-23 02:31:09 +01:00
|
|
|
const char *udev_get_run_config_path(struct udev *udev);
|
|
|
|
const char *udev_set_run_path(struct udev *udev, const char *path);
|
2009-04-26 13:59:39 +02:00
|
|
|
struct udev_list_entry *udev_add_property(struct udev *udev, const char *key, const char *value);
|
|
|
|
struct udev_list_entry *udev_get_properties_list_entry(struct udev *udev);
|
2008-09-01 18:52:22 +02:00
|
|
|
|
2009-06-09 22:47:48 +02:00
|
|
|
/* libudev-device.c */
|
2009-06-09 13:11:23 +02:00
|
|
|
struct udev_device *udev_device_new(struct udev *udev);
|
2010-12-12 20:07:15 +01:00
|
|
|
struct udev_device *udev_device_new_from_id_filename(struct udev *udev, char *id);
|
2009-04-26 13:59:39 +02:00
|
|
|
int udev_device_set_syspath(struct udev_device *udev_device, const char *syspath);
|
|
|
|
int udev_device_set_subsystem(struct udev_device *udev_device, const char *subsystem);
|
|
|
|
int udev_device_set_devtype(struct udev_device *udev_device, const char *devtype);
|
|
|
|
int udev_device_set_devnode(struct udev_device *udev_device, const char *devnode);
|
2009-09-09 18:18:17 +02:00
|
|
|
int udev_device_add_devlink(struct udev_device *udev_device, const char *devlink, int unique);
|
2009-04-26 13:59:39 +02:00
|
|
|
void udev_device_cleanup_devlinks_list(struct udev_device *udev_device);
|
|
|
|
struct udev_list_entry *udev_device_add_property(struct udev_device *udev_device, const char *key, const char *value);
|
2010-03-17 17:42:35 +01:00
|
|
|
void udev_device_add_property_from_string_parse(struct udev_device *udev_device, const char *property);
|
|
|
|
int udev_device_add_property_from_string_parse_finish(struct udev_device *udev_device);
|
2009-04-26 13:59:39 +02:00
|
|
|
char **udev_device_get_properties_envp(struct udev_device *udev_device);
|
|
|
|
ssize_t udev_device_get_properties_monitor_buf(struct udev_device *udev_device, const char **buf);
|
2011-03-15 17:26:08 +01:00
|
|
|
int udev_device_read_db(struct udev_device *udev_device, const char *dbfile);
|
2009-04-26 13:59:39 +02:00
|
|
|
int udev_device_read_uevent_file(struct udev_device *udev_device);
|
|
|
|
int udev_device_set_action(struct udev_device *udev_device, const char *action);
|
|
|
|
int udev_device_set_driver(struct udev_device *udev_device, const char *driver);
|
|
|
|
const char *udev_device_get_devpath_old(struct udev_device *udev_device);
|
2009-08-19 20:49:49 +02:00
|
|
|
const char *udev_device_get_sysname_old(struct udev_device *udev_device);
|
2009-04-26 13:59:39 +02:00
|
|
|
int udev_device_set_devpath_old(struct udev_device *udev_device, const char *devpath_old);
|
2009-05-04 04:52:31 +02:00
|
|
|
const char *udev_device_get_knodename(struct udev_device *udev_device);
|
2010-12-10 01:13:35 +01:00
|
|
|
const char *udev_device_get_id_filename(struct udev_device *udev_device);
|
2010-12-14 14:18:32 +01:00
|
|
|
void udev_device_set_is_initialized(struct udev_device *udev_device);
|
2010-03-10 14:52:42 +01:00
|
|
|
int udev_device_add_tag(struct udev_device *udev_device, const char *tag);
|
2010-04-22 18:12:36 +02:00
|
|
|
void udev_device_cleanup_tags_list(struct udev_device *udev_device);
|
2010-03-10 14:52:42 +01:00
|
|
|
int udev_device_has_tag(struct udev_device *udev_device, const char *tag);
|
2009-05-04 04:52:31 +02:00
|
|
|
int udev_device_set_knodename(struct udev_device *udev_device, const char *knodename);
|
2009-04-26 13:59:39 +02:00
|
|
|
int udev_device_get_timeout(struct udev_device *udev_device);
|
|
|
|
int udev_device_set_timeout(struct udev_device *udev_device, int timeout);
|
|
|
|
int udev_device_set_devnum(struct udev_device *udev_device, dev_t devnum);
|
|
|
|
int udev_device_set_seqnum(struct udev_device *udev_device, unsigned long long int seqnum);
|
2010-12-15 08:57:46 +01:00
|
|
|
unsigned long long udev_device_get_usec_initialized(struct udev_device *udev_device);
|
|
|
|
void udev_device_set_usec_initialized(struct udev_device *udev_device, unsigned long long usec_initialized);
|
2009-04-26 13:59:39 +02:00
|
|
|
int udev_device_get_devlink_priority(struct udev_device *udev_device);
|
|
|
|
int udev_device_set_devlink_priority(struct udev_device *udev_device, int prio);
|
|
|
|
int udev_device_get_watch_handle(struct udev_device *udev_device);
|
|
|
|
int udev_device_set_watch_handle(struct udev_device *udev_device, int handle);
|
2010-10-13 13:03:27 +02:00
|
|
|
int udev_device_get_ifindex(struct udev_device *udev_device);
|
|
|
|
int udev_device_set_ifindex(struct udev_device *udev_device, int ifindex);
|
2009-04-26 13:59:39 +02:00
|
|
|
void udev_device_set_info_loaded(struct udev_device *device);
|
2011-04-13 22:33:01 +02:00
|
|
|
bool udev_device_get_db_persist(struct udev_device *udev_device);
|
|
|
|
void udev_device_set_db_persist(struct udev_device *udev_device);
|
2008-09-01 18:52:22 +02:00
|
|
|
|
2009-06-09 23:12:12 +02:00
|
|
|
/* libudev-device-private.c */
|
2009-04-26 13:59:39 +02:00
|
|
|
int udev_device_update_db(struct udev_device *udev_device);
|
|
|
|
int udev_device_delete_db(struct udev_device *udev_device);
|
2010-04-23 09:01:56 +02:00
|
|
|
int udev_device_tag_index(struct udev_device *dev, struct udev_device *dev_old, bool add);
|
2008-10-16 17:30:06 +02:00
|
|
|
|
2009-06-09 22:47:48 +02:00
|
|
|
/* libudev-monitor.c - netlink/unix socket communication */
|
2009-06-04 01:44:04 +02:00
|
|
|
int udev_monitor_disconnect(struct udev_monitor *udev_monitor);
|
|
|
|
int udev_monitor_allow_unicast_sender(struct udev_monitor *udev_monitor, struct udev_monitor *sender);
|
|
|
|
int udev_monitor_send_device(struct udev_monitor *udev_monitor,
|
|
|
|
struct udev_monitor *destination, struct udev_device *udev_device);
|
2011-04-14 23:46:44 +02:00
|
|
|
struct udev_monitor *udev_monitor_new_from_netlink_fd(struct udev *udev, const char *name, int fd);
|
2008-10-09 23:38:30 +02:00
|
|
|
|
2009-06-09 22:47:48 +02:00
|
|
|
/* libudev-ctrl.c - daemon runtime setup */
|
2008-09-08 17:59:00 +02:00
|
|
|
struct udev_ctrl;
|
2009-04-26 13:59:39 +02:00
|
|
|
struct udev_ctrl *udev_ctrl_new_from_socket(struct udev *udev, const char *socket_path);
|
2011-04-14 23:46:44 +02:00
|
|
|
struct udev_ctrl *udev_ctrl_new_from_socket_fd(struct udev *udev, const char *socket_path, int fd);
|
2009-04-26 13:59:39 +02:00
|
|
|
int udev_ctrl_enable_receiving(struct udev_ctrl *uctrl);
|
|
|
|
struct udev_ctrl *udev_ctrl_ref(struct udev_ctrl *uctrl);
|
2011-04-13 01:17:09 +02:00
|
|
|
struct udev_ctrl *udev_ctrl_unref(struct udev_ctrl *uctrl);
|
2009-04-26 13:59:39 +02:00
|
|
|
struct udev *udev_ctrl_get_udev(struct udev_ctrl *uctrl);
|
|
|
|
int udev_ctrl_get_fd(struct udev_ctrl *uctrl);
|
2011-04-13 01:17:09 +02:00
|
|
|
int udev_ctrl_send_set_log_level(struct udev_ctrl *uctrl, int priority, int timeout);
|
|
|
|
int udev_ctrl_send_stop_exec_queue(struct udev_ctrl *uctrl, int timeout);
|
|
|
|
int udev_ctrl_send_start_exec_queue(struct udev_ctrl *uctrl, int timeout);
|
|
|
|
int udev_ctrl_send_reload_rules(struct udev_ctrl *uctrl, int timeout);
|
|
|
|
int udev_ctrl_send_ping(struct udev_ctrl *uctrl, int timeout);
|
|
|
|
int udev_ctrl_send_exit(struct udev_ctrl *uctrl, int timeout);
|
|
|
|
int udev_ctrl_send_set_env(struct udev_ctrl *uctrl, const char *key, int timeout);
|
|
|
|
int udev_ctrl_send_set_children_max(struct udev_ctrl *uctrl, int count, int timeout);
|
|
|
|
struct udev_ctrl_connection;
|
|
|
|
struct udev_ctrl_connection *udev_ctrl_get_connection(struct udev_ctrl *uctrl);
|
|
|
|
struct udev_ctrl_connection *udev_ctrl_connection_ref(struct udev_ctrl_connection *conn);
|
|
|
|
struct udev_ctrl_connection *udev_ctrl_connection_unref(struct udev_ctrl_connection *conn);
|
2008-09-08 17:59:00 +02:00
|
|
|
struct udev_ctrl_msg;
|
2011-04-13 01:17:09 +02:00
|
|
|
struct udev_ctrl_msg *udev_ctrl_receive_msg(struct udev_ctrl_connection *conn);
|
2009-04-26 13:59:39 +02:00
|
|
|
struct udev_ctrl_msg *udev_ctrl_msg_ref(struct udev_ctrl_msg *ctrl_msg);
|
2011-04-13 01:17:09 +02:00
|
|
|
struct udev_ctrl_msg *udev_ctrl_msg_unref(struct udev_ctrl_msg *ctrl_msg);
|
2009-04-26 13:59:39 +02:00
|
|
|
int udev_ctrl_get_set_log_level(struct udev_ctrl_msg *ctrl_msg);
|
|
|
|
int udev_ctrl_get_stop_exec_queue(struct udev_ctrl_msg *ctrl_msg);
|
|
|
|
int udev_ctrl_get_start_exec_queue(struct udev_ctrl_msg *ctrl_msg);
|
|
|
|
int udev_ctrl_get_reload_rules(struct udev_ctrl_msg *ctrl_msg);
|
2011-04-13 01:17:09 +02:00
|
|
|
int udev_ctrl_get_ping(struct udev_ctrl_msg *ctrl_msg);
|
|
|
|
int udev_ctrl_get_exit(struct udev_ctrl_msg *ctrl_msg);
|
2009-04-26 13:59:39 +02:00
|
|
|
const char *udev_ctrl_get_set_env(struct udev_ctrl_msg *ctrl_msg);
|
2010-05-27 17:27:56 +02:00
|
|
|
int udev_ctrl_get_set_children_max(struct udev_ctrl_msg *ctrl_msg);
|
2008-09-08 17:59:00 +02:00
|
|
|
|
2009-06-09 22:47:48 +02:00
|
|
|
/* libudev-list.c */
|
2008-10-09 22:24:43 +02:00
|
|
|
struct udev_list_node {
|
|
|
|
struct udev_list_node *next, *prev;
|
2008-09-26 19:44:53 +02:00
|
|
|
};
|
2011-04-13 01:17:09 +02:00
|
|
|
#define UDEV_LIST(list) struct udev_list_node list = { &(list), &(list) }
|
2009-04-26 13:59:39 +02:00
|
|
|
void udev_list_init(struct udev_list_node *list);
|
|
|
|
int udev_list_is_empty(struct udev_list_node *list);
|
|
|
|
void udev_list_node_append(struct udev_list_node *new, struct udev_list_node *list);
|
|
|
|
void udev_list_node_remove(struct udev_list_node *entry);
|
2008-10-17 18:59:08 +02:00
|
|
|
#define udev_list_node_foreach(node, list) \
|
|
|
|
for (node = (list)->next; \
|
|
|
|
node != list; \
|
|
|
|
node = (node)->next)
|
|
|
|
#define udev_list_node_foreach_safe(node, tmp, list) \
|
|
|
|
for (node = (list)->next, tmp = (node)->next; \
|
|
|
|
node != list; \
|
|
|
|
node = tmp, tmp = (tmp)->next)
|
2009-04-26 13:59:39 +02:00
|
|
|
struct udev_list_entry *udev_list_entry_add(struct udev *udev, struct udev_list_node *list,
|
2008-10-09 22:24:43 +02:00
|
|
|
const char *name, const char *value,
|
|
|
|
int unique, int sort);
|
2009-04-26 13:59:39 +02:00
|
|
|
void udev_list_entry_delete(struct udev_list_entry *entry);
|
|
|
|
void udev_list_entry_remove(struct udev_list_entry *entry);
|
|
|
|
void udev_list_entry_insert_before(struct udev_list_entry *new, struct udev_list_entry *entry);
|
|
|
|
void udev_list_entry_append(struct udev_list_entry *new, struct udev_list_node *list);
|
|
|
|
void udev_list_cleanup_entries(struct udev *udev, struct udev_list_node *name_list);
|
|
|
|
struct udev_list_entry *udev_list_get_entry(struct udev_list_node *list);
|
2010-03-10 14:52:42 +01:00
|
|
|
unsigned int udev_list_entry_get_flags(struct udev_list_entry *list_entry);
|
|
|
|
void udev_list_entry_set_flags(struct udev_list_entry *list_entry, unsigned int flags);
|
2008-10-16 20:12:16 +02:00
|
|
|
#define udev_list_entry_foreach_safe(entry, tmp, first) \
|
2008-10-17 18:59:08 +02:00
|
|
|
for (entry = first, tmp = udev_list_entry_get_next(entry); \
|
2008-09-28 01:34:55 +02:00
|
|
|
entry != NULL; \
|
|
|
|
entry = tmp, tmp = udev_list_entry_get_next(tmp))
|
2008-09-25 13:20:27 +02:00
|
|
|
|
2009-06-09 22:47:48 +02:00
|
|
|
/* libudev-queue.c */
|
2009-05-21 22:22:37 +02:00
|
|
|
unsigned long long int udev_get_kernel_seqnum(struct udev *udev);
|
|
|
|
int udev_queue_read_seqnum(FILE *queue_file, unsigned long long int *seqnum);
|
|
|
|
ssize_t udev_queue_read_devpath(FILE *queue_file, char *devpath, size_t size);
|
|
|
|
ssize_t udev_queue_skip_devpath(FILE *queue_file);
|
|
|
|
|
2009-06-09 23:12:12 +02:00
|
|
|
/* libudev-queue-private.c */
|
2009-05-21 22:22:37 +02:00
|
|
|
struct udev_queue_export *udev_queue_export_new(struct udev *udev);
|
|
|
|
void udev_queue_export_unref(struct udev_queue_export *udev_queue_export);
|
|
|
|
void udev_queue_export_cleanup(struct udev_queue_export *udev_queue_export);
|
|
|
|
int udev_queue_export_device_queued(struct udev_queue_export *udev_queue_export, struct udev_device *udev_device);
|
|
|
|
int udev_queue_export_device_finished(struct udev_queue_export *udev_queue_export, struct udev_device *udev_device);
|
|
|
|
int udev_queue_export_device_failed(struct udev_queue_export *udev_queue_export, struct udev_device *udev_device);
|
2008-10-01 09:34:07 +02:00
|
|
|
|
2009-06-09 23:05:25 +02:00
|
|
|
/* libudev-util.c */
|
2008-11-05 21:49:52 +01:00
|
|
|
#define UTIL_PATH_SIZE 1024
|
|
|
|
#define UTIL_NAME_SIZE 512
|
2010-03-02 23:10:02 +01:00
|
|
|
#define UTIL_LINE_SIZE 16384
|
2008-11-05 21:49:52 +01:00
|
|
|
#define UDEV_ALLOWED_CHARS_INPUT "/ $%?,"
|
2009-04-26 13:59:39 +02:00
|
|
|
ssize_t util_get_sys_subsystem(struct udev *udev, const char *syspath, char *subsystem, size_t size);
|
|
|
|
ssize_t util_get_sys_driver(struct udev *udev, const char *syspath, char *driver, size_t size);
|
|
|
|
int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size);
|
|
|
|
int util_log_priority(const char *priority);
|
2009-05-20 17:57:52 +02:00
|
|
|
size_t util_path_encode(const char *src, char *dest, size_t size);
|
2009-04-26 13:59:39 +02:00
|
|
|
size_t util_path_decode(char *s);
|
|
|
|
void util_remove_trailing_chars(char *path, char c);
|
2009-05-20 17:57:52 +02:00
|
|
|
size_t util_strpcpy(char **dest, size_t size, const char *src);
|
2009-06-09 19:03:39 +02:00
|
|
|
size_t util_strpcpyl(char **dest, size_t size, const char *src, ...) __attribute__((sentinel));
|
2009-05-20 17:57:52 +02:00
|
|
|
size_t util_strscpy(char *dest, size_t size, const char *src);
|
2009-06-09 19:03:39 +02:00
|
|
|
size_t util_strscpyl(char *dest, size_t size, const char *src, ...) __attribute__((sentinel));
|
2009-04-26 13:59:39 +02:00
|
|
|
int udev_util_replace_whitespace(const char *str, char *to, size_t len);
|
|
|
|
int udev_util_replace_chars(char *str, const char *white);
|
|
|
|
int udev_util_encode_string(const char *str, char *str_enc, size_t len);
|
2010-04-22 18:12:36 +02:00
|
|
|
unsigned int util_string_hash32(const char *key);
|
|
|
|
uint64_t util_string_bloom64(const char *str);
|
2009-06-09 23:05:25 +02:00
|
|
|
|
|
|
|
/* libudev-util-private.c */
|
|
|
|
int util_create_path(struct udev *udev, const char *path);
|
2011-04-08 01:03:49 +02:00
|
|
|
int util_create_path_selinux(struct udev *udev, const char *path);
|
2009-06-09 23:05:25 +02:00
|
|
|
int util_delete_path(struct udev *udev, const char *path);
|
|
|
|
int util_unlink_secure(struct udev *udev, const char *filename);
|
|
|
|
uid_t util_lookup_user(struct udev *udev, const char *user);
|
|
|
|
gid_t util_lookup_group(struct udev *udev, const char *group);
|
|
|
|
int util_resolve_subsys_kernel(struct udev *udev, const char *string,
|
|
|
|
char *result, size_t maxsize, int read_value);
|
2011-04-20 01:53:03 +02:00
|
|
|
unsigned long long now_usec(void);
|
2009-06-09 23:05:25 +02:00
|
|
|
|
|
|
|
/* libudev-selinux-private.c */
|
2009-06-14 17:53:15 +02:00
|
|
|
#ifndef WITH_SELINUX
|
2009-06-09 23:05:25 +02:00
|
|
|
static inline void udev_selinux_init(struct udev *udev) {}
|
|
|
|
static inline void udev_selinux_exit(struct udev *udev) {}
|
|
|
|
static inline void udev_selinux_lsetfilecon(struct udev *udev, const char *file, unsigned int mode) {}
|
|
|
|
static inline void udev_selinux_setfscreatecon(struct udev *udev, const char *file, unsigned int mode) {}
|
2010-08-06 09:08:51 +02:00
|
|
|
static inline void udev_selinux_setfscreateconat(struct udev *udev, int dfd, const char *file, unsigned int mode) {}
|
2009-06-09 23:05:25 +02:00
|
|
|
static inline void udev_selinux_resetfscreatecon(struct udev *udev) {}
|
|
|
|
#else
|
|
|
|
void udev_selinux_init(struct udev *udev);
|
|
|
|
void udev_selinux_exit(struct udev *udev);
|
|
|
|
void udev_selinux_lsetfilecon(struct udev *udev, const char *file, unsigned int mode);
|
|
|
|
void udev_selinux_setfscreatecon(struct udev *udev, const char *file, unsigned int mode);
|
2010-08-06 09:08:51 +02:00
|
|
|
void udev_selinux_setfscreateconat(struct udev *udev, int dfd, const char *file, unsigned int mode);
|
2009-06-09 23:05:25 +02:00
|
|
|
void udev_selinux_resetfscreatecon(struct udev *udev);
|
|
|
|
#endif
|
2010-05-20 09:04:26 +02:00
|
|
|
|
2008-08-27 17:11:58 +02:00
|
|
|
#endif
|