Home
last modified time | relevance | path

Searched refs:smack (Results 1 – 7 of 7) sorted by relevance

/security/smack/
Dsmack_access.c361 void smk_parse_smack(const char *string, int len, char *smack) in smk_parse_smack() argument
371 smack[i] = '\0'; in smk_parse_smack()
375 smack[i] = '\0'; in smk_parse_smack()
378 smack[i] = string[i]; in smk_parse_smack()
393 char smack[SMK_LABELLEN]; in smk_import_entry() local
395 smk_parse_smack(string, len, smack); in smk_import_entry()
396 if (smack[0] == '\0') in smk_import_entry()
401 skp = smk_find_entry(smack); in smk_import_entry()
406 strncpy(skp->smk_known, smack, SMK_MAXLEN); in smk_import_entry()
480 u32 smack_to_secid(const char *smack) in smack_to_secid() argument
[all …]
DMakefile5 obj-$(CONFIG_SECURITY_SMACK) := smack.o
7 smack-y := smack_lsm.o smack_access.o smackfs.o
Dsmackfs.c198 char smack[SMK_LABELLEN]; in smk_parse_rule() local
210 smk_parse_smack(data, 0, smack); in smk_parse_rule()
211 skp = smk_find_entry(smack); in smk_parse_rule()
216 smk_parse_smack(data + SMK_LABELLEN, 0, smack); in smk_parse_rule()
217 skp = smk_find_entry(smack); in smk_parse_rule()
890 char smack[SMK_LABELLEN]; in smk_write_netlbladdr() local
922 &host[0], &host[1], &host[2], &host[3], &m, smack); in smk_write_netlbladdr()
925 &host[0], &host[1], &host[2], &host[3], smack); in smk_write_netlbladdr()
934 if (smack[0] != '-') { in smk_write_netlbladdr()
935 sp = smk_import(smack, 0); in smk_write_netlbladdr()
[all …]
Dsmack_lsm.c78 struct inode_smack *new_inode_smack(char *smack) in new_inode_smack() argument
86 isp->smk_inode = smack; in new_inode_smack()
1478 char *smack = smack_from_secid(secid); in smack_kernel_act_as() local
1480 if (smack == NULL) in smack_kernel_act_as()
1483 new_tsp->smk_task = smack; in smack_kernel_act_as()
1863 static void smack_to_secattr(char *smack, struct netlbl_lsm_secattr *nlsp) in smack_to_secattr() argument
1868 nlsp->domain = smack; in smack_to_secattr()
1871 rc = smack_to_cipso(smack, &cipso); in smack_to_secattr()
1877 smack_set_catset(smack, nlsp); in smack_to_secattr()
2533 char *smack = ipp->security; in smack_ipc_getsecid() local
[all …]
Dsmack.h221 void smk_parse_smack(const char *string, int len, char *smack);
/security/
DMakefile7 subdir-$(CONFIG_SECURITY_SMACK) += smack
21 obj-$(CONFIG_SECURITY_SMACK) += smack/built-in.o
DKconfig196 source security/smack/Kconfig
239 default "smack" if DEFAULT_SECURITY_SMACK