mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Export dm_set_selinux_context.
This commit is contained in:
parent
ffbfce30b5
commit
3aeb569036
@ -1,5 +1,6 @@
|
||||
Version 1.02.00 -
|
||||
=============================
|
||||
Export dm_set_selinux_context().
|
||||
Add dm_driver_version().
|
||||
Added dependency tree functions to library.
|
||||
Added hash, bitset, pool, dbg_malloc to library.
|
||||
|
@ -83,3 +83,4 @@ dm_hash_get_first
|
||||
dm_hash_get_next
|
||||
dm_driver_version
|
||||
dm_deptree_deactivate_children
|
||||
dm_set_selinux_context
|
||||
|
@ -453,3 +453,8 @@ struct dm_hash_node *dm_hash_get_next(struct dm_hash_table *t, struct dm_hash_no
|
||||
v = dm_hash_get_next(h, v))
|
||||
|
||||
#endif /* LIB_DEVICE_MAPPER_H */
|
||||
|
||||
/*
|
||||
* selinux
|
||||
*/
|
||||
int dm_set_selinux_context(const char *path, mode_t mode);
|
||||
|
@ -199,7 +199,7 @@ int dm_task_add_target(struct dm_task *dmt, uint64_t start, uint64_t size,
|
||||
}
|
||||
|
||||
#ifdef HAVE_SELINUX
|
||||
int set_selinux_context(const char *path, mode_t mode)
|
||||
int dm_set_selinux_context(const char *path, mode_t mode)
|
||||
{
|
||||
security_context_t scontext;
|
||||
|
||||
@ -266,7 +266,7 @@ static int _add_dev_node(const char *dev_name, uint32_t major, uint32_t minor,
|
||||
}
|
||||
|
||||
#ifdef HAVE_SELINUX
|
||||
if (!set_selinux_context(path, S_IFBLK))
|
||||
if (!dm_set_selinux_context(path, S_IFBLK))
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
|
@ -28,8 +28,6 @@ int rm_dev_node(const char *dev_name);
|
||||
int rename_dev_node(const char *old_name, const char *new_name);
|
||||
void update_devs(void);
|
||||
|
||||
int set_selinux_context(const char *path, mode_t mode);
|
||||
|
||||
#define DM_LIB_VERSION @DM_LIB_VERSION@
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user