selinux/checkpolicy
Masatake YAMATO 666a7dfdc8 dispol: add --actions option for non-interactive use
Example session:

    $ ./dispol --help
    Usage:
     ./dismod [OPTIONS] binary_pol_file

    Options:
     -h, --help              print this help message
     -a, --actions ACTIONS   run non-interactively

    Actions:
      1    display unconditional AVTAB
      2    display conditional AVTAB (entirely)
      3    display conditional AVTAB (only ENABLED rules)
      4    display conditional AVTAB (only DISABLED rules)
      5    display conditional bools
      6    display conditional expressions
      8    display role transitions
      c    display policy capabilities
      b    display booleans
      C    display classes
      r    display roles
      t    display types
      a    display type attributes
      p    display the list of permissive types
      u    display unknown handling setting
      F    display filename_trans rules

    $ ./dispol --actions 1 /etc/selinux/targeted/policy/policy.33  | head
    Reading policy...
    libsepol.policydb_index_others: security:  8 users, 15 roles, 5408 types, 358 bools
    libsepol.policydb_index_others: security: 1 sens, 1024 cats
    libsepol.policydb_index_others: security:  134 classes, 86750 rules, 8818 cond rules
    binary policy file loaded

    allow abrt_dump_oops_t sssd_var_lib_t : sock_file { write getattr append open };
    type_transition authconfig_t entropyd_initrc_exec_t : process initrc_t;
    type_transition glusterd_t syslogd_initrc_exec_t : process initrc_t;xxxx

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
2023-06-08 15:13:21 -04:00
..
ru
test dispol: add --actions option for non-interactive use 2023-06-08 15:13:21 -04:00
.gitignore
checkmodule.8 checkpolicy: update documentation 2021-10-04 09:25:12 -04:00
checkmodule.c
checkpolicy.8 checkpolicy: Add examples to man pages 2023-06-08 15:10:10 -04:00
checkpolicy.c checkpolicy: rename bool identifiers 2023-05-03 09:15:22 -04:00
checkpolicy.h
LICENSE docs: provide a top level LICENSE file 2022-10-05 08:20:38 -04:00
Makefile
module_compiler.c checkpolicy: error out if required permission would exceed limit 2022-06-21 15:20:58 +02:00
module_compiler.h checkpolicy: mark read-only parameters in module compiler const 2021-09-15 10:13:58 -04:00
parse_util.c libsepol: Populate and use policy name 2022-02-24 10:44:46 -05:00
parse_util.h
policy_define.c checkpolicy: only set declared permission bits for wildcards 2023-06-05 15:17:00 -04:00
policy_define.h
policy_parse.y checkpolicy: drop unused token CLONE 2023-06-05 15:16:57 -04:00
policy_scan.l checkpolicy: drop unused token CLONE 2023-06-05 15:16:57 -04:00
queue.c
queue.h
VERSION Update VERSIONs to 3.5 for release. 2023-02-23 05:16:11 -08:00