1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-12 08:13:48 +03:00

Export dm_set_selinux_context.

This commit is contained in:
Alasdair Kergon 2005-10-25 17:30:00 +00:00
parent ffbfce30b5
commit 3aeb569036
5 changed files with 9 additions and 4 deletions

View File

@ -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.

View File

@ -83,3 +83,4 @@ dm_hash_get_first
dm_hash_get_next
dm_driver_version
dm_deptree_deactivate_children
dm_set_selinux_context

View File

@ -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);

View File

@ -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

View File

@ -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