pub struct AgentGuard { /* private fields */ }Expand description
AgentGuard security manager.
This is the main entry point for the agent-guard crate. It provides a unified interface to Linux security mechanisms.
§Platform Support
This struct is only available on Linux. On other platforms, all methods will return errors indicating the platform is unsupported.
Implementations§
Source§impl AgentGuard
impl AgentGuard
Sourcepub fn new() -> Self
👎Deprecated: agent-guard is a scaffold — no OS enforcement is implemented
pub fn new() -> Self
agent-guard is a scaffold — no OS enforcement is implemented
Create a new AgentGuard instance.
§Deprecation notice
agent-guard is a scaffold — no OS enforcement is implemented. This constructor is deprecated to prevent false confidence in security guarantees. See the crate-level scaffold notice.
Sourcepub fn initialize(&mut self) -> Result<()>
👎Deprecated: agent-guard is a scaffold — no OS enforcement is implemented
pub fn initialize(&mut self) -> Result<()>
agent-guard is a scaffold — no OS enforcement is implemented
Initialize the security control plane.
§Deprecation notice
This method is a no-op scaffold: it only sets an internal boolean. No OS-level enforcement (BPF LSM, cgroup, Landlock, seccomp, eBPF) is applied. Deprecated to prevent false security confidence.
On Linux, this sets up the security mechanisms. On other platforms, this returns an error.
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Check if the guard is initialized.