namespace ThreadPilot.Services { /// /// Service for security validation and auditing of elevated operations /// public interface ISecurityService { /// /// Validates that the specified operation is allowed to be performed with elevated privileges /// /// The operation to validate /// True if the operation is allowed, false otherwise bool ValidateElevatedOperation(string operation); /// /// Audits an elevated action for security logging /// /// The action that was performed /// The target of the action (process name, power plan, etc.) /// Whether the action was successful Task AuditElevatedAction(string action, string target, bool success); /// /// Validates that a process operation is safe to perform /// /// The name of the process /// The operation to perform /// True if the operation is safe, false otherwise bool ValidateProcessOperation(string processName, string operation); /// /// Validates that a power plan operation is safe to perform /// /// The power plan GUID /// The operation to perform /// True if the operation is safe, false otherwise bool ValidatePowerPlanOperation(string powerPlanId, string operation); /// /// Gets the list of allowed elevated operations /// /// Array of allowed operation names string[] GetAllowedElevatedOperations(); } }