Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setsebool_t relabel selinux data files #2332

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Aug 29, 2024

Since the "libsemanage: Preserve file context and ownership in policy store" commit [1], libsemanage ensures that ownership and also SELinux context of policy data files are correct.

This requires additional permissions for setsebool_t when there is a process transition for the setsebool command defined, such as when executed from an rpm scriptlet.

Assigning to the following attributes is also needed:

  • can_change_object_identity because it actually is the user part of the context which is being fixed; role part is not a subject of constraint violation rules
  • can_relabelto_binary_policy to be able to modify the policy store context (neverallow rule)

[1] SELinuxProject/selinux@d96f27bf7cb9

Resolves: RHEL-55414

Since the "libsemanage: Preserve file context and ownership in policy store"
commit [1], libsemanage ensures that ownership and also SELinux context
of policy data files are correct.

This requires additional permissions for setsebool_t when there is
a process transition for the setsebool command defined, such as when
executed from an rpm scriptlet.

Assigning to the following attributes is also needed:
- can_change_object_identity because it actually is the user part of the
  context which is being fixed; role part is not a subject of constraint
  violation rules
- can_relabelto_binary_policy to be able to modify the policy store context
  (neverallow rule)

[1] SELinuxProject/selinux@d96f27bf7cb9

Resolves: RHEL-55414
@zpytela zpytela merged commit 0113b35 into fedora-selinux:c9s Aug 29, 2024
0 of 2 checks passed
@zpytela zpytela deleted the c9s-20240829-build branch August 29, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant