Skip to content

Commit

Permalink
blsforme/manager: Use more secure vfat mount options
Browse files Browse the repository at this point in the history
We've now disabled automounting of ESP & XBOOTLDR in Serpent OS, so
to complement that change we use the same (more secure) vfat mount options
that systemd gpt autogenerate uses.

For moar securities.

Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeycode committed Jul 15, 2024
1 parent 4aec928 commit aaa9a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blsforme/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl<'a> Manager<'a> {
/// Mount an fat filesystem
#[inline]
fn mount_vfat_partition(&self, source: &Path, target: &Path) -> Result<ScopedMount, Error> {
let options: Option<&str> = None;
let options = Some("umask=0077,noexec,nosuid,nodev");
if !target.exists() {
create_dir_all(target)?;
}
Expand Down

0 comments on commit aaa9a0a

Please sign in to comment.