Smack: Make the syslog control configurable 89/164089/1
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 23 Dec 2013 19:07:10 +0000 (11:07 -0800)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 15 Dec 2017 07:45:26 +0000 (16:45 +0900)
commite937e84655223370ad14d961e01445c9842f1895
tree1e81eb4189868fb8ee13de537f6ec714fbbb0d10
parent3c568165c05fb97087e0c89294b4581eeaf6b513
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>
[sw0312.kim: backport from mainline commit 00f84f3f2e9d to support non-root user dlog]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I030b6a271020c1ff9aa79538afb753fed3d7289e
security/smack/smack.h
security/smack/smack_lsm.c
security/smack/smackfs.c