Class: Ansible::Ruby::Modules::Sefcontext
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Sefcontext
- Defined in:
- lib/ansible/ruby/modules/generated/system/sefcontext.rb
Overview
Manages SELinux file context mapping definitions. Similar to the C(semanage fcontext) command.
Instance Method Summary collapse
-
#ftype ⇒ String?
File type.,The following file type options can be passed; C(a) for all files, C(b) for block devices, C© for character devices, C(d) for directories, C(f) for regular files, C(l) for symbolic links, C(p) for named pipes, C(s) for socket files.
-
#reload ⇒ :yes, ...
Reload SELinux policy after commit.,Note that this does not apply SELinux file contexts to existing files.
-
#selevel ⇒ String?
SELinux range for the specified target.
-
#setype ⇒ String
SELinux type for the specified target.
-
#seuser ⇒ String?
SELinux user for the specified target.
-
#state ⇒ String?
Whether the SELinux file context must be C(absent) or C(present).
-
#target ⇒ String
Target path (expression).
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#ftype ⇒ String?
Returns File type.,The following file type options can be passed; C(a) for all files, C(b) for block devices, C© for character devices, C(d) for directories, C(f) for regular files, C(l) for symbolic links, C(p) for named pipes, C(s) for socket files.
17 |
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 17 attribute :ftype |
#reload ⇒ :yes, ...
Returns Reload SELinux policy after commit.,Note that this does not apply SELinux file contexts to existing files.
37 |
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 37 attribute :reload |
#selevel ⇒ String?
Returns SELinux range for the specified target.
29 |
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 29 attribute :selevel |
#setype ⇒ String
Returns SELinux type for the specified target.
21 |
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 21 attribute :setype |
#seuser ⇒ String?
Returns SELinux user for the specified target.
25 |
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 25 attribute :seuser |
#state ⇒ String?
Returns Whether the SELinux file context must be C(absent) or C(present).
33 |
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 33 attribute :state |
#target ⇒ String
Returns Target path (expression).
13 |
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 13 attribute :target |