+ /*
+ * Label directories and character devices "*".
+ * Label symlinks "_".
+ * Don't change anything else.
+ */
+ if (S_ISDIR(sb.st_mode))
+ label = STAR_LABEL;
+ else if (S_ISLNK(sb.st_mode))
+ label = FLOOR_LABEL;
+ else if (S_ISCHR(sb.st_mode))
+ label = STAR_LABEL;
+ else
+ return;