Skip to main content

Mg004FilesystemScope

Struct Mg004FilesystemScope 

Source
pub struct Mg004FilesystemScope;
Expand description

MG004: Filesystem scope violations. Detects arbitrary path access, globbing, or write access without confinement.

Trait Implementations§

Source§

impl Rule for Mg004FilesystemScope

Source§

fn id(&self) -> &'static str

Unique identifier (e.g., “MG001”).
Source§

fn description(&self) -> &'static str

Human-readable description.
Source§

fn category(&self) -> FindingCategory

The category of analysis this rule performs.
Source§

fn explain(&self) -> &'static str

Detailed explanation of the rule, its rationale, and what it detects.
Source§

fn cwe_ids(&self) -> Vec<&'static str>

CWE identifiers this rule maps to.
Source§

fn owasp_ids(&self) -> Vec<&'static str>

OWASP Top 10 (2021) identifiers this rule maps to.
Source§

fn owasp_mcp_ids(&self) -> Vec<&'static str>

OWASP MCP Top 10 (2025) identifiers this rule maps to.
Source§

fn rationale(&self) -> &'static str

Short one-line rationale for why this rule exists.
Source§

fn references(&self) -> Vec<&'static str>

References — URLs to relevant documentation or standards.
Source§

fn check(&self, ctx: &ScanContext) -> Vec<Finding>

Run the rule against the scan context and return any findings.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.