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)
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

Simple merge