Go to file
Masatake YAMATO 9be4e7454d checkpolicy: allow to write policy to stdout
If - is given as filename for -o option, checkpolicy
writes the policy to standard output. This helps users
to read policy.conf and/or CIL policy file with pager
like less command:

 $ checkpolicy -M -F -b /sys/fs/selinux/policy  -o - | less

The users don't have to make a temporary file.
/dev/stdout can be used instead. However, - reduces the number of
typing for the purpose. Using - for standard output (and/or standard
input) is popular convention.

Change(s) in v2:
* Check the availability of output stream only when opening
  a regualar file. Suggested by Stephen Smalley <sds@tycho.nsa.gov>.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2019-10-22 08:26:26 -04:00
.circleci CircleCI: run scan-build and publish its results automatically 2019-09-26 09:45:47 -04:00
checkpolicy checkpolicy: allow to write policy to stdout 2019-10-22 08:26:26 -04:00
dbus Fix many misspellings 2019-09-18 22:47:35 +02:00
gui gui: Fix remove module in system-config-selinux 2019-09-26 08:31:56 -04:00
libselinux libselinux: mark all exported function "extern" 2019-10-18 07:34:39 +13:00
libsemanage libsemanage: mark all exported function "extern" 2019-10-18 07:34:46 +13:00
libsepol libsepol: Use LIBSEPOL_3.0 and fix sepol_policydb_optimize symbol mapping 2019-10-17 08:40:19 -04:00
mcstrans Fix many misspellings 2019-09-18 22:47:35 +02:00
policycoreutils policycoreutils/fixfiles: Force full relabel when SELinux is disabled 2019-09-26 08:31:45 -04:00
python sepolicy: generate man pages in parallel 2019-10-21 08:40:53 -04:00
restorecond Fix many misspellings 2019-09-18 22:47:35 +02:00
sandbox Fix many misspellings 2019-09-18 22:47:35 +02:00
scripts libsepol, libsemanage: add a macro to silence static analyzer warnings in tests 2019-09-30 08:43:41 -04:00
secilc Fix many misspellings 2019-09-18 22:47:35 +02:00
semodule-utils semodule-utils: fix comparison with argc 2019-09-17 10:38:34 -04:00
.gitignore
.travis.yml scripts: introduce env_use_destdir.sh helper 2019-01-21 12:13:41 +01:00
CONTRIBUTING.md Fix many misspellings 2019-09-18 22:47:35 +02:00
CleanSpec.mk
Makefile build: setup buildpaths if DESTDIR is specified 2018-02-14 20:02:03 +01:00
README README: Update Fedora python 3 dependencies 2019-02-20 16:43:27 +01:00
lgtm.yml Add configuration file for lgtm.com 2019-09-18 08:24:11 -04:00

README

Please submit all bug reports and patches to selinux@vger.kernel.org.
Subscribe by sending "subscribe selinux" in the body of an email
to majordomo@vger.kernel.org.

Build dependencies on Fedora:
yum install audit-libs-devel bison bzip2-devel dbus-devel dbus-glib-devel flex flex-devel flex-static glib2-devel libcap-devel libcap-ng-devel pam-devel pcre-devel python3-devel python3-setools swig xmlto redhat-rpm-config

To build and install everything under a private directory, run:
make DESTDIR=~/obj install install-pywrap

To install as the default system libraries and binaries
(overwriting any previously installed ones - dangerous!),
on x86_64, run:
make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install install-pywrap relabel
or on x86 (32-bit), run:
make install install-pywrap relabel

This may render your system unusable if the upstream SELinux userspace
lacks library functions or other dependencies relied upon by your
distribution.  If it breaks, you get to keep both pieces.

To install libsepol on macOS (mainly for policy analysis):
cd libsepol; make PREFIX=/usr/local install

This requires GNU coreutils (brew install coreutils).