Lines Matching refs:smack

27 #include "smack.h"
83 * smack label is contained directly in the category set.
113 * SMACK_PTRACE_DEFAULT regular smack ptrace rules (/proc based)
168 * Set the category bit number in a smack label sized buffer.
255 * smk_perm_from_str - parse smack accesses from a text string
425 * smk_write_rules_list - write() for any /smack rule file
432 * @format: /smack/load or /smack/load2 or /smack/change-rule format.
434 * Get one smack access rule from above.
568 * interface file (/smack/load or /smack/load2)
604 * Seq_file read operations for /smack/load
638 * smk_open_load - open() for /smack/load
650 * smk_write_load - write() for /smack/load
748 * Seq_file read operations for /smack/cipso
776 * /smack/cipso. This is in support of the notion that
777 * anything read from /smack/cipso ought to be writeable
778 * to /smack/cipso.
780 * /smack/cipso2 should be used instead.
806 * smk_open_cipso - open() for /smack/cipso
810 * Connect our cipso_seq_* operations with /smack/cipso
824 * @format: /smack/cipso or /smack/cipso2
941 * smk_write_cipso - write() for /smack/cipso
965 * Seq_file read operations for /smack/cipso2
1002 * smk_open_cipso2 - open() for /smack/cipso2
1006 * Connect our cipso_seq_* operations with /smack/cipso2
1015 * smk_write_cipso2 - write() for /smack/cipso2
1039 * Seq_file read operations for /smack/netlabel
1078 * smk_open_net4addr - open() for /smack/netlabel
1082 * Connect our net4addr_seq_* operations with /smack/netlabel
1134 * smk_write_net4addr - write() for /smack/netlabel
1148 char *smack;
1180 smack = kzalloc(count + 1, GFP_KERNEL);
1181 if (smack == NULL) {
1187 &host[0], &host[1], &host[2], &host[3], &masks, smack);
1190 &host[0], &host[1], &host[2], &host[3], smack);
1204 * If smack begins with '-', it is an option, don't import it
1206 if (smack[0] != '-') {
1207 skp = smk_import_entry(smack, 0);
1216 if (strcmp(smack, SMACK_CIPSO_OPTION) != 0) {
1288 kfree(smack);
1305 * Seq_file read operations for /smack/netlabel6
1342 * smk_open_net6addr - open() for /smack/netlabel
1346 * Connect our net6addr_seq_* operations with /smack/netlabel
1397 * smk_write_net6addr - write() for /smack/netlabel
1413 char *smack;
1440 smack = kzalloc(count + 1, GFP_KERNEL);
1441 if (smack == NULL) {
1449 &mask, smack);
1454 &scanned[6], &scanned[7], smack);
1473 * If smack begins with '-', it is an option, don't import it
1475 if (smack[0] != '-') {
1476 skp = smk_import_entry(smack, 0);
1485 if (strcmp(smack, SMACK_DELETE_OPTION) != 0) {
1545 kfree(smack);
1562 * smk_read_doi - read() for /smack/doi
1586 * smk_write_doi - write() for /smack/doi
1628 * smk_read_direct - read() for /smack/direct
1652 * smk_write_direct - write() for /smack/direct
1706 * smk_read_mapped - read() for /smack/mapped
1730 * smk_write_mapped - write() for /smack/mapped
1784 * smk_read_ambient - read() for /smack/ambient
1821 * smk_write_ambient - write() for /smack/ambient
1874 * Seq_file operations for /smack/onlycap
2068 char *smack = "";
2076 smack = smack_unconfined->smk_known;
2078 asize = strlen(smack) + 1;
2081 rc = simple_read_from_buffer(buf, cn, ppos, smack, asize);
2144 * smk_read_logging - read() for /smack/logging
2167 * smk_write_logging - write() for /smack/logging
2209 * Seq_file read operations for /smack/load-self
2246 * smk_open_load_self - open() for /smack/load-self2
2258 * smk_write_load_self - write() for /smack/load-self
2352 * Seq_file read operations for /smack/load2
2376 * smk_open_load2 - open() for /smack/load2
2388 * smk_write_load2 - write() for /smack/load2
2417 * Seq_file read operations for /smack/load-self2
2453 * smk_open_load_self2 - open() for /smack/load-self2
2465 * smk_write_load_self2 - write() for /smack/load-self2
2510 * smk_write_revoke_subj - write() for /smack/revoke-subject
2585 * smk_write_change_rule - write() for /smack/change-rule
2688 * Seq_file read operations for /smack/relabel-self
2725 * smk_open_relabel_self - open() for /smack/relabel-self
2729 * Connect our relabel_self_seq_* operations with /smack/relabel-self
2738 * smk_write_relabel_self - write() for /smack/relabel-self
2803 * smk_read_ptrace - read() for /smack/ptrace
2826 * smk_write_ptrace - write() for /smack/ptrace
2869 * Fill in the well known entries for the smack filesystem