The attached patch add support db_language object class to the selabel_lookup(_raw) interfaces. It is needed to inform object manager initial label of procedural language object. Thanks, -- KaiGai Kohei <kaigai@xxxxxxxxxxxxx>
diff --git a/libselinux/include/selinux/label.h b/libselinux/include/selinux/label.h index 0435365..1a54307 100644 --- a/libselinux/include/selinux/label.h +++ b/libselinux/include/selinux/label.h @@ -128,6 +128,7 @@ void selabel_stats(struct selabel_handle *handle); #define SELABEL_DB_PROCEDURE 7 #define SELABEL_DB_BLOB 8 #define SELABEL_DB_TUPLE 9 +#define SELABEL_DB_LANGUAGE 10 #ifdef __cplusplus } diff --git a/libselinux/src/label_db.c b/libselinux/src/label_db.c index e1bfab7..7afacf0 100644 --- a/libselinux/src/label_db.c +++ b/libselinux/src/label_db.c @@ -138,6 +138,8 @@ process_line(const char *path, char *line_buf, unsigned int line_num, spec->type = SELABEL_DB_BLOB; else if (!strcmp(type, "db_tuple")) spec->type = SELABEL_DB_TUPLE; + else if (!strcmp(type, "db_language")) + spec->type = SELABEL_DB_LANGUAGE; else { selinux_log(SELINUX_WARNING, "%s: line %d has invalid object type %s\n",