History log of /frameworks/base/core/jni/android_os_SELinux.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d746057f2414cba2bdc69257cc5be8cb681bb592 07-Jul-2014 Jeff Sharkey <jsharkey@android.com> Change new file installs to be cluster-based!

Now that all the other pieces are in place, we're ready to start
installing new file-based packages as a cluster (the new unified
directory-based layout). This greatly simplifies the renaming
process.

Also add helper methods to ApplicationInfo to give a much clearer
mapping between it and internal field names, since we can't change
the public API.

Add recursive restorecon().

Bug: 14975160
Change-Id: I72a63c5ddbc594c2fec4a91dd59f73ef253fbfd7
/frameworks/base/core/jni/android_os_SELinux.cpp
a9bb594da6aff97ba927ba67a34486d0b9c1b4a0 13-Feb-2014 Nick Kralevich <nnk@google.com> Merge "Convert all selinux_android_restorecon and _setfilecon calls to new API."
d06969518b12afb27a487ae66f8d73a4d3116587 07-Feb-2014 Colin Cross <ccross@android.com> frameworks/base: fix errors inside ALOGV

Fix errors exposed by adding compile-time checking to disabled ALOGVs.

Change-Id: I9beeb5d5df498c63d6bed49734ee80a8e0afcefc
/frameworks/base/core/jni/android_os_SELinux.cpp
d8fa586099b73cc8b49e51c675cc8807ef65a4a2 07-Feb-2014 Stephen Smalley <sds@tycho.nsa.gov> Convert all selinux_android_restorecon and _setfilecon calls to new API.

libselinux selinux_android_restorecon API is changing to the more
general interface with flags and dropping the older variants.

Also get rid of the old, no longer used selinux_android_setfilecon API
and rename selinux_android_setfilecon2 to it as it is the only API in use.

Change-Id: I1e71ec398ccdc24cac4ec76f1b858d0f680f4925
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
/frameworks/base/core/jni/android_os_SELinux.cpp
e0dda3c8e2c8341e60383619e4ab780bb3b02403 29-Jan-2014 Stephen Smalley <sds@tycho.nsa.gov> Map SELinux log levels to Android log levels.

Change-Id: I202c543ca6e4110c4011d1904eada4b75b59ff10
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
/frameworks/base/core/jni/android_os_SELinux.cpp
81ad284517dc80818cd2f3912fbcf9a7b55df119 22-May-2013 Richard Haines <richard_c_haines@btinternet.com> Fix SELinux get.. methods aborting on invalid address

SELinux get.. JNI need the 'security_context_t tmp' entries set
to NULL, otherwise on error freecon() tries to release uninitialised
memory causing apps to abort with invalid address.
Also fixed getPeerCon ALOGV call as this caused Zyote to abort when
verbose logging set.

Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
/frameworks/base/core/jni/android_os_SELinux.cpp
cd19e3f2db333afcf84e2d66d9811e6ccae733a2 19-Oct-2012 Kenny Root <kroot@google.com> Update SELinux JNI to use helpers

Change-Id: Ifc707eafd1ecbba64c93fa2250c4334d0ce40005
/frameworks/base/core/jni/android_os_SELinux.cpp
c9a1aabc49d31370e3bf41f85b805499640230b1 17-Oct-2012 Kenny Root <kroot@google.com> Remove HAVE_SELINUX guards

Change-Id: I6c2161471f657aa1645695ffd56ff434b0c2b426
/frameworks/base/core/jni/android_os_SELinux.cpp
554cb0c290406f5bba34908489db5382a69d0a9a 05-Jul-2012 rpcraig <rpcraig@tycho.ncsc.mil> Introduce a restorecon JNI binding.

Label the vmdl.*\.tmp files and the final .apk file differently.
Modify the WallpaperManagerService to restorecon the wallpaper file.

Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>

Change-Id: Idfc056e9ec0508d7e11100626a7114f341f1af70
/frameworks/base/core/jni/android_os_SELinux.cpp
365861e3aae9cccdb19b8d4ee375c57e0a431f1e 10-Jul-2012 Joshua Brindle <jbrindle@tresys.com> s/LOG/ALOG/ in HAVE_SELINUX blocks

The latest push changed LOG(E|V) to ALOG(E|V) but it was not updated in HAVE_SELINUX blocks.

Change-Id: I626588589dd00775ba29f2a256ac29e481598dc3
Signed-off-by: Joshua Brindle <jbrindle@tresys.com>
/frameworks/base/core/jni/android_os_SELinux.cpp
c07fca3831baf4d812dd724f506b4ed23dcc39e0 13-Jan-2012 Stephen Smalley <sds@tycho.nsa.gov> Add JNI bindings for some of the libselinux interfaces.

Change-Id: Ifcc68cb06f9f56a04f3bc64dd9906a9436fabc88
/frameworks/base/core/jni/android_os_SELinux.cpp