History log of /system/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ee8b67dfd9be89455a4e30bfef05ec7bdf3083e2 28-Apr-2017 Andreas Gampe <agampe@google.com> Sepolicy-Analyze: Plug leak

Destroy the policy before exiting (for successful = expected runs).

Bug: 37757759
Test: ASAN_OPTIONS= SANITIZE_HOST=address m
Change-Id: I67e35fbede696ec020a53b69a6cef9f374fae167
/system/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c
0233cd800efc7af1828bb69d236c8371ca238c66 13-Mar-2015 Stephen Smalley <sds@tycho.nsa.gov> sepolicy-analyze: Add attribute command.

Add an attribute command to sepolicy-analyze for displaying the list
of types associated with an attribute in a policy. This is for use
by CTS to check what domains and types are associated with certain
attributes such as mlstrustedsubject and mlstrustedobject.

Change-Id: Ie19361c02feb1ad14ce36862c6aace9e66c422bb
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
/system/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c
a7b2c5f4ab5fc393dd75af934e5daa13e2ac70a6 11-Mar-2015 Stephen Smalley <sds@tycho.nsa.gov> sepolicy-analyze: Implement booleans test.

Implement the booleans test in sepolicy-analyze so
that we can move the no-booleans check from the
SELinuxTest to the SELinuxHostTest along with the
other policy checks.

Change-Id: I95d7ad34da10c354470f43734d34a6ec631a7b4e
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
/system/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c
47c14611565285a59124d9aefd1edb5ebf5bab01 01-Dec-2014 William Roberts <bill.c.roberts@gmail.com> Fix sepolicy-analyze build with different toolchains

host C: sepolicy-analyze <= external/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c
external/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c: In function 'usage':
external/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c:30:5: error: 'for' loop initial declarations are only allowed in C99 mode
external/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c:30:5: note: use option -std=c99 or -std=gnu99 to compile your code
make: *** [out/host/linux-x86/obj/EXECUTABLES/sepolicy-analyze_intermediates/sepolicy-analyze.o] Error 1

Change-Id: I9222e447b032d051c251c9718e2b8d5ffb9e9c35
/system/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c
ef4fd30672ebfeac1a0ad04f65deb7b38050b818 20-Oct-2014 dcashman <dcashman@google.com> Accept command-line input for neverallow-check.

Also, divide each sepolicy-analyze function into its own component for simplified
command-line parsing and potentially eventual modularization.

Bug: 18005561
Change-Id: I45fa07d776cf1bec7d60dba0c03ee05142b86c19
/system/sepolicy/tools/sepolicy-analyze/sepolicy-analyze.c