exec: Add support for ignoring errors on SELinuxContext by prefixing it with -, like for others settings.
Also remove call to security_check_context, as this doesn't serve anything, since setexeccon will fail anyway.
This commit is contained in:
committed by
Lennart Poettering
parent
5c56a259e0
commit
0d3f7bb3a5
@@ -956,7 +956,9 @@
|
||||
<listitem><para>Set the SELinux context of the
|
||||
executed process. If set, this will override the
|
||||
automated domain transition. However, the policy
|
||||
still need to autorize the transition. See
|
||||
still need to autorize the transition. This directive
|
||||
is ignored if SELinux is disabled. If prefixed by <literal>-</literal>,
|
||||
all errors will be ignored. See
|
||||
<citerefentry><refentrytitle>setexeccon</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
||||
for details.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
Reference in New Issue
Block a user