diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2010-12-13 10:43:56 +0000 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2010-12-13 10:43:56 +0000 |
commit | 7dfce0e46762d25d7fe253693a66d45a357dbb69 (patch) | |
tree | b97b35821582d3270af7cab2d23ea214e484b6fb /libdm/libdm-common.h | |
parent | bda30a59b930ee6c88b41ced9c6a6c16b80f7675 (diff) | |
download | lvm2-7dfce0e46762d25d7fe253693a66d45a357dbb69.tar.gz lvm2-7dfce0e46762d25d7fe253693a66d45a357dbb69.tar.xz lvm2-7dfce0e46762d25d7fe253693a66d45a357dbb69.zip |
Add new dm_prepare_selinux_context fn to libdevmapper and use it throughout.
Detect existence of new SELinux selabel interface during configure.
Use new dm_prepare_selinux_context instead of dm_set_selinux_context.
We should set the SELinux context before the actual file system object creation.
The new dm_prepare_selinux_context function sets this using the selabel_lookup
fn in conjuction with the setfscreatecon fn. If selinux/label.h interface
(that should be a part of the selinux library) is not found during configure,
we fallback to the original matchpathcon function instead.
Diffstat (limited to 'libdm/libdm-common.h')
-rw-r--r-- | libdm/libdm-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libdm/libdm-common.h b/libdm/libdm-common.h index fcb334f8..3267cfc4 100644 --- a/libdm/libdm-common.h +++ b/libdm/libdm-common.h @@ -31,5 +31,6 @@ int get_dev_node_read_ahead(const char *dev_name, uint32_t *read_ahead); int set_dev_node_read_ahead(const char *dev_name, uint32_t read_ahead, uint32_t read_ahead_flags); void update_devs(void); +void selinux_release(void); #endif |