BACKPORT: Smack: Signal delivery as an append operation
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 30 Aug 2016 17:31:39 +0000 (10:31 -0700)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 21 Nov 2016 16:02:10 +0000 (17:02 +0100)
commit006a10acc99c3e719a812fcece54e76e5a7fd531
tree80a591795cb83c804cffaa50c91f97ca3fe1f838
parentca84357ba5912ee2b2f5c55510ebf69f4a919abc
BACKPORT: Smack: Signal delivery as an append operation

Under a strict subject/object security policy delivering a
signal or delivering network IPC could be considered either
a write or an append operation. The original choice to make
both write operations leads to an issue where IPC delivery
is desired under policy, but delivery of signals is not.
This patch provides the option of making signal delivery
an append operation, allowing Smack rules that deny signal
delivery while allowing IPC. This was requested for Tizen.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
(cherry-picked from upstream c60b906673eebb4f65840fa9dc204401caf276ea)
security/smack/Kconfig
security/smack/smack.h
security/smack/smack_lsm.c