socket: introduce SELinuxLabelViaNet option

This makes possible to spawn service instances triggered by socket with
MLS/MCS SELinux labels which are created based on information provided by
connected peer.

Implementation of label_get_child_label derived from xinetd.

Reviewed-by: Paul Moore <pmoore@redhat.com>
This commit is contained in:
Michal Sekletar
2014-08-19 18:57:12 +02:00
parent 6c3e68e7c1
commit cf8bd44339
8 changed files with 127 additions and 5 deletions
+11
View File
@@ -675,6 +675,17 @@
for details.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>SELinuxLabelViaNet=</varname></term>
<listitem><para>Takes a boolean
value. Controls whether systemd attempts to figure out
SELinux label used for instantiated service from
information handed by peer over the
network. Configuration option has effect only
on sockets with <literal>Accept=</literal>
mode set to <literal>yes</literal>.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>PipeSize=</varname></term>
<listitem><para>Takes a size in