From 6918a4413decccd2f535e66d12b2e3dee10a74a8 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 19 Apr 2025 19:39:10 +0200 Subject: cli: mount: add -context option Set the SELinux context. See mount(8) for details. --- Documentation/MANPAGE.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Documentation') diff --git a/Documentation/MANPAGE.md b/Documentation/MANPAGE.md index c7a1c03..64bbaa8 100644 --- a/Documentation/MANPAGE.md +++ b/Documentation/MANPAGE.md @@ -208,6 +208,16 @@ Show all invalid filenames: -badname '*' +#### -context string +Set the SELinux context. See mount(8) for details. + +This option was added for compatibility with xfstests which sets +this option via `-o context="system_u:object_r:root_t:s0"`. + +Only works when mounting as root, otherwise you get this error from fusermount3: + + fusermount3: unknown option 'context="system_u:object_r:root_t:s0"' + #### -ctlsock string Create a control socket at the specified location. The socket can be used to decrypt and encrypt paths inside the filesystem. When using -- cgit v1.2.3