History log of /system/sepolicy/tools/sepolicy-analyze/attribute.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9d46f9b4f09da557bc737b8a541c5af0fe2fff6e 15-Apr-2017 Dan Cashman <dcashman@google.com> sepolicy-analyze: Add ability to list all attributes.

This could be useful in diffs between policy versions.

Bug: 37357742
Test: sepolicy-analyze lists all attributes in precompiled_policy.
Change-Id: I6532a93d4102cf9cb12b73ee8ed86ece368f9131
/system/sepolicy/tools/sepolicy-analyze/attribute.c
d444ebedac021e0468e8a1a3f3a699fbcc34b1f3 30-Mar-2017 Dan Cashman <dcashman@google.com> Add reverse-attribute mapping to sepolicy-analyze.

sepolicy-analyze allows users to see all types that have a given
attribute, but not the reverse case: all attributes of a given type.
Add a '--reverse' option which enables this, but keeps the previous
interface.

Usage: sepolicy-analyze sepolicy attribute -r init

Bug: 36508258
Test: Build and run against current policy.
Change-Id: Ice6893cf7aa2ec4706a7411645a8e0a8a3ad01eb
/system/sepolicy/tools/sepolicy-analyze/attribute.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/attribute.c