Smack: fix the subject/object order in smack_ptrace_traceme()
authorLukasz Pawelczyk <l.pawelczyk@partner.samsung.com>
Tue, 11 Mar 2014 16:07:04 +0000 (17:07 +0100)
committerDamian Hobson-Garcia <dhobsong@igel.co.jp>
Thu, 11 Dec 2014 07:53:25 +0000 (16:53 +0900)
commitbd19c431d094b8db1490ab2f5e4464a0c515cd66
treea4446ae393c75cdc43d992bf54070cd57c5a2fe2
parentd273010b26b49e3e2b12a6b422f7c94a26d61396
Smack: fix the subject/object order in smack_ptrace_traceme()

The order of subject/object is currently reversed in
smack_ptrace_traceme(). It is currently checked if the tracee has a
capability to trace tracer and according to this rule a decision is made
whether the tracer will be allowed to trace tracee.

Change-Id: I70afd604b29e5d6515d042ab648b0513c1f77d7a
Signed-off-by: Lukasz Pawelczyk <l.pawelczyk@partner.samsung.com>
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
(cherry picked from commit 65381c07573476a9bf9eb634cae836e8da0caa2e)

Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
security/smack/smack.h
security/smack/smack_access.c
security/smack/smack_lsm.c