diff options
author | Elena Reshetova <elena.reshetova@intel.com> | 2013-11-11 12:37:38 +0200 |
---|---|---|
committer | Elena Reshetova <elena.reshetova@intel.com> | 2013-11-11 15:24:05 +0200 |
commit | 98b1a4a07faf0afeec7943e6a338415f620a0055 (patch) | |
tree | 0eb71235b4ec4745d6b05fe30c57ade2108365a6 | |
parent | d79df2f75a8e2b3c0dba3f7aeb309395c1b3942b (diff) | |
download | kernel-mfld-blackbay-98b1a4a07faf0afeec7943e6a338415f620a0055.tar.gz kernel-mfld-blackbay-98b1a4a07faf0afeec7943e6a338415f620a0055.tar.bz2 kernel-mfld-blackbay-98b1a4a07faf0afeec7943e6a338415f620a0055.zip |
When the ptrace security hooks were split the addition of
a mode parameter was not taken advantage of in the Smack
ptrace access check. This changes the access check from
always looking for read and write access to using the
passed mode. This will make use of /proc much happier.
Targeted for git://git.gitorious.org/smack-next/kernel.git
Change-Id: Ia3dfc1ec16f922e03fd5e52861df516e00b0a45e
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
-rw-r--r-- | security/smack/smack_lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 05bfc9950b7..e0b7c26fc1f 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -171,7 +171,7 @@ static int smack_ptrace_access_check(struct task_struct *ctp, unsigned int mode) smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_TASK); smk_ad_setfield_u_tsk(&ad, ctp); - rc = smk_curacc(tsp, MAY_READWRITE, &ad); + rc = smk_curacc(tsp, mode, &ad); return rc; } |