Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10962

Migrate SELinux util from matchpathcon(3) to selabel_lookup(3)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • Acceptance Criteria:
      Hide

      No usage of the matchpathcon(3) function.

      Show
      No usage of the matchpathcon(3) function.
    • Team:
      Night's Watch
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet::Util::SElinux uses the deprecated matchpathcon(3) exposed by the C bindings for SELinux.

      This should be changed to instead open a handle with selabel_open, doing the lookup with selabel_lookup then closing the handle with selabel_close.

       

      This has been available since mid 2015 when it was introduced in [1] just need to verify it's included in all new major versions of supported operating systems.

       [1] https://github.com/SELinuxProject/selinux/commit/e7f970ffd1a8dbb26051405719a2288d34e856f6

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tobias-urdin Tobias Urdin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support