selinux/python
Vit Mojzis f5d4b60e69 python/semanage: Allow modifying records on "add"
When trying to add a record with a key that already exists, modify
the existing record instead.

Also, fix "semanage -m -e" (add_equal was called instead of
modify_equal), which meant that existing local equivalency couldn't be
modified (though a user could remove it and add a modified
equivalency).

Fixes:
  https://github.com/SELinuxProject/selinux/issues/412
  When a port or login definition present in the policy is modified
  using "semanage port -m", "semanage export" exports the command as
  "port -a" instead of "port -m". This results in "semanage import"
  failing (port already defined). The same is true for port, user,
  login, ibpkey, ibendport, node, interface and fcontext.

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
2024-03-04 09:57:53 -05:00
..
audit2allow Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
chcat Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
po Update translations 2023-11-07 16:27:38 -05:00
semanage python/semanage: Allow modifying records on "add" 2024-03-04 09:57:53 -05:00
sepolgen Update VERSIONs to 3.6 for release. 2023-12-13 15:46:22 +01:00
sepolicy Update VERSIONs to 3.6 for release. 2023-12-13 15:46:22 +01:00
LICENSE docs: provide a top level LICENSE file 2022-10-05 08:20:38 -04:00
Makefile Split po/ translation files into the relevant sub-directories 2022-04-06 10:52:41 +02:00
VERSION Update VERSIONs to 3.6 for release. 2023-12-13 15:46:22 +01:00