In the module editor, right click in any of the three files that comprise a module — the public interface (.if) file, private policy (.te) file, or file contexts (.fc) file — to display the context menu containing the option 'Auto Text'.
Choices under 'Auto Text' include:
Highlight the policy text to be tunable, then select this option to create a 'tunable_policy' block around the text. If no text has been selected, a blank 'tunable_policy' block will be inserted. Tunable policy is policy that is only enabled when a tunable variable is set to true. See the man page for setsebool for information on changing the value of the tunable on the running system.
Highlight the policy to be made optional, then select this option to create an 'optional_policy' block around the text. If no text has been selected, a blank 'optional_policy' block will be inserted. Optional policy is policy that is only enabled when the required policy module is loaded.
Highlight the policy text to be made conditional, then select this option to create an 'ifdef' block around the text. If no text has been selected, a blank 'ifdef' block will be inserted.
Highlight the policy text to be moved, then select this option to move the text outside of the block (e.g., ifdef, tunable_policy, etc.) that contains it. If the resulting block is empty, the block will be removed.
Highlight the policy text to be removed, then select this option to remove a block surrounding policy. Note: the selection must be the block to be removed (optional_policy, tunable_policy, ifdef).
Highlight the desired policy text, then select this option to toggle whether the text is a comment or not. If the text is a comment, the comment character will be removed. If it is not a comment, the comment character will be added.
©2006 Tresys Technology, LLC