On 07/06/13 18:39, Stephen Smalley wrote:
On 06/07/2013 08:49 AM, Wasa wrote:
Thank you. I used seandroid 4.2 and AOSP 4.2 and that fixed the issue.
But I only have mac_permission.xml present in external/sepolicy. I would
like to have intent MAC and revoke MAC.
For this, I have some questions.
First, after cloning https://bitbucket.org/seandroid/manifests, there is
no intent_mac branch available. Is it now cp_mac instead?
Second, when I checkout master, revoke-perms and seandroid-4.2 branches;
the local_manifest.xml's are identical... so do master and seandroid-4.2
have the revoke-perms "functionality" now? If so, is it enabled by
default? I don't have a revoke_permissions.xml created when "repo sync"
android middleware. Prior to "repo sync", i copied local_manifest file
under .repo/local_manifests/ directory. Or do i need to build android to
generate it?
Third, I get an error while compiling "make: *** No rule to make target
`out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar',
needed by `out/target/common/docs/doc-comment-check-timestamp'. Stop. "
Given your previous email, something is out of sync. I believe I should
switch to AOSP master... correct?
Something is very wrong with your clone of our manifests project.
$ git clone https://bitbucket.org/seandroid/manifests
Cloning into 'manifests'...
remote: Counting objects: 512, done.
remote: Compressing objects: 100% (185/185), done.
remote: Total 512 (delta 192), reused 498 (delta 184)
Receiving objects: 100% (512/512), 58.14 KiB, done.
Resolving deltas: 100% (192/192), done.
$ cd manifests
$ git checkout intent_mac
Branch intent_mac set up to track remote branch intent_mac from origin.
Switched to a new branch 'intent_mac'
$ git diff origin/master origin/seandroid-4.2 | diffstat -p1
local_manifest.xml | 37 ++++++++++++++++++++++++-------------
1 file changed, 24 insertions(+), 13 deletions(-)
$ git diff origin/master origin/revoke-perms | diffstat -p1
local_manifest.xml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
So the intent_mac branch does exist, and the local_manifest.xml files
are not identical.
cp_mac includes both intent MAC and content provider MAC on top of it.
revoke-perms is not included in any other branch, and it was rather
stale until I merged latest AOSP master on Wednesday.
intent_mac, cp_mac, and revoke-perms are all forked from master, not
android-4.2.2_r1, so you would need to cherry-pick the changes over to
seandroid-4.2 if you want to build 4.2.2 with those changes.
We aren't really actively developing any of those three branches
presently (just periodically merging latest AOSP master to them).
thanks a lot. indeed my local copy was corrupted.
compilation worked fine until this morning though. I suddenly get some
errors:
------------------------------------------------------------------
frameworks/base/core/java/android/net/http/HttpResponseCache.java:20:
cannot find symbol
symbol : class OkResponseCache
location: package com.android.okhttp
import com.android.okhttp.OkResponseCache;
^
frameworks/base/core/java/android/net/http/HttpResponseCache.java:155:
cannot find symbol
symbol: class OkResponseCache
implements Closeable, OkResponseCache {
[...]
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
---------------------------------------------------------------------------------
I've put alias javac='javac -Xlint:deprecation -Xlint:unchecked'; but
the errors persist.
There's been a commit on android AOSP yesterday; so it may be related...
Thanks for your time,
Wasa
--
This message was distributed to subscribers of the seandroid-list mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe seandroid-list" without quotes as the message.