Lines Matching refs:semanage
14 import semanage
145 handle = semanage.semanage_handle_create()
150 semanage.semanage_select_store(handle, curstore, semanage.SEMANAGE_CON_DIRECT)
152 if not semanage.semanage_is_managed(handle):
153 semanage.semanage_handle_destroy(handle)
157 rc = semanage.semanage_access_check(handle)
158 if rc < semanage.SEMANAGE_CAN_WRITE:
159 semanage.semanage_handle_destroy(handle)
163 rc = semanage.semanage_connect(handle)
165 semanage.semanage_handle_destroy(handle)
169 semanage.semanage_set_rebuild(handle, 1)
171 rc = semanage.semanage_begin_transaction(handle)
173 semanage.semanage_handle_destroy(handle)
177 rc = semanage.semanage_commit(handle)
181 semanage.semanage_handle_destroy(handle)