On 04/10/2014 08:41 AM, Stephen Smalley wrote:
> On 04/09/2014 06:07 PM, Tai Nguyen (tainguye) wrote:
>> When I used the binary file, I got this error
>> The selected file (monolithic sepolicy {}) does not appear to be a valid
>> SELinux Policy.
>> Error: Could not open policy
>
> Yes, I think you just need a newer version of setools.
> Use the upstream release 3.3.8 or use a more modern Linux distribution.
Also, you need setools to be built with a version of libsepol that
understands policy version 26. I think that would be libsepol >= 2.0.46
> We also just upstreamed a change to enable building of dispol
> (checkpolicy/test/dispol.c), which can be used to dump the (expanded)
> allow rules from the binary policy file.
>
> https://android-review.googlesource.com/#/c/90420/
>