semanage-interface
Manage SELinux network interface types
TLDR
List all interface type definitions
$ sudo semanage interface -l
Add a network interface type definition$ sudo semanage interface -a -t type_name interface_name
Delete an interface type definition$ sudo semanage interface -d interface_name
Modify an interface type definition$ sudo semanage interface -m -t type_name interface_name
List only customized definitions$ sudo semanage interface -l -C
SYNOPSIS
semanage interface [options]
DESCRIPTION
semanage interface manages SELinux network interface type definitions. It assigns SELinux types to network interfaces for network-based access control.
Interface labeling allows SELinux policies to control network traffic based on interface types.
PARAMETERS
-l, --list
List interface type definitions-a, --add
Add new definition-d, --delete
Delete definition-m, --modify
Modify existing definition-t, --type type
SELinux type for interface-C, --locallist
Show only local customizations
CAVEATS
Changes require policy reload to take effect. Incorrect interface typing may affect network connectivity.
HISTORY
Part of policycoreutils, providing SELinux policy management tools.
SEE ALSO
semanage(8), semanage-port(8)
