From: <ew...@us...> - 2008-02-29 06:44:37
|
Revision: 2827 http://selinux.svn.sourceforge.net/selinux/?rev=2827&view=rev Author: ewalsh Date: 2008-02-28 22:44:34 -0800 (Thu, 28 Feb 2008) Log Message: ----------- This patch adds a poly_selection type to the X contexts backend, so that the X Flask module can be informed which selections to polyinstantiate. Signed-off-by: Eamon Walsh <ew...@ty...> Modified Paths: -------------- trunk/libselinux/include/selinux/label.h trunk/libselinux/src/label_x.c Modified: trunk/libselinux/include/selinux/label.h =================================================================== --- trunk/libselinux/include/selinux/label.h 2008-02-28 20:41:51 UTC (rev 2826) +++ trunk/libselinux/include/selinux/label.h 2008-02-29 06:44:34 UTC (rev 2827) @@ -114,6 +114,7 @@ #define SELABEL_X_EVENT 4 #define SELABEL_X_SELN 5 #define SELABEL_X_POLYPROP 6 +#define SELABEL_X_POLYSELN 7 #ifdef __cplusplus Modified: trunk/libselinux/src/label_x.c =================================================================== --- trunk/libselinux/src/label_x.c 2008-02-28 20:41:51 UTC (rev 2826) +++ trunk/libselinux/src/label_x.c 2008-02-29 06:44:34 UTC (rev 2827) @@ -71,6 +71,8 @@ data->spec_arr[data->nspec].type = SELABEL_X_SELN; else if (!strcmp(type, "poly_property")) data->spec_arr[data->nspec].type = SELABEL_X_POLYPROP; + else if (!strcmp(type, "poly_selection")) + data->spec_arr[data->nspec].type = SELABEL_X_POLYSELN; else { selinux_log(SELINUX_WARNING, "%s: line %d has invalid object type %s\n", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |