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

Synchronize with the Fedora 'selinux-policy' package #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Sep 24, 2024

  1. Rename all /var/run file context entries to /run

    With the next selinux-policy package update, the "/run = /var/run"
    equivalency will be inverted to "/var/run = /run" so that the
    file context specifications entries match the actual filesystem path.
    All existing file context entries in selinux-policy sources
    based on the /var/run path need to change to /run.
    
    --
    
    NOTE:
    cherry-picked from the Fedora package 'selinux-policy' upstream:
      fedora-selinux/selinux-policy@1f76e52
    zpytela authored and FaramosCZ committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    93b189c View commit details
    Browse the repository at this point in the history
  2. Alias /usr/sbin to /usr/bin and change all /usr/sbin paths to /usr/bin

    This is for https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin.
    We want to match /usr/bin/foo and /usr/sbin/foo. Instead of duplicating
    all the paths, introduce the alias and use the new path everywhere.
    
    Duplicate paths are removed.
    (cat **/*.fc | sed -r 's/\s+/ /g' | sort | grep -v '^#' | uniq -c | grep -v '      1 ')
    
    --
    
    NOTE:
    cherry-picked from the Fedora package 'selinux-policy' upstream:
    fedora-selinux/selinux-policy@1be14f9
    keszybz authored and FaramosCZ committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    8c4a822 View commit details
    Browse the repository at this point in the history
  3. [refactoring] Code style adjustments to align with content from Fedor…

    …a 'selinux-policy' package
    
    This commit contains no functional changes (No-op).
    It updates code style to closely match the guidelines and structure outlined in the following resource:
      https://github.com/fedora-selinux/selinux-policy/blob/rawhide/policy/modules/contrib/mysql.fc
    
    --
    
    The differences has been introduced in commits:
      fedora-selinux/selinux-policy@4cd4009
      c4825a8
    FaramosCZ committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    676ba35 View commit details
    Browse the repository at this point in the history