BACKPORT: 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)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 30 Jun 2016 12:57:33 +0000 (14:57 +0200)
commit00e2a9e3d70e132ba96e941491543449c1170a55
treecd7442a2bf97d32ae8a2c009a93cc232847c4cbc
parent16638e4968f6cb2109e2f0c553d3a7d737c22f4b
BACKPORT: 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.

Signed-off-by: Lukasz Pawelczyk <l.pawelczyk@partner.samsung.com>
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
(cherry-picked from upstream 959e6c7f1eee42f14d31755b1134f5615db1d9bc)
security/smack/smack.h
security/smack/smack_access.c
security/smack/smack_lsm.c