doc.go 597 B

123456789101112131415161718192021
  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. To compile with full selinux support use the -tags=selinux option in your build
  7. and test commands.
  8. Usage:
  9. import "github.com/opencontainers/selinux/go-selinux"
  10. // Ensure that selinux is enforcing mode.
  11. if selinux.EnforceMode() != selinux.Enforcing {
  12. selinux.SetEnforceMode(selinux.Enforcing)
  13. }
  14. */
  15. package selinux