get_cmdline_composefs

Function get_cmdline_composefs 

Source
pub fn get_cmdline_composefs<ObjectID: FsVerityHashValue>(
    cmdline: &str,
) -> Result<(ObjectID, bool)>
Expand description

Extracts and parses the composefs= parameter from a kernel command line.

§Arguments

  • cmdline - The kernel command line string

§Returns

A tuple of (hash, insecure_flag) where the hash is the composefs object ID and insecure_flag indicates whether the ‘?’ prefix was present (making verification optional)