• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

checkpolicy/22-Nov-2023-12,96710,973

dbus/22-Nov-2023-656533

gui/22-Nov-2023-8,1277,312

libselinux/22-Nov-2023-31,54725,102

libsemanage/22-Nov-2023-29,67321,241

libsepol/22-Nov-2023-133,572100,085

mcstrans/22-Nov-2023-5,9684,548

policycoreutils/22-Nov-2023-575,577455,739

prebuilts/bin/22-Nov-2023-2,0741,674

python/22-Nov-2023-53,60746,070

restorecond/22-Nov-2023-1,9321,376

sandbox/22-Nov-2023-2,2451,758

scripts/22-Nov-2023-11988

secilc/22-Nov-2023-8,0636,389

semodule-utils/22-Nov-2023-1,3301,096

.gitD01-Jan-19700

.gitignoreD22-Nov-2023277 2825

.travis.ymlD22-Nov-20236.3 KiB161104

Android.bpD22-Nov-202381 76

CleanSpec.mkD22-Nov-2023310 73

MODULE_LICENSE_GPLD22-Nov-20230

MakefileD22-Nov-20231 KiB4236

NOTICED22-Nov-2023106.1 KiB2,0611,704

OWNERSD22-Nov-202337 32

READMED22-Nov-20231.1 KiB2518

README.androidD22-Nov-20231.7 KiB4231

README

1Please submit all bug reports and patches to selinux@tycho.nsa.gov.
2Subscribe via selinux-join@tycho.nsa.gov.
3
4Build dependencies on Fedora:
5yum 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 python-devel setools-devel swig xmlto redhat-rpm-config
6
7To build and install everything under a private directory, run:
8make DESTDIR=~/obj install install-pywrap
9
10To install as the default system libraries and binaries
11(overwriting any previously installed ones - dangerous!),
12on x86_64, run:
13make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install install-pywrap relabel
14or on x86 (32-bit), run:
15make install install-pywrap relabel
16
17This may render your system unusable if the upstream SELinux userspace
18lacks library functions or other dependencies relied upon by your
19distribution.  If it breaks, you get to keep both pieces.
20
21To install libsepol on macOS (mainly for policy analysis):
22cd libsepol; make DESTDIR=/usr/local PREFIX=/usr/local install
23
24This requires GNU coreutils (brew install coreutils).
25

README.android

1This fork of Android differs in the following ways:
2 - README.android
3 - All Android.mk and Android.bp files
4 - ALL MODULE_LICENSE_* files
5 - libselinux/include/selinux/android.h
6 - libselinux/src/android/android.c
7
8All other changes should be upstreamed to selinux as
9Android no longer carries changes outside of those files.
10
11The upstream project can be found at:
12https://github.com/SELinuxProject/selinux
13
14Thus, since all changes are in separate files, updates merged from
15upstream should occur with no merge conflicts.
16
17This fork differs from upstream libselinux in at least the following ways:
18
19* The Android fork omits compiling many of the src files and specifies
20  custom build configurations. The exact details, are encoded in the
21  Android.bp and Android.mk files.
22
23* The SELinux policy files are all located in / rather than under
24  /etc/selinux since /etc is not available in Android until /system
25  is mounted and use fixed paths, not dependent on /etc/selinux/config.
26
27* The kernel policy file (sepolicy in Android, policy.N in Linux) does
28  not include a version suffix since Android does not need to support
29  booting multiple kernels.
30
31* The policy loading logic does not support automatic downgrading of
32  the kernel policy file to a version known to the kernel, since this
33  requires libsepol on the device and is only needed to support mixing
34  and matching kernels and userspace easily.
35
36* restorecon functionality, including recursive restorecon, has been
37  been upstreamed as selinux_restorecon(), but there are residual
38  differences between it and selinux_android_restorecon().
39
40* Support for seapp_contexts, a new Android-specific SELinux
41  configuration file has been added within android.c.
42