EnglishFrenchSpanish

Ad


OnWorks favicon

findcon - Online in the Cloud

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

This is the command findcon 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


findcon - SELinux file context search tool

SYNOPSIS


findcon FCLIST [OPTIONS] [EXPRESSION]

DESCRIPTION


findcon allows the user to search for files with a specified context. Results can be
filtered by object class as described below.

FCLIST


The findcon tool operates upon a file context list source. There are three valid file
context lists.

directory
If FCLIST is a name of a directory then begin the search at that directory and
recurse within it. Be sure there are no circular mounts within it.

file_contexts
If FCLIST is the name of a file_contexts file (e.g.,
/etc/selinux/strict/contexts/files/file_contexts) then open that file and find
matching entries.

database
If FCLIST is the name of a database as created by a previous run of indexcon or
apol then open the database and execute queries into it.

EXPRESSION


The following options allow the user to specify which files to print. A file must meet
all specified criteria. If no expression is provided, all files are printed.

-t TYPE, --type=TYPE
Search for files with a context containing the type TYPE.

-u USER, --user=USER
Search for files with a context containing the user USER.

-r ROLE, --role=ROLE
Search for files with a context containing the role ROLE.

-m RANGE, --mls-range=RANGE
Search for files with a context with the MLS range of RANGE. Note that findcon
ignores the SELinux translation library, if present. In addition, this flag is
ignored if the FCLIST has no MLS information.

--context=CONTEXT
Search for files matching this partial context. This flag overrides -t, -u, -r,
and -m.

-p PATH, --path=PATH
Search for files which include PATH.

-c CLASS, --class=CLASS
Search only files of object class CLASS.

OPTIONS


The following additional options are available.

-R, --regex
Search using regular expressions instead of exact string matching. This option
does not affect the --class flag.

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

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

PARTIAL CONTEXT


The --context flag specifies a partial context, which is a a colon separated list of user,
role, and type. If the system supports MLS, the context may have a fourth field that
gives the range. If a field is not specified or is the literal asterisk, then the query
will always match the field.

OBJECT CLASSES


Valid object class strings are

block, char, dir, fifo, file, link, or sock.

NOTE


The findcon utility always operates on "raw" SELinux file contexts. If the system has an
installed translation library (i.e., libsetrans), those translations are ignored in favor
of reading the original contexts from the filesystem (if FCFILE is a directory).

EXAMPLES


findcon .
Find every context in the current directory and all of its subdirectories.

findcon -u user_u .
Find every context whose user is user_u in the current directory and all
subdirectories.

findcon -u system_u -t bin_t file_contexts
Find entries user system_u and type bin_t within a file_contexts file, assuming
that file_contexts is a file contexts file.

findcon --context=system_u::bin_t file_contexts
This is equivalent to the previous example.

findcon --context=system_u:*:bin_t:* file_contexts
This is also equivalent to the above example.

Use findcon online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 2
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 3
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 4
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 5
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 6
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • More »

Linux commands

Ad