|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| .circleci/ | | 23-Nov-2023 | - | 41 | 28 |
| checkpolicy/ | | 23-Nov-2023 | - | 13,136 | 11,132 |
| dbus/ | | 23-Nov-2023 | - | 657 | 533 |
| gui/ | | 23-Nov-2023 | - | 7,988 | 7,201 |
| libselinux/ | | 23-Nov-2023 | - | 34,767 | 27,622 |
| libsemanage/ | | 23-Nov-2023 | - | 39,475 | 28,122 |
| libsepol/ | | 23-Nov-2023 | - | 114,252 | 86,784 |
| mcstrans/ | | 23-Nov-2023 | - | 5,853 | 4,444 |
| policycoreutils/ | | 23-Nov-2023 | - | 577,123 | 457,157 |
| prebuilts/bin/ | | 23-Nov-2023 | - | 2,074 | 1,674 |
| python/ | | 23-Nov-2023 | - | 57,707 | 49,133 |
| restorecond/ | | 23-Nov-2023 | - | 1,980 | 1,419 |
| sandbox/ | | 23-Nov-2023 | - | 2,439 | 1,932 |
| scripts/ | | 23-Nov-2023 | - | 294 | 191 |
| secilc/ | | 23-Nov-2023 | - | 7,770 | 6,148 |
| semodule-utils/ | | 23-Nov-2023 | - | 1,484 | 1,232 |
| .gitignore | D | 23-Nov-2023 | 277 | 28 | 25 |
| .travis.yml | D | 23-Nov-2023 | 6.3 KiB | 167 | 107 |
| Android.bp | D | 23-Nov-2023 | 1.4 KiB | 44 | 41 |
| CONTRIBUTING.md | D | 23-Nov-2023 | 3.6 KiB | 88 | 61 |
| CleanSpec.mk | D | 23-Nov-2023 | 310 | 7 | 3 |
| METADATA | D | 23-Nov-2023 | 43 | 4 | 3 |
| MODULE_LICENSE_GPL | D | 23-Nov-2023 | 0 | | |
| Makefile | D | 23-Nov-2023 | 1.2 KiB | 48 | 41 |
| NOTICE | D | 23-Nov-2023 | 106.1 KiB | 2,061 | 1,704 |
| OWNERS | D | 23-Nov-2023 | 60 | 4 | 3 |
| README | D | 23-Nov-2023 | 1.1 KiB | 26 | 19 |
| README.android | D | 23-Nov-2023 | 1.7 KiB | 42 | 31 |
| lgtm.yml | D | 23-Nov-2023 | 108 | 6 | 5 |
README
1Please submit all bug reports and patches to selinux@vger.kernel.org.
2Subscribe by sending "subscribe selinux" in the body of an email
3to majordomo@vger.kernel.org.
4
5Build dependencies on Fedora:
6yum 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
7
8To build and install everything under a private directory, run:
9make DESTDIR=~/obj install install-pywrap
10
11To install as the default system libraries and binaries
12(overwriting any previously installed ones - dangerous!),
13on x86_64, run:
14make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install install-pywrap relabel
15or on x86 (32-bit), run:
16make install install-pywrap relabel
17
18This may render your system unusable if the upstream SELinux userspace
19lacks library functions or other dependencies relied upon by your
20distribution. If it breaks, you get to keep both pieces.
21
22To install libsepol on macOS (mainly for policy analysis):
23cd libsepol; make PREFIX=/usr/local install
24
25This requires GNU coreutils (brew install coreutils).
26
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