Enable SELinux

Change-Id: I81449e0ac24a51befd3691661d3305ea33da7577
Prepare for separate kernel building
Prepare for separate kernel building

Revert "Enable SELinux"
Update buildscript and Makefile
Merge branch 'infamous-jb3' of github.com:InfamousAOKP/android_kernel_samsung_p4 into infamous-jb3

Conflicts:
	build.sh
Do not ratelimit audit messages. We want to see them all.

Change-Id: I19c29788cc33b0f59e0bdfe04fe67c247239c559
Add permission checking for binder IPC.

Do not apply permission checks to private files.

Fix security_binder_transfer_binder hook.

Drop the owning task argument to security_binder_transfer_binder
since ref->node->proc can be NULL (dead owner?).
Revise the SELinux checking to apply a single transfer check between
the source and destination tasks.  Owning task is no longer relevant.
Drop the receive permission definition as it is no longer used.

This makes the transfer permission similar to the call permission; it is only
useful if you want to allow a binder IPC between two tasks (call permission)
but deny passing of binder references between them (transfer permission).

Change-Id: I51e7a9a6662e826073b35e4f70a57f9ec73e472e
Signed-off-by: William Roberts <w.roberts@sta.samsung.com>
Enable SELinux

Change-Id: I81449e0ac24a51befd3691661d3305ea33da7577
Revert "defconfig: jb: disable some tracing options"

This reverts commit 0f5b3eb5d0f2ca7809d44420dc20d51cb07cd0cd.

Conflicts:
	arch/arm/configs/pershoot_samsung_p3-jb_defconfig
Revert "defconfig: jb: enable tracer"

This reverts commit 93e0adfc6af41ef561d5e5feb4595dc69b8b31b5.

Conflicts:
	arch/arm/configs/pershoot_samsung_p3-jb_defconfig
Update defconfig to AAccount
Update version
Go back to inline kernel building

But keep build script for the time being
Bring all defconfigs up-to-speed with p4wifi

Based on AAccount defconfig
Bump kernel version to 2.6
Get rid of CONFIG_DEFAULT_SECURITY_DAC
Bump kernel version to 2.7

Back to GCC4.6 toolchain
cgroup: fix RCU accesses to task->cgroups

commit 14611e51a57df10240817d8ada510842faf0ec51 upstream.

task->cgroups is a RCU pointer pointing to struct css_set.  A task
switches to a different css_set on cgroup migration but a css_set
doesn't change once created and its pointers to cgroup_subsys_states
aren't RCU protected.

task_subsys_state[_check]() is the macro to acquire css given a task
and subsys_id pair.  It RCU-dereferences task->cgroups->subsys[] not
task->cgroups, so the RCU pointer task->cgroups ends up being
dereferenced without read_barrier_depends() after it.  It's broken.

Fix it by introducing task_css_set[_check]() which does
RCU-dereference on task->cgroups.  task_subsys_state[_check]() is
reimplemented to directly dereference ->subsys[] of the css_set
returned from task_css_set[_check]().

This removes some of sparse RCU warnings in cgroup.

v2: Fixed unbalanced parenthsis and there's no need to use
    rcu_dereference_raw() when !CONFIG_PROVE_RCU.  Both spotted by Li.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Li Zefan <lizefan@huawei.com>
[bwh: Backported to 3.2:
 - Adjust context
 - Remove CONFIG_PROVE_RCU condition
 - s/lockdep_is_held(&cgroup_mutex)/cgroup_lock_is_held()/]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
build: kernel/module: modify optimization flags
Merge remote-tracking branch 'pershoot/cm-10.1' into infamous-jb3
Merge branch 'infamous-jb3' of github.com:InfamousAOKP/android_kernel_samsung_p4 into infamous-jb3