Commit graph

61 commits

Author SHA1 Message Date
Stephen Fromm
573d4b4bad Rename serange to selevel to be consistent with selinux docs 2012-04-17 17:12:09 -07:00
Stephen Fromm
5cdcd4b4a3 Add selinux support to file module
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.
2012-04-12 10:45:31 -07:00
Michael DeHaan
043815a6e6 Fix syntax error in user patch 2012-04-02 20:08:40 -04:00
Matthew Williams
3404fb4594 protecting against replacing file or directory with link 2012-04-02 10:21:14 -07:00
Matthew Williams
ff8750bbdc "link" state in file module 2012-04-01 16:10:23 -07:00
Michael DeHaan
01de08da57 Remove comment about FIXME that is already resolved 2012-03-15 23:05:34 -04:00
Michael DeHaan
557539dda7 Add some comments 2012-03-15 22:37:37 -04:00
Michael DeHaan
c4b3979f16 Fix changed=True/False detection when specifying mode= 2012-03-15 22:35:59 -04:00
Michael DeHaan
1d3dd22a02 Disable debug 2012-03-15 22:04:32 -04:00
Michael DeHaan
3aa975aad3 Return file info about the file regardless of changes made 2012-03-15 22:04:04 -04:00
Michael DeHaan
44caf013d5 Initial crack at the file module 2012-03-15 21:53:14 -04:00