EnglishFrenchSpanish

OnWorks favicon

seinfo - Online in the Cloud

Run seinfo in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command seinfo that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


seinfo - SELinux policy query tool

SYNOPSIS


seinfo [OPTIONS] [EXPRESSION] [POLICY ...]

DESCRIPTION


seinfo allows the user to query the components of a SELinux policy.

POLICY


seinfo supports loading a SELinux policy in one of four formats.

source A single text file containing policy source for versions 12 through 21. This file
is usually named policy.conf.

binary A single file containing a monolithic kernel binary policy for versions 15 through
21. This file is usually named by version - for example, policy.20.

modular
A list of policy packages each containing a loadable policy module. The first
module listed must be a base module.

policy list
A single text file containing all the information needed to load a policy, usually
exported by SETools graphical utilities.

If no policy file is provided, seinfo will search for the system default policy: checking
first for a source policy, next for a binary policy matching the running kernel's
preferred version, and finally for the highest version that can be found. In the latter
case, the policy will be downgraded to match the running system. If no policy can be
found, seinfo will print an error message and exit.

EXPRESSIONS


One or more of the following component types can be queried. Each option may only be
specified once. If an option is provided multiple times, the last instance will be used.
Some components support the -x flag to print expanded information about that component; if
a particular component specified does not support expanded information, the flag will be
ignored for that component (see -x below). If no expressions are provided, policy
statistics will be printed (see --stats below).

-c[NAME], --class[=NAME]
Print a list of object classes or, if NAME is provided, print the object class
NAME. With -x, print a list of permissions for each displayed object class.

--sensitivity[=NAME]
Print a list of sensitivities or, if NAME is provided, print the sensitivity NAME.
With -x, print the corresponding level statement for each displayed sensitivity.

--category[=NAME]
Print a list of categories or, if NAME is provided, print the category NAME. With
-x, print a list of sensitivities with which each displayed category may be
associated.

-t[NAME], --type[=NAME]
Print a list of types (not including aliases or attributes) or, if NAME is
provided, print the type NAME. With -x, print a list of attributes which include
each displayed type.

-a[NAME], --attribute[=NAME]
Print a list of type attributes or, if NAME is provided, print the attribute NAME.
With -x, print a list of types assigned to each displayed attribute.

-r[NAME], --role[=NAME]
Print a list of roles or, if NAME is provided, print the role NAME. With -x, print
a list of types assigned to each displayed role.

-u[NAME], --user[=NAME]
Print a list of users or, if NAME is provided, print the user NAME. With -x, print
a list of roles assigned to each displayed user.

-b[NAME], --bool[=NAME]
Print a list of conditional booleans or, if NAME is provided, print the boolean
NAME. With -x, print the default state of each displayed conditional boolean.

--initialsid[=NAME]
Print a list of initial SIDs or, if NAME is provided, print the initial SID NAME.
With -x, print the context assigned to each displayed SID.

--fs_use[=TYPE]
Print a list of fs_use statements or, if TYPE is provided, print the statement for
filesystem TYPE. There is no expanded information for this component.

--genfscon[=TYPE]
Print a list of genfscon statements or, if TYPE is provided, print the statement
for the filesystem TYPE. There is no expanded information for this component.

--netifcon[=NAME]
Print a list of netif contexts or, if NAME is provided, print the statement for
interface NAME. There is no expanded information for this component.

--nodecon[=ADDR]
Print a list of node contexts or, if ADDR is provided, print the statement for the
node with address ADDR. There is no expanded information for this component.

--polcap
Print policy capabilities.

--permissive
Print permissive types.

--portcon[=PORT]
Print a list of port contexts or, if PORT is provided, print the statement for port
PORT. There is no expanded information for this component.

--protocol=PROTO
Print only portcon statements for the protocol PROTO. This option is ignored if
portcon statements are not printed or if no statement exists for the requested
port.

--constrain
Print a list of constraints. There is no expanded information for this component.

--all Print all components.

OPTIONS


-x, --expand
Print additional details for each component matching the expression. These details
include the types assigned to an attribute or role and the permissions for an
object class. This option is not available for all component types; see the
description of each component for the details this option will provide.

--stats
Print policy statistics including policy type and version information and counts of
all components and rules.

-l, --line-breaks
Print line breaks when displaying constraint statements.

-h, --help
Print help information and exit.

-V, --version
Print version information and exit.

Use seinfo online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Image Downloader
    Image Downloader
    Crawl and download images using
    Selenium Using python3 and PyQt5.
    Supported Search Engine: Google, Bing,
    Baidu. Keywords input from the keyboard
    or input from ...
    Download Image Downloader
  • 2
    Eclipse Tomcat Plugin
    Eclipse Tomcat Plugin
    The Eclipse Tomcat Plugin provides
    simple integration of a tomcat servlet
    container for the development of java
    web applications. You can join us for
    discussio...
    Download Eclipse Tomcat Plugin
  • 3
    WebTorrent Desktop
    WebTorrent Desktop
    WebTorrent Desktop is for streaming
    torrents on Mac, Windows or Linux. It
    connects to both BitTorrent and
    WebTorrent peers. Now there's no
    need to wait for...
    Download WebTorrent Desktop
  • 4
    GenX
    GenX
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 5
    pspp4windows
    pspp4windows
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 6
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • More »

Linux commands

Ad