Debian Codegraph @

man/system-or-user-ns-mountfsd-mount-options.xml

raw
1 <?xml version="1.0"?>
2 <!DOCTYPE refsect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
3
4 <!--
5 SPDX-License-Identifier: LGPL-2.1-or-later
6 -->
7
8 <refsect1>
9 <title/>
10
11 <para id="plural">When enabled for services running in per-user instances of the service manager
12 using mount options is disabled by default, due to the security implications. It is possible to use a
13 <ulink url="https://www.freedesktop.org/software/polkit/docs/latest/">polkit</ulink> policy to allow
14 specific mount options, for example:
15
16 <example id="example">
17 <title>A polkit policy that allows mounting the root partition with nosuid</title>
18
19 <para><filename index="false">/etc/polkit-1/rules.d/mountoptions.rules</filename>:
20 </para>
21 <programlisting>
22 polkit.addRule(function(action, subject) {
23 if (action.id == "io.systemd.mount-file-system.mount-untrusted-image-privately" &amp;&amp;
24 action.lookup("mount_options") == "root:nosuid") {
25 return polkit.Result.YES;
26 }
27 });
28 </programlisting>
29 </example>
30 </para>
31
32 </refsect1>