commit | 35b01083fe5e34cbd318a78ef9b1a13432ae24d9 | [log] [tgz] |
---|---|---|
author | Stephen Smalley <sds@tycho.nsa.gov> | Wed Apr 04 10:06:13 2012 -0400 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Wed Apr 04 10:06:13 2012 -0400 |
tree | c58eff05b8174215a1c3aad496315a17aa680759 | |
parent | 32ebfe869edfc32633cf4f2ee2b56b7d8ce97a19 [diff] [blame] |
Define and implement Android property selabel backend.
diff --git a/src/label.c b/src/label.c index c448e3d..490d832 100644 --- a/src/label.c +++ b/src/label.c
@@ -21,6 +21,10 @@ static selabel_initfunc initfuncs[] = { &selabel_file_init, + NULL, + NULL, + NULL, + &selabel_property_init, }; /* @@ -67,6 +71,9 @@ goto out; } + if (initfuncs[backend] == NULL) + goto out; + rec = (struct selabel_handle *)malloc(sizeof(*rec)); if (!rec) goto out;