The functions of semanage command don't work normally

Solution Unverified - Updated -

Issue

  • The following functions of semanage command don't work normally.
   [About boolean sub-command]
     1. "-F" option doesn't work.
     2. Configuration of boolean value is enabled without specifying "-m" option.
     3. "-a" option which isn't described in SYNOPSIS in man manual is available.

   [About module sub-command]
     If non-existing module policy file is specified by "-a" option, 
     no error messages are displayed and the return value is 0.

   [About interface sub-command]
     About "-l" option, the heading isn't displayed though "-n" option isn't specified.

   [About output sub-command]
     If the mode of SELinux is "Enforcing", the output file isn't created 
     due to the permission error.

   [About all sub-command]
     When an invalid option which is available for another sub-command is 
     specified, the return value is 0.

     (ex: "--enable" option is available only for module sub-command.)
       # semanage user --enable
       --enable not valid for user objects
       # echo $?
       0    <-- (The return value is 0, though the error message outputs.)

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.