session_policy_local: Refactor SELinux context parser
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 31 May 2013 07:13:29 +0000 (09:13 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 31 May 2013 11:36:32 +0000 (14:36 +0300)
commit99249a49b7d5e9c763ff21214b08aac3b5fbfd99
tree13c42026ea65717be6861b8b1402044efc23909f
parent3fb5619a5771591cb425e7383880fa9a71840b95
session_policy_local: Refactor SELinux context parser

g_strplit() will eventually strdup the tokens so no need to
strdup() 'context'. But we an ugly cast (from 'const unsigned char *'
to 'const char *') is needed for g_strsplit() to make the compiler happy.
plugins/session_policy_local.c