Lines Matching refs:smack

28 #include "smack.h"
84 * smack label is contained directly in the category set.
114 * SMACK_PTRACE_DEFAULT regular smack ptrace rules (/proc based)
169 * Set the category bit number in a smack label sized buffer.
256 * smk_perm_from_str - parse smack accesses from a text string
426 * smk_write_rules_list - write() for any /smack rule file
433 * @format: /smack/load or /smack/load2 or /smack/change-rule format.
435 * Get one smack access rule from above.
569 * interface file (/smack/load or /smack/load2)
605 * Seq_file read operations for /smack/load
639 * smk_open_load - open() for /smack/load
651 * smk_write_load - write() for /smack/load
749 * Seq_file read operations for /smack/cipso
777 * /smack/cipso. This is in support of the notion that
778 * anything read from /smack/cipso ought to be writeable
779 * to /smack/cipso.
781 * /smack/cipso2 should be used instead.
807 * smk_open_cipso - open() for /smack/cipso
811 * Connect our cipso_seq_* operations with /smack/cipso
825 * @format: /smack/cipso or /smack/cipso2
953 * smk_write_cipso - write() for /smack/cipso
977 * Seq_file read operations for /smack/cipso2
1014 * smk_open_cipso2 - open() for /smack/cipso2
1018 * Connect our cipso_seq_* operations with /smack/cipso2
1027 * smk_write_cipso2 - write() for /smack/cipso2
1051 * Seq_file read operations for /smack/netlabel
1090 * smk_open_net4addr - open() for /smack/netlabel
1094 * Connect our net4addr_seq_* operations with /smack/netlabel
1146 * smk_write_net4addr - write() for /smack/netlabel
1160 char *smack;
1192 smack = kzalloc(count + 1, GFP_KERNEL);
1193 if (smack == NULL) {
1199 &host[0], &host[1], &host[2], &host[3], &masks, smack);
1202 &host[0], &host[1], &host[2], &host[3], smack);
1215 * If smack begins with '-', it is an option, don't import it
1217 if (smack[0] != '-') {
1218 skp = smk_import_entry(smack, 0);
1227 if (strcmp(smack, SMACK_CIPSO_OPTION) != 0) {
1299 kfree(smack);
1316 * Seq_file read operations for /smack/netlabel6
1353 * smk_open_net6addr - open() for /smack/netlabel
1357 * Connect our net6addr_seq_* operations with /smack/netlabel
1408 * smk_write_net6addr - write() for /smack/netlabel
1424 char *smack;
1451 smack = kzalloc(count + 1, GFP_KERNEL);
1452 if (smack == NULL) {
1460 &mask, smack);
1465 &scanned[6], &scanned[7], smack);
1484 * If smack begins with '-', it is an option, don't import it
1486 if (smack[0] != '-') {
1487 skp = smk_import_entry(smack, 0);
1496 if (strcmp(smack, SMACK_DELETE_OPTION) != 0) {
1556 kfree(smack);
1573 * smk_read_doi - read() for /smack/doi
1597 * smk_write_doi - write() for /smack/doi
1639 * smk_read_direct - read() for /smack/direct
1663 * smk_write_direct - write() for /smack/direct
1717 * smk_read_mapped - read() for /smack/mapped
1741 * smk_write_mapped - write() for /smack/mapped
1795 * smk_read_ambient - read() for /smack/ambient
1832 * smk_write_ambient - write() for /smack/ambient
1885 * Seq_file operations for /smack/onlycap
2079 char *smack = "";
2087 smack = smack_unconfined->smk_known;
2089 asize = strlen(smack) + 1;
2092 rc = simple_read_from_buffer(buf, cn, ppos, smack, asize);
2155 * smk_read_logging - read() for /smack/logging
2178 * smk_write_logging - write() for /smack/logging
2220 * Seq_file read operations for /smack/load-self
2257 * smk_open_load_self - open() for /smack/load-self2
2269 * smk_write_load_self - write() for /smack/load-self
2299 * @format: /smack/load or /smack/load2 or /smack/change-rule format.
2364 * Seq_file read operations for /smack/load2
2388 * smk_open_load2 - open() for /smack/load2
2400 * smk_write_load2 - write() for /smack/load2
2429 * Seq_file read operations for /smack/load-self2
2465 * smk_open_load_self2 - open() for /smack/load-self2
2477 * smk_write_load_self2 - write() for /smack/load-self2
2522 * smk_write_revoke_subj - write() for /smack/revoke-subject
2597 * smk_write_change_rule - write() for /smack/change-rule
2700 * Seq_file read operations for /smack/relabel-self
2737 * smk_open_relabel_self - open() for /smack/relabel-self
2741 * Connect our relabel_self_seq_* operations with /smack/relabel-self
2750 * smk_write_relabel_self - write() for /smack/relabel-self
2815 * smk_read_ptrace - read() for /smack/ptrace
2838 * smk_write_ptrace - write() for /smack/ptrace
2881 * Fill in the well known entries for the smack filesystem