1. 09 May, 2012 1 commit
    • Apply logging of arguments to modules (issue #122) · 1144a216
      The ohai and facter modules use /usr/bin/logger to log the fact that
      they have been invoked.  I added 'import os' to the ping module
      so that it could have the same syslog statements as the other modules.
      I separated the condensed:
          shlex.split(open(argfile, 'r').read())
      into two separate statements similar to the other modules.
      Stephen Fromm committed
  2. 05 May, 2012 1 commit
  3. 02 May, 2012 2 commits
  4. 01 May, 2012 1 commit
  5. 26 Apr, 2012 2 commits
    • Update file module selinux-awareness · 5be20f87
      This adds selinux_mls_enabled() and selinux_enabled() to detect a)
      whether selinux is MLS aware (ie supports selevel) and b) whether
      selinux is enabled.  If selinux is not enabled, all selinux operations
      are punted on -- same as if python's selinux module were not available.
      In set_context_if_different(), I now iterate over the current context
      instead of the context argument.  Even if the system supports MLS, it
      may not return the selevel from selinux.lgetfilecon().  Lastly, this
      drops selinux_has_selevel() in lieu of the current approach.
      Stephen Fromm committed
  6. 25 Apr, 2012 1 commit
    • Fix for issue #227 · 5c74a524
      Older versions of selinux, such as that deployed on rhel5, only return a
      context of user:role:type instead of user:role:type:level.  This detects
      whether the tuple has three elements (old-style) or four.  If the
      old-style, it keeps the secontext list at three elements.
      Stephen Fromm committed
  7. 24 Apr, 2012 2 commits
  8. 22 Apr, 2012 1 commit
  9. 20 Apr, 2012 3 commits
  10. 18 Apr, 2012 1 commit
  11. 12 Apr, 2012 1 commit
    • Add selinux support to file module · 1e5d34ba
      This adds the options: seuser, serole, setype, and serange to the file
      module.  If the python selinux module doesn't exist, this will set
      HAVE_SELINUX to False and punt in the related modules.
      
      This takes the options the user provides and applies those to the
      default selinux context as provided from matchpathcon().  If there is no
      default context, this uses the value from the current context.  This
      implies that if you set the setype and later remove it, the file module
      will rever the setype to the default if available.
      Stephen Fromm committed
  12. 03 Apr, 2012 1 commit
  13. 02 Apr, 2012 1 commit
  14. 01 Apr, 2012 2 commits
  15. 16 Mar, 2012 6 commits