Lines Matching defs:smack
17 #include "smack.h"
65 * can be overwritten at run-time by /smack/logging
257 * @subject_label : smack label of the requester
258 * @object_label : smack label of the object being accessed
313 char smack[SMK_LABELLEN];
322 smack[i] = '\0';
326 smack[i] = '\0';
329 smack[i] = string[i];
332 if (smack[0] == '\0')
339 if (strncmp(skp->smk_known, smack, SMK_MAXLEN) == 0) {
348 strncpy(skp->smk_known, smack, SMK_MAXLEN);
366 * smk_import - import a smack label
415 * @smack: the Smack label
420 u32 smack_to_secid(const char *smack)
426 if (strncmp(skp->smk_known, smack, SMK_MAXLEN) == 0) {
443 * This is an odd duck as far as smack handling goes in that
444 * it sends back a copy of the smack label rather than a pointer
446 * a foreign host to send a smack label that is new to this
478 * @smack: a pointer to the smack label in question
483 int smack_to_cipso(const char *smack, struct smack_cipso *cp)
490 if (kp->smk_known == smack ||
491 strcmp(kp->smk_known, smack) == 0) {