Skip to contentSkip to conversation

libselinux: Add man/man5 man pages

PATCH In review Richard Haines 1 participant 1 message Dec 2, 2011 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 libselinux: Add man/man5 man pages

Add booleans(5), customizable_types(5), default_contexts(5) and default_type(5) man pages.

---
 libselinux/man/man5/booleans.5           |   79 ++++++++++++++++++++++++++++++
 libselinux/man/man5/customizable_types.5 |   56 +++++++++++++++++++++
 libselinux/man/man5/default_contexts.5   |   70 ++++++++++++++++++++++++++
 libselinux/man/man5/default_type.5       |   38 ++++++++++++++
 4 files changed, 243 insertions(+), 0 deletions(-)
 create mode 100644 libselinux/man/man5/booleans.5
 create mode 100644 libselinux/man/man5/customizable_types.5
 create mode 100644 libselinux/man/man5/default_contexts.5
 create mode 100644 libselinux/man/man5/default_type.5
libselinux/man/man5/booleans.5 new file +79 -0
new file mode 100644
index 0000000..8efc889
@@ -0,0 +1,79 @@
+.TH "booleans" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration"
+
+.SH "NAME"
+booleans \- The SELinux booleans configuration files.
+
+.SH "DESCRIPTION"
+The \fIbooleans\fR file, if present contains booleans to support a specific distribution.
+.sp
+The \fIbooleans.local\fR file, if present contains locally generated booleans.
+.sp
+Both files contain a list of boolean names and their associated values.
+.sp
+Generally the \fIbooleans\fR and/or \fIbooleans.local\fR files are not present (they have been deprecated). However if there is an SELinux-aware application that uses the libselinux functions listed below, then these files may be present:
+.sp
+.RS
+.BR security_set_boolean_list "(3) "
+.RS
+Writes a \fIbooleans.local\fR file if flag \fIpermanent\fR = \fI1\fR.
+.sp
+.RE
+.RE
+.RS
+.BR security_load_booleans "(3) "
+.RS
+Looks for a \fIbooleans\fR and/or \fIbooleans.local\fR file at \fBselinux_booleans_path\fR(3) unless a specific path is specified as a parameter.
+.RE
+.RE
+.sp
+\fBbooleans\fR(8) has details on booleans and \fBsetsebool\fR(8) describes how booleans can now be set persistent across reboots.
+.sp
+\fBselinux_booleans_path\fR(3) will return the active policy path to these files. The default boolean files are:
+.RS
+.I /etc/selinux/{SELINUXTYPE}/booleans
+.br
+.I /etc/selinux/{SELINUXTYPE}/booleans.local
+.RE
+.sp
+Where \fI{SELINUXTYPE}\fR is the entry from the selinux configuration file \fIconfig\fR (see \fBselinux_config\fR(5)).
+
+.SH "FILE FORMAT"
+Both boolean files have the same format and contain one or more boolean names and their value.
+.sp
+The format is:
+.RS
+.I boolean_name
+.I value
+.sp
+.RE
+Where:
+.RS
+.I boolean_name
+.RS
+The name of the boolean.
+.RE
+.I value
+.RS
+The default setting for the boolean. This can be one of the following:
+.RS
+.IR true " | " false " | " 1 " | " 0
+.RE
+.RE
+.RE
+.sp
+Note that if
+.B SETLOCALDEFS
+is set in the SELinux
+.I config
+file (see
+.BR selinux_config "(5)), then " selinux_mkload_policy "(3) will check for a "
+.I booleans.local
+file in the
+.B selinux_booleans_path
+and also a
+.I local.users
+file (see
+.BR local.users "(5)) in the " selinux_users_path "(3). "
+
+.SH "SEE ALSO"
+.BR selinux "(8), " booleans "(8), " setsebool "(8), " semanage "(8), " selinux_booleans_path "(3), " security_set_boolean_list "(3), " security_load_booleans "(3), " selinux_mkload_policy "(3), " selinux_users_path "(3), " selinux_config "(5), " local.users "(5) "
libselinux/man/man5/customizable_types.5 new file +56 -0

56 lines not on this page · raw message

libselinux/man/man5/default_contexts.5 new file +70 -0

70 lines not on this page · raw message

libselinux/man/man5/default_type.5 new file +38 -0
new file mode 100644
index 0000000..45f4806
@@ -0,0 +1,38 @@
+.TH "default_type" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration"
+
+.SH "NAME"
+default_type \- The SELinux default type configuration file.
+
+.SH "DESCRIPTION"
+The \fIdefault_type\fR file contains entries that allow SELinux-aware applications such as \fBnewrole\fR(1) to select a default type for a role if one is not supplied.
+.sp
+\fBselinux_default_type_path\fR(3) will return the active policy path to this file. The default, default type file is:
+.RS
+.I /etc/selinux/{SELINUXTYPE}/contexts/default_type
+.RE
+.sp
+Where \fI{SELINUXTYPE}\fR is the entry from the selinux configuration file \fIconfig\fR (see \fBselinux_config\fR(5)).
+.sp
+\fBget_default_type\fR(3) reads this file to determine a type for the active policy.
+
+.SH "FILE FORMAT"
+Each line within the \fIdefault_type\fR file is formatted with \fIrole\fB:\fItype\fR entries where:
+.RS
+.I role
+.RS
+The SELinux role.
+.RE
+.I type
+.RS
+The domain type that is returned for this role.
+.RE
+
+.SH "EXAMPLE"
+# ./contexts/default_type
+.br
+auditadm_r:auditadm_t
+.br
+user_r:user_t
+
+.SH "SEE ALSO"
+.BR selinux "(8), " get_default_type "(3), " newrole "(1), " selinux_default_type_path "(3), " selinux_config "(5) "
Signature · 10 lines
1.7.7.1





--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.