BACKPORT: Smack: Make the syslog control configurable
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 23 Dec 2013 19:07:10 +0000 (11:07 -0800)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 30 Jun 2016 12:57:30 +0000 (14:57 +0200)
commit517ce1a1d7031cb42467bd69e91bd7e2f66cb0c6
tree20e4a6f9644f86bf666249ca23a0a2d1a58824ea
parenta8164406a5081e88e87497436979c26f19027ee9
BACKPORT: Smack: Make the syslog control configurable

The syslog control requires that the calling proccess
have the floor ("_") Smack label. Tizen does not run any
processes except for kernel helpers with the floor label.
This changes allows the admin to configure a specific
label for syslog. The default value is the star ("*")
label, effectively removing the restriction. The value
can be set using smackfs/syslog for anyone who wants
a more restrictive behavior.

Targeted for git://git.gitorious.org/smack-next/kernel.git

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