semanage Verified current stable Not installed?

Semanage / List Interface Type Definitions Custom Format

List Interface Type Definitions Custom Format

Use semanage to list interface type definitions in a custom format for SELinux management.

$
Terminal
sudo semanage interface -l -C

When To Use

Use this command to view SELinux interface type definitions for network interfaces.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
sudo semanage interface -l -C

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Interface Type Definitions:
  - eth0_t
  - wlan0_t
  - lo_t

Total: 3 definitions listed.

Command Breakdown

What each part is doing

sudo
Base Command
The executable that performs this operation. Here it runs Semanage before the shell applies any redirect operators.
-l
l| list
The value supplied for l| list.
-C
C| locallist
The value supplied for C| locallist.
-l
Command Option
Tool-specific option used by this command invocation.
-C
Command Option
Tool-specific option used by this command invocation.

How To Run

Execution path

  1. Step 1

    Open a terminal.

  2. Step 2

    Run the command: sudo semanage interface --list.

  3. Step 3

    Review the output for interface type definitions.

Alternative Approaches

Comparable commands in other tools

Alternative tools that share the "inspect" operation intent.