smack-team/smack — pull request #18 by jkozerski (2013-10-02 08:25:55+00:00)
Title: Add smack_label_is_valid() function to check correctness of SMACK label

Kernel does not validate the Smack label - instead the label will be
cut on the first incorrect character (after parsing at least one
correct character).
This function gives the user possibility to verify the correctness
of the Smack label before use