Commit abaf812
python: Split "semanage import" into two transactions
First transaction applies all deletion operations, so that there are no
collisions when applying the rest of the changes.
Fixes:
# semanage port -a -t http_cache_port_t -r s0 -p tcp 3024
# semanage export | semanage import
ValueError: Port tcp/3024 already defined
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>1 parent c8ba796 commit abaf812
1 file changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
855 | 859 | | |
856 | 860 | | |
857 | 861 | | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
858 | 874 | | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
859 | 878 | | |
860 | 879 | | |
861 | 880 | | |
| |||
869 | 888 | | |
870 | 889 | | |
871 | 890 | | |
872 | | - | |
873 | | - | |
874 | 891 | | |
875 | 892 | | |
876 | 893 | | |
| |||
0 commit comments