Bug 1067070 - [RFE] Overview/optimize usage of selinux in lvm2 code base
Summary: [RFE] Overview/optimize usage of selinux in lvm2 code base
Keywords:
Status: NEW
Alias: None
Product: LVM and device-mapper
Classification: Community
Component: lvm2
Version: 0-beta1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: LVM Team
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-19 15:50 UTC by Zdenek Kabelac
Modified: 2023-08-10 15:40 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:
rule-engine: lvm-technical-solution?
rule-engine: lvm-test-coverage?


Attachments (Terms of Use)

Description Zdenek Kabelac 2014-02-19 15:50:46 UTC
Description of problem:

Using selinux with lvm2 seems to be quite expensive and cases noticeable slowdown of the total execution time.

Usage of selinux call should be reviewed and eventually optimized when possible.

Currently lvm2 always calls selabel_open() even when lvm2 does not create any devices (udev now takes care of this) and uses this for creation of file which should be most probably handled by policy.


Version-Release number of selected component (if applicable):
2.02.105

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:


Note You need to log in before you can comment on or make changes to this bug.