compile success for libsepl in kernel

This commit is contained in:
weishu
2022-12-21 19:17:36 +07:00
parent 06d0430e52
commit 5180e4add4
361 changed files with 157714 additions and 0 deletions
BIN
View File
Binary file not shown.
+26
View File
@@ -0,0 +1,26 @@
# Installation directories.
LINGUAS ?= ru
PREFIX ?= /usr
MANDIR ?= $(PREFIX)/share/man
MAN3SUBDIR ?= man3
MAN8SUBDIR ?= man8
MAN3DIR ?= $(MANDIR)/$(MAN3SUBDIR)
MAN8DIR ?= $(MANDIR)/$(MAN8SUBDIR)
all:
install: all
mkdir -p $(DESTDIR)$(MAN3DIR)
mkdir -p $(DESTDIR)$(MAN8DIR)
install -m 644 man3/*.3 $(DESTDIR)$(MAN3DIR)
install -m 644 man8/*.8 $(DESTDIR)$(MAN8DIR)
for lang in $(LINGUAS) ; do \
if [ -e $${lang}/man3 ] ; then \
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN3SUBDIR) ; \
install -m 644 $${lang}/man3/*.3 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN3SUBDIR) ; \
fi ; \
if [ -e $${lang}/man8 ] ; then \
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \
install -m 644 $${lang}/man8/*.8 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \
fi ; \
done
@@ -0,0 +1,25 @@
.TH "sepol_check_context" "3" "15 March 2005" "sds@tycho.nsa.gov" "SE Linux binary policy API documentation"
.SH "NAME"
sepol_check_context \- Check the validity of a security context against a binary policy.
.SH "SYNOPSIS"
.B #include <sepol/sepol.h>
.sp
.BI "int sepol_check_context(const char *" context ");"
.sp
.BI "int sepol_set_policydb_from_file(FILE *" fp ");"
.SH "DESCRIPTION"
.B sepol_check_context
checks the validity of a security context against a binary policy
previously loaded from a file via
.B sepol_set_policydb_from_file.
It is used by
.B setfiles -c
to validate a file contexts configuration against the binary policy
upon policy builds. For validating a context against the active
policy on a SELinux system, use
.B security_check_context
from libselinux instead.
.SH "RETURN VALUE"
Returns 0 on success or \-1 with errno set otherwise.
+41
View File
@@ -0,0 +1,41 @@
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Copyright (c) 1997 Manoj Srivastava <srivasta@debian.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.TH CHKCON 8 "Mar 12 2005" "SELinux" "SELinux Command Line documentation"
.SH NAME
chkcon \- determine if a security context is valid for a given binary policy
.SH SYNOPSIS
chkcon policy_file context
.SH DESCRIPTION
This utility validates (the string representation of) a security context
specified by the argument
.I context
against configuration data read in from a policy database binary
representation file specified by the argument
.I policy_file.
.SH FILES
policy file
.SH AUTHOR
This manual page (and just the manual page) was written by Manoj
Srivastava <srivasta@debian.org>.
+16
View File
@@ -0,0 +1,16 @@
.TH "genpolbools" "8" "11 August 2004" "sds@tycho.nsa.gov" "SELinux Command Line documentation"
.SH "NAME"
genpolbools \- Rewrite a binary policy with different boolean settings
.SH "SYNOPSIS"
.B genpolbools oldpolicy booleans newpolicy
.SH "DESCRIPTION"
.B genpolbools
rewrites an existing binary policy with different boolean settings,
generating a new binary policy. The booleans file specifies the
different boolean settings using name=value lines, where value
can be 0 or false to disable the boolean or 1 or true to enable it.
+42
View File
@@ -0,0 +1,42 @@
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Copyright (c) 1997 Manoj Srivastava <srivasta@debian.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.TH GENPOLUSERS 8 "Mar 12 2005" "SELinux" "SELinux Command Line documentation"
.SH NAME
genpolusers \- Generate new binary policy with updated user configuration
.SH SYNOPSIS
genpolusers in-policy usersdir out-policy
.SH DESCRIPTION
Given an existing binary policy file
.I in\-policy,
generate a new binary policy
.I out\-policy
with an updated user configuration based on any
.B system.users
and
.B local.users
files in the specified
.I usersdir.
.SH AUTHOR
This manual page (and just the manual page) was written by Manoj
Srivastava <srivasta@debian.org>.
Binary file not shown.
+39
View File
@@ -0,0 +1,39 @@
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Copyright (c) 1997 Manoj Srivastava <srivasta@debian.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.TH CHKCON 8 "12 марта 2005" "SELinux" "Документация по командной строке SELinux"
.SH ИМЯ
chkcon \- определить, является ли контекст безопасности действительным для конкретной двоичной политики
.SH ОБЗОР
chkcon policy_file context
.SH ОПИСАНИЕ
Эта утилита проверяет контекст безопасности (его строковое представление), заданный аргументом
.I context,
относительно данных конфигурации, прочтённых из файла двоичного представления базы данных политик, заданного аргументом
.I policy_file.
.SH ФАЙЛЫ
policy file
.SH АВТОРЫ
Эта страница руководства (и только она) была написана Manoj
Srivastava <srivasta@debian.org>.
Перевод на русский язык выполнила Герасименко Олеся <gammaray@basealt.ru>.