authfs: Support extra mount options
Test: Observes SELinux denials
Bug: 194717985
Change-Id: Ic7c5669c44ded6bba23293be4be092f960c75685
diff --git a/authfs/src/main.rs b/authfs/src/main.rs
index d583f92..32ea3de 100644
--- a/authfs/src/main.rs
+++ b/authfs/src/main.rs
@@ -56,6 +56,10 @@
#[structopt(long)]
cid: Option<u32>,
+ /// Extra options to FUSE
+ #[structopt(short = "o")]
+ extra_options: Option<String>,
+
/// A read-only remote file with integrity check. Can be multiple.
///
/// For example, `--remote-verified-file 5:10:1234:/path/to/cert` tells the filesystem to
@@ -339,6 +343,6 @@
);
let file_pool = prepare_file_pool(&args)?;
- fusefs::loop_forever(file_pool, &args.mount_point)?;
+ fusefs::loop_forever(file_pool, &args.mount_point, &args.extra_options)?;
bail!("Unexpected exit after the handler loop")
}