selinux: introduce str_read() helper
authorNamhyung Kim <namhyung@kernel.org>
Sun, 15 Jun 2014 14:02:51 +0000 (23:02 +0900)
committerPaul Moore <pmoore@redhat.com>
Wed, 18 Jun 2014 19:55:58 +0000 (15:55 -0400)
commit4b6f405f72112175a5e044b015c4119b3a5b6f52
tree66869f4749d44bd9718d58d7bede850495ca877f
parent5c7001b84be55917a99c35ce96df7e67b3c40cea
selinux: introduce str_read() helper

There're some code duplication for reading a string value during
policydb_read().  Add str_read() helper to fix it.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/ss/policydb.c