xref: /aosp_15_r20/external/selinux/libsemanage/src/semanageswig_python_exception.i (revision 2d543d20722ada2425b5bdab9d0d1d29470e7bba)
1 
2 %exception semanage_reload_policy {
3   $action
4   if (result < 0) {
5      PyErr_SetFromErrno(PyExc_OSError);
6      SWIG_fail;
7   }
8 }
9 
10 %exception semanage_get_hll_compiler_path {
11   $action
12   if (result < 0) {
13      PyErr_SetFromErrno(PyExc_OSError);
14      SWIG_fail;
15   }
16 }
17 
18 %exception semanage_get_disable_dontaudit {
19   $action
20   if (result < 0) {
21      PyErr_SetFromErrno(PyExc_OSError);
22      SWIG_fail;
23   }
24 }
25 
26 %exception semanage_set_default_priority {
27   $action
28   if (result < 0) {
29      PyErr_SetFromErrno(PyExc_OSError);
30      SWIG_fail;
31   }
32 }
33 
34 %exception semanage_is_managed {
35   $action
36   if (result < 0) {
37      PyErr_SetFromErrno(PyExc_OSError);
38      SWIG_fail;
39   }
40 }
41 
42 %exception semanage_connect {
43   $action
44   if (result < 0) {
45      PyErr_SetFromErrno(PyExc_OSError);
46      SWIG_fail;
47   }
48 }
49 
50 %exception semanage_disconnect {
51   $action
52   if (result < 0) {
53      PyErr_SetFromErrno(PyExc_OSError);
54      SWIG_fail;
55   }
56 }
57 
58 %exception semanage_begin_transaction {
59   $action
60   if (result < 0) {
61      PyErr_SetFromErrno(PyExc_OSError);
62      SWIG_fail;
63   }
64 }
65 
66 %exception semanage_commit {
67   $action
68   if (result < 0) {
69      PyErr_SetFromErrno(PyExc_OSError);
70      SWIG_fail;
71   }
72 }
73 
74 %exception semanage_access_check {
75   $action
76   if (result < 0) {
77      PyErr_SetFromErrno(PyExc_OSError);
78      SWIG_fail;
79   }
80 }
81 
82 %exception semanage_is_connected {
83   $action
84   if (result < 0) {
85      PyErr_SetFromErrno(PyExc_OSError);
86      SWIG_fail;
87   }
88 }
89 
90 %exception semanage_mls_enabled {
91   $action
92   if (result < 0) {
93      PyErr_SetFromErrno(PyExc_OSError);
94      SWIG_fail;
95   }
96 }
97 
98 %exception semanage_set_root {
99   $action
100   if (result < 0) {
101      PyErr_SetFromErrno(PyExc_OSError);
102      SWIG_fail;
103   }
104 }
105 
106 %exception semanage_get_preserve_tunables {
107   $action
108   if (result < 0) {
109      PyErr_SetFromErrno(PyExc_OSError);
110      SWIG_fail;
111   }
112 }
113 
114 %exception semanage_get_ignore_module_cache {
115   $action
116   if (result < 0) {
117      PyErr_SetFromErrno(PyExc_OSError);
118      SWIG_fail;
119   }
120 }
121 
122 %exception select {
123   $action
124   if (result < 0) {
125      PyErr_SetFromErrno(PyExc_OSError);
126      SWIG_fail;
127   }
128 }
129 
130 %exception pselect {
131   $action
132   if (result < 0) {
133      PyErr_SetFromErrno(PyExc_OSError);
134      SWIG_fail;
135   }
136 }
137 
138 %exception semanage_module_install {
139   $action
140   if (result < 0) {
141      PyErr_SetFromErrno(PyExc_OSError);
142      SWIG_fail;
143   }
144 }
145 
146 %exception semanage_module_install_file {
147   $action
148   if (result < 0) {
149      PyErr_SetFromErrno(PyExc_OSError);
150      SWIG_fail;
151   }
152 }
153 
154 %exception semanage_module_remove {
155   $action
156   if (result < 0) {
157      PyErr_SetFromErrno(PyExc_OSError);
158      SWIG_fail;
159   }
160 }
161 
162 %exception semanage_module_extract {
163   $action
164   if (result < 0) {
165      PyErr_SetFromErrno(PyExc_OSError);
166      SWIG_fail;
167   }
168 }
169 
170 %exception semanage_module_list {
171   $action
172   if (result < 0) {
173      PyErr_SetFromErrno(PyExc_OSError);
174      SWIG_fail;
175   }
176 }
177 
178 %exception semanage_module_info_create {
179   $action
180   if (result < 0) {
181      PyErr_SetFromErrno(PyExc_OSError);
182      SWIG_fail;
183   }
184 }
185 
186 %exception semanage_module_info_destroy {
187   $action
188   if (result < 0) {
189      PyErr_SetFromErrno(PyExc_OSError);
190      SWIG_fail;
191   }
192 }
193 
194 %exception semanage_module_info_get_priority {
195   $action
196   if (result < 0) {
197      PyErr_SetFromErrno(PyExc_OSError);
198      SWIG_fail;
199   }
200 }
201 
202 %exception semanage_module_info_get_name {
203   $action
204   if (result < 0) {
205      PyErr_SetFromErrno(PyExc_OSError);
206      SWIG_fail;
207   }
208 }
209 
210 %exception semanage_module_info_get_lang_ext {
211   $action
212   if (result < 0) {
213      PyErr_SetFromErrno(PyExc_OSError);
214      SWIG_fail;
215   }
216 }
217 
218 %exception semanage_module_info_get_enabled {
219   $action
220   if (result < 0) {
221      PyErr_SetFromErrno(PyExc_OSError);
222      SWIG_fail;
223   }
224 }
225 
226 %exception semanage_module_info_set_priority {
227   $action
228   if (result < 0) {
229      PyErr_SetFromErrno(PyExc_OSError);
230      SWIG_fail;
231   }
232 }
233 
234 %exception semanage_module_info_set_name {
235   $action
236   if (result < 0) {
237      PyErr_SetFromErrno(PyExc_OSError);
238      SWIG_fail;
239   }
240 }
241 
242 %exception semanage_module_info_set_lang_ext {
243   $action
244   if (result < 0) {
245      PyErr_SetFromErrno(PyExc_OSError);
246      SWIG_fail;
247   }
248 }
249 
250 %exception semanage_module_info_set_enabled {
251   $action
252   if (result < 0) {
253      PyErr_SetFromErrno(PyExc_OSError);
254      SWIG_fail;
255   }
256 }
257 
258 %exception semanage_module_key_create {
259   $action
260   if (result < 0) {
261      PyErr_SetFromErrno(PyExc_OSError);
262      SWIG_fail;
263   }
264 }
265 
266 %exception semanage_module_key_destroy {
267   $action
268   if (result < 0) {
269      PyErr_SetFromErrno(PyExc_OSError);
270      SWIG_fail;
271   }
272 }
273 
274 %exception semanage_module_key_get_name {
275   $action
276   if (result < 0) {
277      PyErr_SetFromErrno(PyExc_OSError);
278      SWIG_fail;
279   }
280 }
281 
282 %exception semanage_module_key_get_priority {
283   $action
284   if (result < 0) {
285      PyErr_SetFromErrno(PyExc_OSError);
286      SWIG_fail;
287   }
288 }
289 
290 %exception semanage_module_key_set_name {
291   $action
292   if (result < 0) {
293      PyErr_SetFromErrno(PyExc_OSError);
294      SWIG_fail;
295   }
296 }
297 
298 %exception semanage_module_key_set_priority {
299   $action
300   if (result < 0) {
301      PyErr_SetFromErrno(PyExc_OSError);
302      SWIG_fail;
303   }
304 }
305 
306 %exception semanage_module_set_enabled {
307   $action
308   if (result < 0) {
309      PyErr_SetFromErrno(PyExc_OSError);
310      SWIG_fail;
311   }
312 }
313 
314 %exception semanage_module_get_module_info {
315   $action
316   if (result < 0) {
317      PyErr_SetFromErrno(PyExc_OSError);
318      SWIG_fail;
319   }
320 }
321 
322 %exception semanage_module_list_all {
323   $action
324   if (result < 0) {
325      PyErr_SetFromErrno(PyExc_OSError);
326      SWIG_fail;
327   }
328 }
329 
330 %exception semanage_module_install_info {
331   $action
332   if (result < 0) {
333      PyErr_SetFromErrno(PyExc_OSError);
334      SWIG_fail;
335   }
336 }
337 
338 %exception semanage_module_remove_key {
339   $action
340   if (result < 0) {
341      PyErr_SetFromErrno(PyExc_OSError);
342      SWIG_fail;
343   }
344 }
345 
346 %exception semanage_module_get_enabled {
347   $action
348   if (result < 0) {
349      PyErr_SetFromErrno(PyExc_OSError);
350      SWIG_fail;
351   }
352 }
353 
354 %exception semanage_module_compute_checksum {
355   $action
356   if (result < 0) {
357      PyErr_SetFromErrno(PyExc_OSError);
358      SWIG_fail;
359   }
360 }
361 
362 %exception semanage_msg_get_level {
363   $action
364   if (result < 0) {
365      PyErr_SetFromErrno(PyExc_OSError);
366      SWIG_fail;
367   }
368 }
369 
370 %exception semanage_bool_key_create {
371   $action
372   if (result < 0) {
373      PyErr_SetFromErrno(PyExc_OSError);
374      SWIG_fail;
375   }
376 }
377 
378 %exception semanage_bool_key_extract {
379   $action
380   if (result < 0) {
381      PyErr_SetFromErrno(PyExc_OSError);
382      SWIG_fail;
383   }
384 }
385 
386 %exception semanage_bool_compare {
387   $action
388   if (result < 0) {
389      PyErr_SetFromErrno(PyExc_OSError);
390      SWIG_fail;
391   }
392 }
393 
394 %exception semanage_bool_compare2 {
395   $action
396   if (result < 0) {
397      PyErr_SetFromErrno(PyExc_OSError);
398      SWIG_fail;
399   }
400 }
401 
402 %exception semanage_bool_set_name {
403   $action
404   if (result < 0) {
405      PyErr_SetFromErrno(PyExc_OSError);
406      SWIG_fail;
407   }
408 }
409 
410 %exception semanage_bool_get_value {
411   $action
412   if (result < 0) {
413      PyErr_SetFromErrno(PyExc_OSError);
414      SWIG_fail;
415   }
416 }
417 
418 %exception semanage_bool_create {
419   $action
420   if (result < 0) {
421      PyErr_SetFromErrno(PyExc_OSError);
422      SWIG_fail;
423   }
424 }
425 
426 %exception semanage_bool_clone {
427   $action
428   if (result < 0) {
429      PyErr_SetFromErrno(PyExc_OSError);
430      SWIG_fail;
431   }
432 }
433 
434 %exception semanage_user_key_create {
435   $action
436   if (result < 0) {
437      PyErr_SetFromErrno(PyExc_OSError);
438      SWIG_fail;
439   }
440 }
441 
442 %exception semanage_user_key_extract {
443   $action
444   if (result < 0) {
445      PyErr_SetFromErrno(PyExc_OSError);
446      SWIG_fail;
447   }
448 }
449 
450 %exception semanage_user_compare {
451   $action
452   if (result < 0) {
453      PyErr_SetFromErrno(PyExc_OSError);
454      SWIG_fail;
455   }
456 }
457 
458 %exception semanage_user_compare2 {
459   $action
460   if (result < 0) {
461      PyErr_SetFromErrno(PyExc_OSError);
462      SWIG_fail;
463   }
464 }
465 
466 %exception semanage_user_set_name {
467   $action
468   if (result < 0) {
469      PyErr_SetFromErrno(PyExc_OSError);
470      SWIG_fail;
471   }
472 }
473 
474 %exception semanage_user_set_prefix {
475   $action
476   if (result < 0) {
477      PyErr_SetFromErrno(PyExc_OSError);
478      SWIG_fail;
479   }
480 }
481 
482 %exception semanage_user_set_mlslevel {
483   $action
484   if (result < 0) {
485      PyErr_SetFromErrno(PyExc_OSError);
486      SWIG_fail;
487   }
488 }
489 
490 %exception semanage_user_set_mlsrange {
491   $action
492   if (result < 0) {
493      PyErr_SetFromErrno(PyExc_OSError);
494      SWIG_fail;
495   }
496 }
497 
498 %exception semanage_user_get_num_roles {
499   $action
500   if (result < 0) {
501      PyErr_SetFromErrno(PyExc_OSError);
502      SWIG_fail;
503   }
504 }
505 
506 %exception semanage_user_add_role {
507   $action
508   if (result < 0) {
509      PyErr_SetFromErrno(PyExc_OSError);
510      SWIG_fail;
511   }
512 }
513 
514 %exception semanage_user_has_role {
515   $action
516   if (result < 0) {
517      PyErr_SetFromErrno(PyExc_OSError);
518      SWIG_fail;
519   }
520 }
521 
522 %exception semanage_user_get_roles {
523   $action
524   if (result < 0) {
525      PyErr_SetFromErrno(PyExc_OSError);
526      SWIG_fail;
527   }
528 }
529 
530 %exception semanage_user_set_roles {
531   $action
532   if (result < 0) {
533      PyErr_SetFromErrno(PyExc_OSError);
534      SWIG_fail;
535   }
536 }
537 
538 %exception semanage_user_create {
539   $action
540   if (result < 0) {
541      PyErr_SetFromErrno(PyExc_OSError);
542      SWIG_fail;
543   }
544 }
545 
546 %exception semanage_user_clone {
547   $action
548   if (result < 0) {
549      PyErr_SetFromErrno(PyExc_OSError);
550      SWIG_fail;
551   }
552 }
553 
554 %exception semanage_seuser_key_create {
555   $action
556   if (result < 0) {
557      PyErr_SetFromErrno(PyExc_OSError);
558      SWIG_fail;
559   }
560 }
561 
562 %exception semanage_seuser_key_extract {
563   $action
564   if (result < 0) {
565      PyErr_SetFromErrno(PyExc_OSError);
566      SWIG_fail;
567   }
568 }
569 
570 %exception semanage_seuser_compare {
571   $action
572   if (result < 0) {
573      PyErr_SetFromErrno(PyExc_OSError);
574      SWIG_fail;
575   }
576 }
577 
578 %exception semanage_seuser_compare2 {
579   $action
580   if (result < 0) {
581      PyErr_SetFromErrno(PyExc_OSError);
582      SWIG_fail;
583   }
584 }
585 
586 %exception semanage_seuser_set_name {
587   $action
588   if (result < 0) {
589      PyErr_SetFromErrno(PyExc_OSError);
590      SWIG_fail;
591   }
592 }
593 
594 %exception semanage_seuser_set_sename {
595   $action
596   if (result < 0) {
597      PyErr_SetFromErrno(PyExc_OSError);
598      SWIG_fail;
599   }
600 }
601 
602 %exception semanage_seuser_set_mlsrange {
603   $action
604   if (result < 0) {
605      PyErr_SetFromErrno(PyExc_OSError);
606      SWIG_fail;
607   }
608 }
609 
610 %exception semanage_seuser_create {
611   $action
612   if (result < 0) {
613      PyErr_SetFromErrno(PyExc_OSError);
614      SWIG_fail;
615   }
616 }
617 
618 %exception semanage_seuser_clone {
619   $action
620   if (result < 0) {
621      PyErr_SetFromErrno(PyExc_OSError);
622      SWIG_fail;
623   }
624 }
625 
626 %exception semanage_context_set_user {
627   $action
628   if (result < 0) {
629      PyErr_SetFromErrno(PyExc_OSError);
630      SWIG_fail;
631   }
632 }
633 
634 %exception semanage_context_set_role {
635   $action
636   if (result < 0) {
637      PyErr_SetFromErrno(PyExc_OSError);
638      SWIG_fail;
639   }
640 }
641 
642 %exception semanage_context_set_type {
643   $action
644   if (result < 0) {
645      PyErr_SetFromErrno(PyExc_OSError);
646      SWIG_fail;
647   }
648 }
649 
650 %exception semanage_context_set_mls {
651   $action
652   if (result < 0) {
653      PyErr_SetFromErrno(PyExc_OSError);
654      SWIG_fail;
655   }
656 }
657 
658 %exception semanage_context_create {
659   $action
660   if (result < 0) {
661      PyErr_SetFromErrno(PyExc_OSError);
662      SWIG_fail;
663   }
664 }
665 
666 %exception semanage_context_clone {
667   $action
668   if (result < 0) {
669      PyErr_SetFromErrno(PyExc_OSError);
670      SWIG_fail;
671   }
672 }
673 
674 %exception semanage_context_from_string {
675   $action
676   if (result < 0) {
677      PyErr_SetFromErrno(PyExc_OSError);
678      SWIG_fail;
679   }
680 }
681 
682 %exception semanage_context_to_string {
683   $action
684   if (result < 0) {
685      PyErr_SetFromErrno(PyExc_OSError);
686      SWIG_fail;
687   }
688 }
689 
690 %exception semanage_iface_compare {
691   $action
692   if (result < 0) {
693      PyErr_SetFromErrno(PyExc_OSError);
694      SWIG_fail;
695   }
696 }
697 
698 %exception semanage_iface_compare2 {
699   $action
700   if (result < 0) {
701      PyErr_SetFromErrno(PyExc_OSError);
702      SWIG_fail;
703   }
704 }
705 
706 %exception semanage_iface_key_create {
707   $action
708   if (result < 0) {
709      PyErr_SetFromErrno(PyExc_OSError);
710      SWIG_fail;
711   }
712 }
713 
714 %exception semanage_iface_key_extract {
715   $action
716   if (result < 0) {
717      PyErr_SetFromErrno(PyExc_OSError);
718      SWIG_fail;
719   }
720 }
721 
722 %exception semanage_iface_set_name {
723   $action
724   if (result < 0) {
725      PyErr_SetFromErrno(PyExc_OSError);
726      SWIG_fail;
727   }
728 }
729 
730 %exception semanage_iface_set_ifcon {
731   $action
732   if (result < 0) {
733      PyErr_SetFromErrno(PyExc_OSError);
734      SWIG_fail;
735   }
736 }
737 
738 %exception semanage_iface_set_msgcon {
739   $action
740   if (result < 0) {
741      PyErr_SetFromErrno(PyExc_OSError);
742      SWIG_fail;
743   }
744 }
745 
746 %exception semanage_iface_create {
747   $action
748   if (result < 0) {
749      PyErr_SetFromErrno(PyExc_OSError);
750      SWIG_fail;
751   }
752 }
753 
754 %exception semanage_iface_clone {
755   $action
756   if (result < 0) {
757      PyErr_SetFromErrno(PyExc_OSError);
758      SWIG_fail;
759   }
760 }
761 
762 %exception semanage_port_compare {
763   $action
764   if (result < 0) {
765      PyErr_SetFromErrno(PyExc_OSError);
766      SWIG_fail;
767   }
768 }
769 
770 %exception semanage_port_compare2 {
771   $action
772   if (result < 0) {
773      PyErr_SetFromErrno(PyExc_OSError);
774      SWIG_fail;
775   }
776 }
777 
778 %exception semanage_port_key_create {
779   $action
780   if (result < 0) {
781      PyErr_SetFromErrno(PyExc_OSError);
782      SWIG_fail;
783   }
784 }
785 
786 %exception semanage_port_key_extract {
787   $action
788   if (result < 0) {
789      PyErr_SetFromErrno(PyExc_OSError);
790      SWIG_fail;
791   }
792 }
793 
794 %exception semanage_port_get_proto {
795   $action
796   if (result < 0) {
797      PyErr_SetFromErrno(PyExc_OSError);
798      SWIG_fail;
799   }
800 }
801 
802 %exception semanage_port_get_low {
803   $action
804   if (result < 0) {
805      PyErr_SetFromErrno(PyExc_OSError);
806      SWIG_fail;
807   }
808 }
809 
810 %exception semanage_port_get_high {
811   $action
812   if (result < 0) {
813      PyErr_SetFromErrno(PyExc_OSError);
814      SWIG_fail;
815   }
816 }
817 
818 %exception semanage_port_set_con {
819   $action
820   if (result < 0) {
821      PyErr_SetFromErrno(PyExc_OSError);
822      SWIG_fail;
823   }
824 }
825 
826 %exception semanage_port_create {
827   $action
828   if (result < 0) {
829      PyErr_SetFromErrno(PyExc_OSError);
830      SWIG_fail;
831   }
832 }
833 
834 %exception semanage_port_clone {
835   $action
836   if (result < 0) {
837      PyErr_SetFromErrno(PyExc_OSError);
838      SWIG_fail;
839   }
840 }
841 
842 %exception semanage_ibpkey_compare {
843   $action
844   if (result < 0) {
845      PyErr_SetFromErrno(PyExc_OSError);
846      SWIG_fail;
847   }
848 }
849 
850 %exception semanage_ibpkey_compare2 {
851   $action
852   if (result < 0) {
853      PyErr_SetFromErrno(PyExc_OSError);
854      SWIG_fail;
855   }
856 }
857 
858 %exception semanage_ibpkey_key_create {
859   $action
860   if (result < 0) {
861      PyErr_SetFromErrno(PyExc_OSError);
862      SWIG_fail;
863   }
864 }
865 
866 %exception semanage_ibpkey_key_extract {
867   $action
868   if (result < 0) {
869      PyErr_SetFromErrno(PyExc_OSError);
870      SWIG_fail;
871   }
872 }
873 
874 %exception semanage_ibpkey_get_subnet_prefix {
875   $action
876   if (result < 0) {
877      PyErr_SetFromErrno(PyExc_OSError);
878      SWIG_fail;
879   }
880 }
881 
882 %exception semanage_ibpkey_set_subnet_prefix {
883   $action
884   if (result < 0) {
885      PyErr_SetFromErrno(PyExc_OSError);
886      SWIG_fail;
887   }
888 }
889 
890 %exception semanage_ibpkey_get_low {
891   $action
892   if (result < 0) {
893      PyErr_SetFromErrno(PyExc_OSError);
894      SWIG_fail;
895   }
896 }
897 
898 %exception semanage_ibpkey_get_high {
899   $action
900   if (result < 0) {
901      PyErr_SetFromErrno(PyExc_OSError);
902      SWIG_fail;
903   }
904 }
905 
906 %exception semanage_ibpkey_set_con {
907   $action
908   if (result < 0) {
909      PyErr_SetFromErrno(PyExc_OSError);
910      SWIG_fail;
911   }
912 }
913 
914 %exception semanage_ibpkey_create {
915   $action
916   if (result < 0) {
917      PyErr_SetFromErrno(PyExc_OSError);
918      SWIG_fail;
919   }
920 }
921 
922 %exception semanage_ibpkey_clone {
923   $action
924   if (result < 0) {
925      PyErr_SetFromErrno(PyExc_OSError);
926      SWIG_fail;
927   }
928 }
929 
930 %exception semanage_ibendport_compare {
931   $action
932   if (result < 0) {
933      PyErr_SetFromErrno(PyExc_OSError);
934      SWIG_fail;
935   }
936 }
937 
938 %exception semanage_ibendport_compare2 {
939   $action
940   if (result < 0) {
941      PyErr_SetFromErrno(PyExc_OSError);
942      SWIG_fail;
943   }
944 }
945 
946 %exception semanage_ibendport_key_create {
947   $action
948   if (result < 0) {
949      PyErr_SetFromErrno(PyExc_OSError);
950      SWIG_fail;
951   }
952 }
953 
954 %exception semanage_ibendport_key_extract {
955   $action
956   if (result < 0) {
957      PyErr_SetFromErrno(PyExc_OSError);
958      SWIG_fail;
959   }
960 }
961 
962 %exception semanage_ibendport_get_ibdev_name {
963   $action
964   if (result < 0) {
965      PyErr_SetFromErrno(PyExc_OSError);
966      SWIG_fail;
967   }
968 }
969 
970 %exception semanage_ibendport_set_ibdev_name {
971   $action
972   if (result < 0) {
973      PyErr_SetFromErrno(PyExc_OSError);
974      SWIG_fail;
975   }
976 }
977 
978 %exception semanage_ibendport_get_port {
979   $action
980   if (result < 0) {
981      PyErr_SetFromErrno(PyExc_OSError);
982      SWIG_fail;
983   }
984 }
985 
986 %exception semanage_ibendport_set_con {
987   $action
988   if (result < 0) {
989      PyErr_SetFromErrno(PyExc_OSError);
990      SWIG_fail;
991   }
992 }
993 
994 %exception semanage_ibendport_create {
995   $action
996   if (result < 0) {
997      PyErr_SetFromErrno(PyExc_OSError);
998      SWIG_fail;
999   }
1000 }
1001 
1002 %exception semanage_ibendport_clone {
1003   $action
1004   if (result < 0) {
1005      PyErr_SetFromErrno(PyExc_OSError);
1006      SWIG_fail;
1007   }
1008 }
1009 
1010 %exception semanage_node_compare {
1011   $action
1012   if (result < 0) {
1013      PyErr_SetFromErrno(PyExc_OSError);
1014      SWIG_fail;
1015   }
1016 }
1017 
1018 %exception semanage_node_compare2 {
1019   $action
1020   if (result < 0) {
1021      PyErr_SetFromErrno(PyExc_OSError);
1022      SWIG_fail;
1023   }
1024 }
1025 
1026 %exception semanage_node_key_create {
1027   $action
1028   if (result < 0) {
1029      PyErr_SetFromErrno(PyExc_OSError);
1030      SWIG_fail;
1031   }
1032 }
1033 
1034 %exception semanage_node_key_extract {
1035   $action
1036   if (result < 0) {
1037      PyErr_SetFromErrno(PyExc_OSError);
1038      SWIG_fail;
1039   }
1040 }
1041 
1042 %exception semanage_node_get_addr {
1043   $action
1044   if (result < 0) {
1045      PyErr_SetFromErrno(PyExc_OSError);
1046      SWIG_fail;
1047   }
1048 }
1049 
1050 %exception semanage_node_get_addr_bytes {
1051   $action
1052   if (result < 0) {
1053      PyErr_SetFromErrno(PyExc_OSError);
1054      SWIG_fail;
1055   }
1056 }
1057 
1058 %exception semanage_node_set_addr {
1059   $action
1060   if (result < 0) {
1061      PyErr_SetFromErrno(PyExc_OSError);
1062      SWIG_fail;
1063   }
1064 }
1065 
1066 %exception semanage_node_set_addr_bytes {
1067   $action
1068   if (result < 0) {
1069      PyErr_SetFromErrno(PyExc_OSError);
1070      SWIG_fail;
1071   }
1072 }
1073 
1074 %exception semanage_node_get_mask {
1075   $action
1076   if (result < 0) {
1077      PyErr_SetFromErrno(PyExc_OSError);
1078      SWIG_fail;
1079   }
1080 }
1081 
1082 %exception semanage_node_get_mask_bytes {
1083   $action
1084   if (result < 0) {
1085      PyErr_SetFromErrno(PyExc_OSError);
1086      SWIG_fail;
1087   }
1088 }
1089 
1090 %exception semanage_node_set_mask {
1091   $action
1092   if (result < 0) {
1093      PyErr_SetFromErrno(PyExc_OSError);
1094      SWIG_fail;
1095   }
1096 }
1097 
1098 %exception semanage_node_set_mask_bytes {
1099   $action
1100   if (result < 0) {
1101      PyErr_SetFromErrno(PyExc_OSError);
1102      SWIG_fail;
1103   }
1104 }
1105 
1106 %exception semanage_node_get_proto {
1107   $action
1108   if (result < 0) {
1109      PyErr_SetFromErrno(PyExc_OSError);
1110      SWIG_fail;
1111   }
1112 }
1113 
1114 %exception semanage_node_set_con {
1115   $action
1116   if (result < 0) {
1117      PyErr_SetFromErrno(PyExc_OSError);
1118      SWIG_fail;
1119   }
1120 }
1121 
1122 %exception semanage_node_create {
1123   $action
1124   if (result < 0) {
1125      PyErr_SetFromErrno(PyExc_OSError);
1126      SWIG_fail;
1127   }
1128 }
1129 
1130 %exception semanage_node_clone {
1131   $action
1132   if (result < 0) {
1133      PyErr_SetFromErrno(PyExc_OSError);
1134      SWIG_fail;
1135   }
1136 }
1137 
1138 %exception semanage_bool_modify_local {
1139   $action
1140   if (result < 0) {
1141      PyErr_SetFromErrno(PyExc_OSError);
1142      SWIG_fail;
1143   }
1144 }
1145 
1146 %exception semanage_bool_del_local {
1147   $action
1148   if (result < 0) {
1149      PyErr_SetFromErrno(PyExc_OSError);
1150      SWIG_fail;
1151   }
1152 }
1153 
1154 %exception semanage_bool_query_local {
1155   $action
1156   if (result < 0) {
1157      PyErr_SetFromErrno(PyExc_OSError);
1158      SWIG_fail;
1159   }
1160 }
1161 
1162 %exception semanage_bool_exists_local {
1163   $action
1164   if (result < 0) {
1165      PyErr_SetFromErrno(PyExc_OSError);
1166      SWIG_fail;
1167   }
1168 }
1169 
1170 %exception semanage_bool_count_local {
1171   $action
1172   if (result < 0) {
1173      PyErr_SetFromErrno(PyExc_OSError);
1174      SWIG_fail;
1175   }
1176 }
1177 
1178 %exception semanage_bool_iterate_local {
1179   $action
1180   if (result < 0) {
1181      PyErr_SetFromErrno(PyExc_OSError);
1182      SWIG_fail;
1183   }
1184 }
1185 
1186 %exception semanage_bool_list_local {
1187   $action
1188   if (result < 0) {
1189      PyErr_SetFromErrno(PyExc_OSError);
1190      SWIG_fail;
1191   }
1192 }
1193 
1194 %exception semanage_bool_query {
1195   $action
1196   if (result < 0) {
1197      PyErr_SetFromErrno(PyExc_OSError);
1198      SWIG_fail;
1199   }
1200 }
1201 
1202 %exception semanage_bool_exists {
1203   $action
1204   if (result < 0) {
1205      PyErr_SetFromErrno(PyExc_OSError);
1206      SWIG_fail;
1207   }
1208 }
1209 
1210 %exception semanage_bool_count {
1211   $action
1212   if (result < 0) {
1213      PyErr_SetFromErrno(PyExc_OSError);
1214      SWIG_fail;
1215   }
1216 }
1217 
1218 %exception semanage_bool_iterate {
1219   $action
1220   if (result < 0) {
1221      PyErr_SetFromErrno(PyExc_OSError);
1222      SWIG_fail;
1223   }
1224 }
1225 
1226 %exception semanage_bool_list {
1227   $action
1228   if (result < 0) {
1229      PyErr_SetFromErrno(PyExc_OSError);
1230      SWIG_fail;
1231   }
1232 }
1233 
1234 %exception semanage_bool_set_active {
1235   $action
1236   if (result < 0) {
1237      PyErr_SetFromErrno(PyExc_OSError);
1238      SWIG_fail;
1239   }
1240 }
1241 
1242 %exception semanage_bool_query_active {
1243   $action
1244   if (result < 0) {
1245      PyErr_SetFromErrno(PyExc_OSError);
1246      SWIG_fail;
1247   }
1248 }
1249 
1250 %exception semanage_bool_exists_active {
1251   $action
1252   if (result < 0) {
1253      PyErr_SetFromErrno(PyExc_OSError);
1254      SWIG_fail;
1255   }
1256 }
1257 
1258 %exception semanage_bool_count_active {
1259   $action
1260   if (result < 0) {
1261      PyErr_SetFromErrno(PyExc_OSError);
1262      SWIG_fail;
1263   }
1264 }
1265 
1266 %exception semanage_bool_iterate_active {
1267   $action
1268   if (result < 0) {
1269      PyErr_SetFromErrno(PyExc_OSError);
1270      SWIG_fail;
1271   }
1272 }
1273 
1274 %exception semanage_bool_list_active {
1275   $action
1276   if (result < 0) {
1277      PyErr_SetFromErrno(PyExc_OSError);
1278      SWIG_fail;
1279   }
1280 }
1281 
1282 %exception semanage_user_modify_local {
1283   $action
1284   if (result < 0) {
1285      PyErr_SetFromErrno(PyExc_OSError);
1286      SWIG_fail;
1287   }
1288 }
1289 
1290 %exception semanage_user_del_local {
1291   $action
1292   if (result < 0) {
1293      PyErr_SetFromErrno(PyExc_OSError);
1294      SWIG_fail;
1295   }
1296 }
1297 
1298 %exception semanage_user_query_local {
1299   $action
1300   if (result < 0) {
1301      PyErr_SetFromErrno(PyExc_OSError);
1302      SWIG_fail;
1303   }
1304 }
1305 
1306 %exception semanage_user_exists_local {
1307   $action
1308   if (result < 0) {
1309      PyErr_SetFromErrno(PyExc_OSError);
1310      SWIG_fail;
1311   }
1312 }
1313 
1314 %exception semanage_user_count_local {
1315   $action
1316   if (result < 0) {
1317      PyErr_SetFromErrno(PyExc_OSError);
1318      SWIG_fail;
1319   }
1320 }
1321 
1322 %exception semanage_user_iterate_local {
1323   $action
1324   if (result < 0) {
1325      PyErr_SetFromErrno(PyExc_OSError);
1326      SWIG_fail;
1327   }
1328 }
1329 
1330 %exception semanage_user_list_local {
1331   $action
1332   if (result < 0) {
1333      PyErr_SetFromErrno(PyExc_OSError);
1334      SWIG_fail;
1335   }
1336 }
1337 
1338 %exception semanage_user_query {
1339   $action
1340   if (result < 0) {
1341      PyErr_SetFromErrno(PyExc_OSError);
1342      SWIG_fail;
1343   }
1344 }
1345 
1346 %exception semanage_user_exists {
1347   $action
1348   if (result < 0) {
1349      PyErr_SetFromErrno(PyExc_OSError);
1350      SWIG_fail;
1351   }
1352 }
1353 
1354 %exception semanage_user_count {
1355   $action
1356   if (result < 0) {
1357      PyErr_SetFromErrno(PyExc_OSError);
1358      SWIG_fail;
1359   }
1360 }
1361 
1362 %exception semanage_user_iterate {
1363   $action
1364   if (result < 0) {
1365      PyErr_SetFromErrno(PyExc_OSError);
1366      SWIG_fail;
1367   }
1368 }
1369 
1370 %exception semanage_user_list {
1371   $action
1372   if (result < 0) {
1373      PyErr_SetFromErrno(PyExc_OSError);
1374      SWIG_fail;
1375   }
1376 }
1377 
1378 %exception semanage_fcontext_compare {
1379   $action
1380   if (result < 0) {
1381      PyErr_SetFromErrno(PyExc_OSError);
1382      SWIG_fail;
1383   }
1384 }
1385 
1386 %exception semanage_fcontext_compare2 {
1387   $action
1388   if (result < 0) {
1389      PyErr_SetFromErrno(PyExc_OSError);
1390      SWIG_fail;
1391   }
1392 }
1393 
1394 %exception semanage_fcontext_key_create {
1395   $action
1396   if (result < 0) {
1397      PyErr_SetFromErrno(PyExc_OSError);
1398      SWIG_fail;
1399   }
1400 }
1401 
1402 %exception semanage_fcontext_key_extract {
1403   $action
1404   if (result < 0) {
1405      PyErr_SetFromErrno(PyExc_OSError);
1406      SWIG_fail;
1407   }
1408 }
1409 
1410 %exception semanage_fcontext_set_expr {
1411   $action
1412   if (result < 0) {
1413      PyErr_SetFromErrno(PyExc_OSError);
1414      SWIG_fail;
1415   }
1416 }
1417 
1418 %exception semanage_fcontext_get_type {
1419   $action
1420   if (result < 0) {
1421      PyErr_SetFromErrno(PyExc_OSError);
1422      SWIG_fail;
1423   }
1424 }
1425 
1426 %exception semanage_fcontext_set_con {
1427   $action
1428   if (result < 0) {
1429      PyErr_SetFromErrno(PyExc_OSError);
1430      SWIG_fail;
1431   }
1432 }
1433 
1434 %exception semanage_fcontext_create {
1435   $action
1436   if (result < 0) {
1437      PyErr_SetFromErrno(PyExc_OSError);
1438      SWIG_fail;
1439   }
1440 }
1441 
1442 %exception semanage_fcontext_clone {
1443   $action
1444   if (result < 0) {
1445      PyErr_SetFromErrno(PyExc_OSError);
1446      SWIG_fail;
1447   }
1448 }
1449 
1450 %exception semanage_fcontext_modify_local {
1451   $action
1452   if (result < 0) {
1453      PyErr_SetFromErrno(PyExc_OSError);
1454      SWIG_fail;
1455   }
1456 }
1457 
1458 %exception semanage_fcontext_del_local {
1459   $action
1460   if (result < 0) {
1461      PyErr_SetFromErrno(PyExc_OSError);
1462      SWIG_fail;
1463   }
1464 }
1465 
1466 %exception semanage_fcontext_query_local {
1467   $action
1468   if (result < 0) {
1469      PyErr_SetFromErrno(PyExc_OSError);
1470      SWIG_fail;
1471   }
1472 }
1473 
1474 %exception semanage_fcontext_exists_local {
1475   $action
1476   if (result < 0) {
1477      PyErr_SetFromErrno(PyExc_OSError);
1478      SWIG_fail;
1479   }
1480 }
1481 
1482 %exception semanage_fcontext_count_local {
1483   $action
1484   if (result < 0) {
1485      PyErr_SetFromErrno(PyExc_OSError);
1486      SWIG_fail;
1487   }
1488 }
1489 
1490 %exception semanage_fcontext_iterate_local {
1491   $action
1492   if (result < 0) {
1493      PyErr_SetFromErrno(PyExc_OSError);
1494      SWIG_fail;
1495   }
1496 }
1497 
1498 %exception semanage_fcontext_list_local {
1499   $action
1500   if (result < 0) {
1501      PyErr_SetFromErrno(PyExc_OSError);
1502      SWIG_fail;
1503   }
1504 }
1505 
1506 %exception semanage_fcontext_query {
1507   $action
1508   if (result < 0) {
1509      PyErr_SetFromErrno(PyExc_OSError);
1510      SWIG_fail;
1511   }
1512 }
1513 
1514 %exception semanage_fcontext_exists {
1515   $action
1516   if (result < 0) {
1517      PyErr_SetFromErrno(PyExc_OSError);
1518      SWIG_fail;
1519   }
1520 }
1521 
1522 %exception semanage_fcontext_count {
1523   $action
1524   if (result < 0) {
1525      PyErr_SetFromErrno(PyExc_OSError);
1526      SWIG_fail;
1527   }
1528 }
1529 
1530 %exception semanage_fcontext_iterate {
1531   $action
1532   if (result < 0) {
1533      PyErr_SetFromErrno(PyExc_OSError);
1534      SWIG_fail;
1535   }
1536 }
1537 
1538 %exception semanage_fcontext_list {
1539   $action
1540   if (result < 0) {
1541      PyErr_SetFromErrno(PyExc_OSError);
1542      SWIG_fail;
1543   }
1544 }
1545 
1546 %exception semanage_fcontext_list_homedirs {
1547   $action
1548   if (result < 0) {
1549      PyErr_SetFromErrno(PyExc_OSError);
1550      SWIG_fail;
1551   }
1552 }
1553 
1554 %exception semanage_seuser_modify_local {
1555   $action
1556   if (result < 0) {
1557      PyErr_SetFromErrno(PyExc_OSError);
1558      SWIG_fail;
1559   }
1560 }
1561 
1562 %exception semanage_seuser_del_local {
1563   $action
1564   if (result < 0) {
1565      PyErr_SetFromErrno(PyExc_OSError);
1566      SWIG_fail;
1567   }
1568 }
1569 
1570 %exception semanage_seuser_query_local {
1571   $action
1572   if (result < 0) {
1573      PyErr_SetFromErrno(PyExc_OSError);
1574      SWIG_fail;
1575   }
1576 }
1577 
1578 %exception semanage_seuser_exists_local {
1579   $action
1580   if (result < 0) {
1581      PyErr_SetFromErrno(PyExc_OSError);
1582      SWIG_fail;
1583   }
1584 }
1585 
1586 %exception semanage_seuser_count_local {
1587   $action
1588   if (result < 0) {
1589      PyErr_SetFromErrno(PyExc_OSError);
1590      SWIG_fail;
1591   }
1592 }
1593 
1594 %exception semanage_seuser_iterate_local {
1595   $action
1596   if (result < 0) {
1597      PyErr_SetFromErrno(PyExc_OSError);
1598      SWIG_fail;
1599   }
1600 }
1601 
1602 %exception semanage_seuser_list_local {
1603   $action
1604   if (result < 0) {
1605      PyErr_SetFromErrno(PyExc_OSError);
1606      SWIG_fail;
1607   }
1608 }
1609 
1610 %exception semanage_seuser_query {
1611   $action
1612   if (result < 0) {
1613      PyErr_SetFromErrno(PyExc_OSError);
1614      SWIG_fail;
1615   }
1616 }
1617 
1618 %exception semanage_seuser_exists {
1619   $action
1620   if (result < 0) {
1621      PyErr_SetFromErrno(PyExc_OSError);
1622      SWIG_fail;
1623   }
1624 }
1625 
1626 %exception semanage_seuser_count {
1627   $action
1628   if (result < 0) {
1629      PyErr_SetFromErrno(PyExc_OSError);
1630      SWIG_fail;
1631   }
1632 }
1633 
1634 %exception semanage_seuser_iterate {
1635   $action
1636   if (result < 0) {
1637      PyErr_SetFromErrno(PyExc_OSError);
1638      SWIG_fail;
1639   }
1640 }
1641 
1642 %exception semanage_seuser_list {
1643   $action
1644   if (result < 0) {
1645      PyErr_SetFromErrno(PyExc_OSError);
1646      SWIG_fail;
1647   }
1648 }
1649 
1650 %exception semanage_port_modify_local {
1651   $action
1652   if (result < 0) {
1653      PyErr_SetFromErrno(PyExc_OSError);
1654      SWIG_fail;
1655   }
1656 }
1657 
1658 %exception semanage_port_del_local {
1659   $action
1660   if (result < 0) {
1661      PyErr_SetFromErrno(PyExc_OSError);
1662      SWIG_fail;
1663   }
1664 }
1665 
1666 %exception semanage_port_query_local {
1667   $action
1668   if (result < 0) {
1669      PyErr_SetFromErrno(PyExc_OSError);
1670      SWIG_fail;
1671   }
1672 }
1673 
1674 %exception semanage_port_exists_local {
1675   $action
1676   if (result < 0) {
1677      PyErr_SetFromErrno(PyExc_OSError);
1678      SWIG_fail;
1679   }
1680 }
1681 
1682 %exception semanage_port_count_local {
1683   $action
1684   if (result < 0) {
1685      PyErr_SetFromErrno(PyExc_OSError);
1686      SWIG_fail;
1687   }
1688 }
1689 
1690 %exception semanage_port_iterate_local {
1691   $action
1692   if (result < 0) {
1693      PyErr_SetFromErrno(PyExc_OSError);
1694      SWIG_fail;
1695   }
1696 }
1697 
1698 %exception semanage_port_list_local {
1699   $action
1700   if (result < 0) {
1701      PyErr_SetFromErrno(PyExc_OSError);
1702      SWIG_fail;
1703   }
1704 }
1705 
1706 %exception semanage_port_query {
1707   $action
1708   if (result < 0) {
1709      PyErr_SetFromErrno(PyExc_OSError);
1710      SWIG_fail;
1711   }
1712 }
1713 
1714 %exception semanage_port_exists {
1715   $action
1716   if (result < 0) {
1717      PyErr_SetFromErrno(PyExc_OSError);
1718      SWIG_fail;
1719   }
1720 }
1721 
1722 %exception semanage_port_count {
1723   $action
1724   if (result < 0) {
1725      PyErr_SetFromErrno(PyExc_OSError);
1726      SWIG_fail;
1727   }
1728 }
1729 
1730 %exception semanage_port_iterate {
1731   $action
1732   if (result < 0) {
1733      PyErr_SetFromErrno(PyExc_OSError);
1734      SWIG_fail;
1735   }
1736 }
1737 
1738 %exception semanage_port_list {
1739   $action
1740   if (result < 0) {
1741      PyErr_SetFromErrno(PyExc_OSError);
1742      SWIG_fail;
1743   }
1744 }
1745 
1746 %exception semanage_ibpkey_modify_local {
1747   $action
1748   if (result < 0) {
1749      PyErr_SetFromErrno(PyExc_OSError);
1750      SWIG_fail;
1751   }
1752 }
1753 
1754 %exception semanage_ibpkey_del_local {
1755   $action
1756   if (result < 0) {
1757      PyErr_SetFromErrno(PyExc_OSError);
1758      SWIG_fail;
1759   }
1760 }
1761 
1762 %exception semanage_ibpkey_query_local {
1763   $action
1764   if (result < 0) {
1765      PyErr_SetFromErrno(PyExc_OSError);
1766      SWIG_fail;
1767   }
1768 }
1769 
1770 %exception semanage_ibpkey_exists_local {
1771   $action
1772   if (result < 0) {
1773      PyErr_SetFromErrno(PyExc_OSError);
1774      SWIG_fail;
1775   }
1776 }
1777 
1778 %exception semanage_ibpkey_count_local {
1779   $action
1780   if (result < 0) {
1781      PyErr_SetFromErrno(PyExc_OSError);
1782      SWIG_fail;
1783   }
1784 }
1785 
1786 %exception semanage_ibpkey_iterate_local {
1787   $action
1788   if (result < 0) {
1789      PyErr_SetFromErrno(PyExc_OSError);
1790      SWIG_fail;
1791   }
1792 }
1793 
1794 %exception semanage_ibpkey_list_local {
1795   $action
1796   if (result < 0) {
1797      PyErr_SetFromErrno(PyExc_OSError);
1798      SWIG_fail;
1799   }
1800 }
1801 
1802 %exception semanage_ibendport_modify_local {
1803   $action
1804   if (result < 0) {
1805      PyErr_SetFromErrno(PyExc_OSError);
1806      SWIG_fail;
1807   }
1808 }
1809 
1810 %exception semanage_ibendport_del_local {
1811   $action
1812   if (result < 0) {
1813      PyErr_SetFromErrno(PyExc_OSError);
1814      SWIG_fail;
1815   }
1816 }
1817 
1818 %exception semanage_ibendport_query_local {
1819   $action
1820   if (result < 0) {
1821      PyErr_SetFromErrno(PyExc_OSError);
1822      SWIG_fail;
1823   }
1824 }
1825 
1826 %exception semanage_ibendport_exists_local {
1827   $action
1828   if (result < 0) {
1829      PyErr_SetFromErrno(PyExc_OSError);
1830      SWIG_fail;
1831   }
1832 }
1833 
1834 %exception semanage_ibendport_count_local {
1835   $action
1836   if (result < 0) {
1837      PyErr_SetFromErrno(PyExc_OSError);
1838      SWIG_fail;
1839   }
1840 }
1841 
1842 %exception semanage_ibendport_iterate_local {
1843   $action
1844   if (result < 0) {
1845      PyErr_SetFromErrno(PyExc_OSError);
1846      SWIG_fail;
1847   }
1848 }
1849 
1850 %exception semanage_ibendport_list_local {
1851   $action
1852   if (result < 0) {
1853      PyErr_SetFromErrno(PyExc_OSError);
1854      SWIG_fail;
1855   }
1856 }
1857 
1858 %exception semanage_ibendport_query {
1859   $action
1860   if (result < 0) {
1861      PyErr_SetFromErrno(PyExc_OSError);
1862      SWIG_fail;
1863   }
1864 }
1865 
1866 %exception semanage_ibendport_exists {
1867   $action
1868   if (result < 0) {
1869      PyErr_SetFromErrno(PyExc_OSError);
1870      SWIG_fail;
1871   }
1872 }
1873 
1874 %exception semanage_ibendport_count {
1875   $action
1876   if (result < 0) {
1877      PyErr_SetFromErrno(PyExc_OSError);
1878      SWIG_fail;
1879   }
1880 }
1881 
1882 %exception semanage_ibendport_iterate {
1883   $action
1884   if (result < 0) {
1885      PyErr_SetFromErrno(PyExc_OSError);
1886      SWIG_fail;
1887   }
1888 }
1889 
1890 %exception semanage_ibendport_list {
1891   $action
1892   if (result < 0) {
1893      PyErr_SetFromErrno(PyExc_OSError);
1894      SWIG_fail;
1895   }
1896 }
1897 
1898 %exception semanage_ibpkey_query {
1899   $action
1900   if (result < 0) {
1901      PyErr_SetFromErrno(PyExc_OSError);
1902      SWIG_fail;
1903   }
1904 }
1905 
1906 %exception semanage_ibpkey_exists {
1907   $action
1908   if (result < 0) {
1909      PyErr_SetFromErrno(PyExc_OSError);
1910      SWIG_fail;
1911   }
1912 }
1913 
1914 %exception semanage_ibpkey_count {
1915   $action
1916   if (result < 0) {
1917      PyErr_SetFromErrno(PyExc_OSError);
1918      SWIG_fail;
1919   }
1920 }
1921 
1922 %exception semanage_ibpkey_iterate {
1923   $action
1924   if (result < 0) {
1925      PyErr_SetFromErrno(PyExc_OSError);
1926      SWIG_fail;
1927   }
1928 }
1929 
1930 %exception semanage_ibpkey_list {
1931   $action
1932   if (result < 0) {
1933      PyErr_SetFromErrno(PyExc_OSError);
1934      SWIG_fail;
1935   }
1936 }
1937 
1938 %exception semanage_iface_modify_local {
1939   $action
1940   if (result < 0) {
1941      PyErr_SetFromErrno(PyExc_OSError);
1942      SWIG_fail;
1943   }
1944 }
1945 
1946 %exception semanage_iface_del_local {
1947   $action
1948   if (result < 0) {
1949      PyErr_SetFromErrno(PyExc_OSError);
1950      SWIG_fail;
1951   }
1952 }
1953 
1954 %exception semanage_iface_query_local {
1955   $action
1956   if (result < 0) {
1957      PyErr_SetFromErrno(PyExc_OSError);
1958      SWIG_fail;
1959   }
1960 }
1961 
1962 %exception semanage_iface_exists_local {
1963   $action
1964   if (result < 0) {
1965      PyErr_SetFromErrno(PyExc_OSError);
1966      SWIG_fail;
1967   }
1968 }
1969 
1970 %exception semanage_iface_count_local {
1971   $action
1972   if (result < 0) {
1973      PyErr_SetFromErrno(PyExc_OSError);
1974      SWIG_fail;
1975   }
1976 }
1977 
1978 %exception semanage_iface_iterate_local {
1979   $action
1980   if (result < 0) {
1981      PyErr_SetFromErrno(PyExc_OSError);
1982      SWIG_fail;
1983   }
1984 }
1985 
1986 %exception semanage_iface_list_local {
1987   $action
1988   if (result < 0) {
1989      PyErr_SetFromErrno(PyExc_OSError);
1990      SWIG_fail;
1991   }
1992 }
1993 
1994 %exception semanage_iface_query {
1995   $action
1996   if (result < 0) {
1997      PyErr_SetFromErrno(PyExc_OSError);
1998      SWIG_fail;
1999   }
2000 }
2001 
2002 %exception semanage_iface_exists {
2003   $action
2004   if (result < 0) {
2005      PyErr_SetFromErrno(PyExc_OSError);
2006      SWIG_fail;
2007   }
2008 }
2009 
2010 %exception semanage_iface_count {
2011   $action
2012   if (result < 0) {
2013      PyErr_SetFromErrno(PyExc_OSError);
2014      SWIG_fail;
2015   }
2016 }
2017 
2018 %exception semanage_iface_iterate {
2019   $action
2020   if (result < 0) {
2021      PyErr_SetFromErrno(PyExc_OSError);
2022      SWIG_fail;
2023   }
2024 }
2025 
2026 %exception semanage_iface_list {
2027   $action
2028   if (result < 0) {
2029      PyErr_SetFromErrno(PyExc_OSError);
2030      SWIG_fail;
2031   }
2032 }
2033 
2034 %exception semanage_node_modify_local {
2035   $action
2036   if (result < 0) {
2037      PyErr_SetFromErrno(PyExc_OSError);
2038      SWIG_fail;
2039   }
2040 }
2041 
2042 %exception semanage_node_del_local {
2043   $action
2044   if (result < 0) {
2045      PyErr_SetFromErrno(PyExc_OSError);
2046      SWIG_fail;
2047   }
2048 }
2049 
2050 %exception semanage_node_query_local {
2051   $action
2052   if (result < 0) {
2053      PyErr_SetFromErrno(PyExc_OSError);
2054      SWIG_fail;
2055   }
2056 }
2057 
2058 %exception semanage_node_exists_local {
2059   $action
2060   if (result < 0) {
2061      PyErr_SetFromErrno(PyExc_OSError);
2062      SWIG_fail;
2063   }
2064 }
2065 
2066 %exception semanage_node_count_local {
2067   $action
2068   if (result < 0) {
2069      PyErr_SetFromErrno(PyExc_OSError);
2070      SWIG_fail;
2071   }
2072 }
2073 
2074 %exception semanage_node_iterate_local {
2075   $action
2076   if (result < 0) {
2077      PyErr_SetFromErrno(PyExc_OSError);
2078      SWIG_fail;
2079   }
2080 }
2081 
2082 %exception semanage_node_list_local {
2083   $action
2084   if (result < 0) {
2085      PyErr_SetFromErrno(PyExc_OSError);
2086      SWIG_fail;
2087   }
2088 }
2089 
2090 %exception semanage_node_query {
2091   $action
2092   if (result < 0) {
2093      PyErr_SetFromErrno(PyExc_OSError);
2094      SWIG_fail;
2095   }
2096 }
2097 
2098 %exception semanage_node_exists {
2099   $action
2100   if (result < 0) {
2101      PyErr_SetFromErrno(PyExc_OSError);
2102      SWIG_fail;
2103   }
2104 }
2105 
2106 %exception semanage_node_count {
2107   $action
2108   if (result < 0) {
2109      PyErr_SetFromErrno(PyExc_OSError);
2110      SWIG_fail;
2111   }
2112 }
2113 
2114 %exception semanage_node_iterate {
2115   $action
2116   if (result < 0) {
2117      PyErr_SetFromErrno(PyExc_OSError);
2118      SWIG_fail;
2119   }
2120 }
2121 
2122 %exception semanage_node_list {
2123   $action
2124   if (result < 0) {
2125      PyErr_SetFromErrno(PyExc_OSError);
2126      SWIG_fail;
2127   }
2128 }
2129