summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorRafal Krypa <r.krypa@samsung.com>2016-04-04 11:14:53 +0200
committerCasey Schaufler <casey@schaufler-ca.com>2016-06-08 22:52:31 +0200
commit18d872f77cecec2677a394170f26aaeb08562cee (patch)
treeb9d58ab693ce181382a7c62a4d8a42676248a3fe /README
parentsecurity: tomoyo: simplify the gc kthread creation (diff)
downloadlinux-18d872f77cecec2677a394170f26aaeb08562cee.tar.xz
linux-18d872f77cecec2677a394170f26aaeb08562cee.zip
Smack: ignore null signal in smack_task_kill
Kill with signal number 0 is commonly used for checking PID existence. Smack treated such cases like any other kills, although no signal is actually delivered when sig == 0. Checking permissions when sig == 0 didn't prevent an unprivileged caller from learning whether PID exists or not. When it existed, kernel returned EPERM, when it didn't - ESRCH. The only effect of policy check in such case is noise in audit logs. This change lets Smack silently ignore kill() invocations with sig == 0. Signed-off-by: Rafal Krypa <r.krypa@samsung.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions