Skip to main content

Module permission_log

Module permission_log 

Source
Expand description

Permission audit logging system Tracks all permission decisions (allow/deny/prompt) with context Writes to the user state directory’s audit/permissions-{date}.log in JSON format. Old audit logs are pruned after DEFAULT_AUDIT_LOG_MAX_AGE_DAYS days.

Structs§

PermissionAuditLog
Audit log for permission decisions
PermissionEvent
Record of a single permission decision

Enums§

FileAccessPermission
Type of file access permission
PermissionDecision
The decision reached
PermissionEventType
Type of permission event

Constants§

DEFAULT_AUDIT_LOG_MAX_AGE_DAYS
Default maximum age in days for audit log files before they are pruned.