zpmod  b19981f
High-performance Zsh module for script optimization and filesystem helpers
zpmod_compaudit.h File Reference

Interface for cached compaudit security verdicts. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ZPMOD_COMPAUDIT_H
 

Functions

int zp_compaudit_cache_core (char *nam, int rebuild, int show, int json)
 

Detailed Description

Interface for cached compaudit security verdicts.

Phase 2 (scaffolding): Provides entrypoint for zpmod compaudit-cache. Future implementation goals:

  • Cache directory ownership+permission verdicts equivalent to native compaudit
  • Invalidate on metadata changes (mtime/ctime, uid/gid, mode)
  • Store cache in XDG cache dir (~/.cache/zpmod) with permission checks
  • Provide --rebuild to force regeneration, --show to print current cache

Definition in file zpmod_compaudit.h.

Macro Definition Documentation

◆ ZPMOD_COMPAUDIT_H

#define ZPMOD_COMPAUDIT_H

Definition at line 4 of file zpmod_compaudit.h.

Function Documentation

◆ zp_compaudit_cache_core()

int zp_compaudit_cache_core ( char *  nam,
int  rebuild,
int  show,
int  json 
)

Definition at line 584 of file compaudit_cache.c.

References zp_cc_vec::items, zp_cc_entry::parent_insecure, zp_cc_entry::path, zp_cc_vec::size, zp_cc_entry::verdict, zalloc(), zp_cc_cache_file_path(), zp_cc_collect_dirs(), zp_cc_incremental_update(), zp_cc_is_insecure(), zp_cc_load_cache(), zp_cc_rebuild(), zp_cc_validate_cache(), zp_cc_vec_free(), zp_cc_vec_init(), zp_icon(), zsfree(), and zp_cc_entry::zwc_insecure.

Referenced by bin_zpmod().

Here is the call graph for this function:
Here is the caller graph for this function: