%exception is_selinux_enabled { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception is_selinux_mls_enabled { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getcon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getcon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setcon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setcon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getpidcon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getpidcon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getprevcon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getprevcon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getexeccon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getexeccon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setexeccon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setexeccon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getfscreatecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getfscreatecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setfscreatecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setfscreatecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getkeycreatecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getkeycreatecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setkeycreatecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setkeycreatecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getsockcreatecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getsockcreatecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setsockcreatecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setsockcreatecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getfilecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getfilecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception lgetfilecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception lgetfilecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception fgetfilecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception fgetfilecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setfilecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setfilecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception lsetfilecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception lsetfilecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception fsetfilecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception fsetfilecon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getpeercon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getpeercon_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_av { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_av_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_av_flags { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_av_flags_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_create { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_create_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_create_name { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_create_name_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_relabel { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_relabel_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_member { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_member_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_user { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_compute_user_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_validatetrans { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_validatetrans_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_load_policy { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_get_initial_context { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_get_initial_context_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_mkload_policy { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_init_load_policy { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_set_boolean_list { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_load_booleans { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_check_context { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_check_context_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_canonicalize_context { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_canonicalize_context_raw { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_getenforce { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_setenforce { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_reject_unknown { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_deny_unknown { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_get_checkreqprot { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_disable { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_policyvers { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_get_boolean_names { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_get_boolean_pending { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_get_boolean_active { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_set_boolean { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_commit_booleans { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_set_mapping { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception security_av_string { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception matchpathcon_init { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception matchpathcon_init_prefix { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception realpath_not_final { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception matchpathcon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception matchpathcon_index { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception matchpathcon_filespec_add { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception matchmediacon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_getenforcemode { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_getpolicytype { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_set_policy_root { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_check_access { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_check_passwd_access { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception checkPasswdAccess { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_check_securetty_context { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinuxfs_exists { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception setexecfilecon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception rpm_execcon { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception is_context_customizable { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_trans_to_raw_context { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_raw_to_trans_context { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_raw_context_to_color { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getseuserbyname { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception getseuser { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_file_context_verify { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } } %exception selinux_lsetfilecon_default { $action if (result < 0) { PyErr_SetFromErrno(PyExc_OSError); SWIG_fail; } }