Skip to content

azurelinux-sysinfo: policies to work with SELinux enforcing mode#8733

Merged
amritakohli merged 12 commits intomicrosoft:3.0-devfrom
amritakohli:amritakohli-selinuxsysinfo
Apr 10, 2024
Merged

azurelinux-sysinfo: policies to work with SELinux enforcing mode#8733
amritakohli merged 12 commits intomicrosoft:3.0-devfrom
amritakohli:amritakohli-selinuxsysinfo

Conversation

@amritakohli
Copy link
Copy Markdown
Contributor

@amritakohli amritakohli commented Apr 8, 2024

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

Adds the SELinux policies needed for systemd-analyze commands to work in SELinux enforcing mode.

Change Log
  • Write and apply a file with required SELinux policies.
  • Remove the policies on uninstall.
Does this affect the toolchain?

NO

Test Methodology

@amritakohli amritakohli marked this pull request as ready for review April 8, 2024 22:20
@amritakohli amritakohli requested a review from a team as a code owner April 8, 2024 22:20
Comment thread SPECS/azurelinux-sysinfo/azurelinux-sysinfo.spec Outdated
Comment thread SPECS/azurelinux-sysinfo/azurelinux-sysinfo.spec Outdated
Comment thread SPECS/azurelinux-sysinfo/azurelinux-sysinfo.spec Outdated
Comment thread SPECS/azurelinux-sysinfo/azurelinux-sysinfo.spec Outdated
Comment thread SPECS/azurelinux-sysinfo/azurelinux-sysinfo.spec Outdated
Copy link
Copy Markdown
Contributor

@BettyRain BettyRain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amritakohli amritakohli merged commit 6725691 into microsoft:3.0-dev Apr 10, 2024
@amritakohli amritakohli deleted the amritakohli-selinuxsysinfo branch April 10, 2024 00:22
anphel31 added a commit that referenced this pull request Apr 15, 2024
Xiaohong-Deng pushed a commit to Xiaohong-Deng/azurelinux that referenced this pull request Nov 23, 2024
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.

5 participants