From: Stephen Smalley <sds@tycho.nsa.gov>
To: James Carter <jwcart2@tycho.nsa.gov>,
"Roberts, William C" <william.c.roberts@intel.com>,
"selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>
Subject: Re: Find attributes for a type with sepol
Date: Thu, 24 Sep 2015 08:59:06 -0400 [thread overview]
Message-ID: <5603F39A.6060607@tycho.nsa.gov> (raw)
In-Reply-To: <5603EFE8.6010505@tycho.nsa.gov>
On 09/24/2015 08:43 AM, James Carter wrote:
> On 09/23/2015 06:39 PM, Roberts, William C wrote:
>> How would one find all the attributes of a type with libsepol, can
>> someone point me to any relevant structures or functions?
>>
>
> The policydb_t structure has type_attr_map field which maps types to an
> ebitmap of attributes.
It also has the reverse map (attr_type_map) if you want that.
In Android, external/sepolicy/tools/sepolicy-analyze has examples of
using both maps.
next prev parent reply other threads:[~2015-09-24 12:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-23 22:39 Find attributes for a type with sepol Roberts, William C
2015-09-24 12:43 ` James Carter
2015-09-24 12:59 ` Stephen Smalley [this message]
2015-09-24 13:58 ` Joshua Brindle
2015-09-29 18:15 ` William Roberts
2015-09-29 19:11 ` Joshua Brindle
2015-09-29 19:33 ` William Roberts
2015-09-29 19:35 ` Joshua Brindle
2015-09-29 19:36 ` William Roberts
2015-09-29 20:19 ` William Roberts
2015-09-29 20:25 ` Stephen Smalley
2015-09-29 20:51 ` William Roberts
2015-09-29 21:04 ` Stephen Smalley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5603F39A.6060607@tycho.nsa.gov \
--to=sds@tycho.nsa.gov \
--cc=jwcart2@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=william.c.roberts@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.