1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/changelogs/fragments
patchback[bot] 9bab144d06
[PR #5830/c8a2ac3a backport][stable-6] sefcontext: add support for path substitutions (#6098)
sefcontext: add support for path substitutions (#5830)

* sefcontext: add path substitution support (#1193)

First commit for feedback, missing docs and tests.

* sefcontext: add documentation

* Add changelog fragment

* Documentation formatting

* Delete extra newline

* pep8 fixes

Fix indentation

* Add version_added to arg docs

* Add examples

* Don't delete non-matching path substitutions

* Add integration tests

* Delete only substitutions if such arg passed

Don't delete existing regular file context mappings if deletion of
a path substitution was requested with the presence of the
`equal` arg - delete only path substitutions in such case.

Path substitutions and regular mappings may overlap.

* Can only add args in minor releases

:(

* Cleanup before tests

* Fix deletion using substitution

Was comparing wrong var.

* Fix test checking wrong var

* Improve args documentation and examples

List the default values for selevel, seuser.
Add example for deleting path substitutions only.

* Add attributes documentation block

Not sure if should add become/delegate/async,
shouldn't those work just like that without any
specific code added for them?

* and fix indentation on attribute block

* Consistent indentation for attributes

Confusing, most plugins indent with 4 spaces.
But some use 2 like the rest of the code, so use 2.

* Add missing ref for attribute block

* Use correct c.g version in doc block

Co-authored-by: Felix Fontein <felix@fontein.de>

* Add full stop to changelog fragment

Co-authored-by: Felix Fontein <felix@fontein.de>

* Streamline documentation

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Support limiting deletion to setype

Deleting file context mappings may be limited by
passing setype or equal, if neither arg is passed
then delete either setype/equal mappings that match.

* Change arg name, diff mode output fix

Change arg name from equal to substitute.
Print target = subsitute in diff mode same way as
semanage does.

Also put back platform attribute, try to improve
clumsy language in the substitute arg docs.

* Delete even if arg setype not match existing

Test 5 indicates that deletion is supposed to not check that
the arg setype passed when deleting matches the setype
of the mapping to delete.
Delete any mapping that matches target, regardless of
setype arg value.

* Update arg name in tests

* Too eager replacing

Accidentally replaced seobject function names so fix them back

* 4564: Fix invalid setype in doc example

Change from httpd_git_rw_content_t which
does not exist to httpd_sys_rw_content_t

Fixes #4564

* Fix documentation attributes

Additional fragment

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update version_added in docs

Bumping minor to 6.4.0 since it didn't make 6.3.0.

* Add more description to the new arg docs

Try to improve discoverability of the new feature and make it easier to understand without deep SELinux understanding.

* Update platform to Linux in documentation

* Add equal as alias for the new argument

Improve discoverability of the new feature by adding an alias to the new module argument. The argument name "equal" will be easy to find for users who are not familiar with SELinux and who just try to match to the CLI tool `semanage`.

* And add alias argument properly

Previous commit missed actually adding the alias (added to docs only).

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
(cherry picked from commit c8a2ac3a47)

Co-authored-by: bluikko <14869000+bluikko@users.noreply.github.com>
2023-02-26 14:23:53 +01:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:17:57 +02:00
6.4.0.yml Prepare 6.4.0 release. 2023-02-24 11:18:18 +01:00
5431-nmcli-wifi.yml [PR #5431/490899f8 backport][stable-6] nmcli: two fixes needed to make wifi.wake-on-wlan settings work properly (#6051) 2023-02-24 09:29:49 +01:00
5615-zypper-transactional-update.yml [PR #5998/2c762c47 backport][stable-6] Added support for openSUSE MicroOS (#6078) 2023-02-25 11:23:44 +01:00
5814-support-keycloak-subgroups.yml [PR #5814/7d3e6d1b backport][stable-6] keycloak_group: support keycloak subgroups (#6089) 2023-02-25 14:03:38 +01:00
5829-fix-yarn-global.yml [PR #5829/4c4ef80c backport][stable-6] yarn: Fix state=latest not working with global=true (#5992) 2023-02-13 22:07:12 +01:00
5830-sefcontext-path-subs.yml [PR #5830/c8a2ac3a backport][stable-6] sefcontext: add support for path substitutions (#6098) 2023-02-26 14:23:53 +01:00
5863-providerType-defaulted-keycloak_userfed-mappers.yml [PR #5863/95b8afde backport][stable-6] providerType should be defaulted for keycloak_user_federation mappers (#6079) 2023-02-25 11:23:26 +01:00
5866-lxd_container-diff-and-check-mode.yml [PR #5866/7e3c73ce backport][stable-6] lxd_container: add check- and diff-mode support (#6032) 2023-02-22 14:49:28 +01:00
5899-adding-enablesecureboot-functionality-to-redfish-config.yml [PR #5899/71d74a79 backport][stable-6] Adding EnableSecureBoot functionality (#6007) 2023-02-17 20:20:23 +01:00
5900-adding-verifybiosattribute-fucntionality-to-redfish-command.yml [PR #5900/49e3da36 backport][stable-6] Adding VerifyBiosAttributes functionality (#6006) 2023-02-17 08:08:27 +01:00
5915-suppress-urllib3-insecure-request-warnings.yml [PR #5931/f0fd6aa9 backport][stable-6] Suppress urllib3 InsecureRequestWarnings when validate_certs option is false (#5987) 2023-02-13 21:47:26 +01:00
5925-align_gitlab_runner_access_level_default_with_gitlab.yml [PR #5930/de193ac1 backport][stable-6] Align 'gitlab_runner' with GitLab's default access level. (#5971) 2023-02-10 14:12:15 +01:00
5926-flatpak-remote-enabled.yml [PR #5926/810f3b50 backport][stable-6] Add enabled parameter to flatpak_remote (#6095) 2023-02-25 23:16:07 +01:00
5927-set-user-agent-dnsimple.yml [PR #5927/33df7b61 backport][stable-6] Set User-Agent for API requests to DNSimple (#6005) 2023-02-17 08:08:35 +01:00
5928-fix-favicon-url.yml [PR #5928/a64df658 backport][stable-6] Replace missing default favicon with docs.ansible.com favicon (#5935) 2023-02-03 11:46:40 +01:00
5933-linting.yml [PR #5933/b1d9507c backport][stable-6] Fix pylint errors (#5937) 2023-02-04 17:22:05 +01:00
5934-fix-keycloak-sanitize_cr.yml [PR #5934/78297e44 backport][stable-6] Fix keycloak sanitize_cr (#6036) 2023-02-22 15:23:33 +01:00
5942-onepassword-ignore-errors-from-op-account-get.yml [PR #5942/5648e0e2 backport][stable-6] onepassword: ignore errors from "op account get" (#6037) 2023-02-22 16:43:55 +01:00
5943-zfs_delegate_admin-fix-zfs-allow-cannot-parse-unknown-uid-gid.yml [PR #5943/53f72973 backport][stable-6] zfs_delegate_admin: fix: zfs allow cannot parse unknown uid/gid (#6086) 2023-02-25 11:48:25 +01:00
5972-cloudflare-dns-srv-record.yml [PR #5972/094dc6b6 backport][stable-6] cloudflare_dns: Fix setting SRV records with a root level entry (#6097) 2023-02-26 14:16:52 +01:00
5994-github-webhook-secret.yml [PR #5994/1877ef15 backport][stable-6] github_webhook: Don't include secret in the config if it's absent (#6088) 2023-02-25 11:56:05 +01:00
6011-osx-defaults-errors.yml [PR #6011/92544993 backport][stable-6] community.general.osx_defaults: Include stderr in error messages (#6080) 2023-02-25 11:25:19 +01:00
6034-lxd-tls.yml [PR #6034/f0529dcb backport][stable-6] lxd plugins and modules: fix TLS/SSL context creation (#6084) 2023-02-25 11:41:35 +01:00
6043-jc_plugin_parser_support.yml [PR #6043/c168f9c3 backport][stable-6] JC: Add plugin parser functionality to JC Filter Plugin (#6047) 2023-02-23 17:12:09 +01:00
6048-nmcli-addres-order.yml [PR #6048/682c6fc9 backport][stable-6] nmcli: Treat order as significant when comparing address lists (#6082) 2023-02-25 11:34:34 +01:00
6074-loader_in_listify.yml.yml [PR #6074/b6492911 backport][stable-6] stop passing loader/dataloader since it has been deprecated by ansible (#6092) 2023-02-25 15:39:48 +01:00
remove-unneeded-imports.yml [PR #5940/2b8ac3c6 backport][stable-6] Remove unneccessary imports (#5976) 2023-02-12 20:22:44 +01:00