Home
last modified time | relevance | path

Searched refs:snp (Results 1 – 2 of 2) sorted by relevance

/security/smack/
Dsmackfs.c1161 struct smk_netlbladdr *snp; in smk_write_netlbladdr() local
1258 list_for_each_entry_rcu(snp, &smk_netlbladdr_list, list) { in smk_write_netlbladdr()
1259 if (snp->smk_host.sin_addr.s_addr == nsa && in smk_write_netlbladdr()
1260 snp->smk_mask.s_addr == mask.s_addr) { in smk_write_netlbladdr()
1268 snp = kzalloc(sizeof(*snp), GFP_KERNEL); in smk_write_netlbladdr()
1269 if (snp == NULL) in smk_write_netlbladdr()
1273 snp->smk_host.sin_addr.s_addr = newname.sin_addr.s_addr; in smk_write_netlbladdr()
1274 snp->smk_mask.s_addr = mask.s_addr; in smk_write_netlbladdr()
1275 snp->smk_label = skp; in smk_write_netlbladdr()
1276 smk_netlbladdr_insert(snp); in smk_write_netlbladdr()
[all …]
Dsmack_lsm.c2099 struct smk_netlbladdr *snp; in smack_host_label() local
2105 list_for_each_entry_rcu(snp, &smk_netlbladdr_list, list) in smack_host_label()
2111 if ((&snp->smk_host.sin_addr)->s_addr == in smack_host_label()
2112 (siap->s_addr & (&snp->smk_mask)->s_addr)) { in smack_host_label()
2114 if (snp->smk_label == &smack_cipso_option) in smack_host_label()
2116 return snp->smk_label; in smack_host_label()