doc.go 497 B

123456789101112131415161718
  1. /*
  2. Package selinux provides a high-level interface for interacting with selinux.
  3. This package uses a selinux build tag to enable the selinux functionality. This
  4. allows non-linux and linux users who do not have selinux support to still use
  5. tools that rely on this library.
  6. Usage:
  7. import "github.com/opencontainers/selinux/go-selinux"
  8. // Ensure that selinux is enforcing mode.
  9. if selinux.EnforceMode() != selinux.Enforcing {
  10. selinux.SetEnforceMode(selinux.Enforcing)
  11. }
  12. */
  13. package selinux