/security/integrity/ima/ |
D | ima_template_lib.c | 65 static void ima_show_template_data_ascii(struct seq_file *m, in ima_show_template_data_ascii() argument 77 seq_printf(m, "%s", field_data->data); in ima_show_template_data_ascii() 87 ima_print_digest(m, buf_ptr, buflen); in ima_show_template_data_ascii() 90 seq_printf(m, "%s", buf_ptr); in ima_show_template_data_ascii() 97 static void ima_show_template_data_binary(struct seq_file *m, in ima_show_template_data_binary() argument 108 ima_putc(m, &field_len, sizeof(field_len)); in ima_show_template_data_binary() 114 ima_putc(m, field_data->data, len); in ima_show_template_data_binary() 117 static void ima_show_template_field_data(struct seq_file *m, in ima_show_template_field_data() argument 124 ima_show_template_data_ascii(m, show, datafmt, field_data); in ima_show_template_field_data() 129 ima_show_template_data_binary(m, show, datafmt, field_data); in ima_show_template_field_data() [all …]
|
D | ima_fs.c | 78 static void *ima_measurements_start(struct seq_file *m, loff_t *pos) in ima_measurements_start() argument 95 static void *ima_measurements_next(struct seq_file *m, void *v, loff_t *pos) in ima_measurements_next() argument 110 static void ima_measurements_stop(struct seq_file *m, void *v) in ima_measurements_stop() argument 114 void ima_putc(struct seq_file *m, void *data, int datalen) in ima_putc() argument 117 seq_putc(m, *(char *)data++); in ima_putc() 128 int ima_measurements_show(struct seq_file *m, void *v) in ima_measurements_show() argument 152 ima_putc(m, &pcr, sizeof(e->pcr)); in ima_measurements_show() 155 ima_putc(m, e->digest, TPM_DIGEST_SIZE); in ima_measurements_show() 160 ima_putc(m, &namelen, sizeof(namelen)); in ima_measurements_show() 163 ima_putc(m, template_name, strlen(template_name)); in ima_measurements_show() [all …]
|
D | ima_policy.c | 1320 void *ima_policy_start(struct seq_file *m, loff_t *pos) in ima_policy_start() argument 1336 void *ima_policy_next(struct seq_file *m, void *v, loff_t *pos) in ima_policy_next() argument 1348 void ima_policy_stop(struct seq_file *m, void *v) in ima_policy_stop() argument 1358 static void policy_func_show(struct seq_file *m, enum ima_hooks func) in policy_func_show() argument 1361 seq_printf(m, "func=%s ", func_tokens[func]); in policy_func_show() 1363 seq_printf(m, "func=%d ", func); in policy_func_show() 1366 int ima_policy_show(struct seq_file *m, void *v) in ima_policy_show() argument 1376 seq_puts(m, pt(Opt_measure)); in ima_policy_show() 1378 seq_puts(m, pt(Opt_dont_measure)); in ima_policy_show() 1380 seq_puts(m, pt(Opt_appraise)); in ima_policy_show() [all …]
|
D | ima_template_lib.h | 20 void ima_show_template_digest(struct seq_file *m, enum ima_show_type show, 22 void ima_show_template_digest_ng(struct seq_file *m, enum ima_show_type show, 24 void ima_show_template_string(struct seq_file *m, enum ima_show_type show, 26 void ima_show_template_sig(struct seq_file *m, enum ima_show_type show, 28 void ima_show_template_buf(struct seq_file *m, enum ima_show_type show,
|
D | ima.h | 80 void (*field_show)(struct seq_file *m, enum ima_show_type show, 148 void ima_putc(struct seq_file *m, void *data, int datalen); 149 void ima_print_digest(struct seq_file *m, u8 *digest, u32 size); 158 int ima_measurements_show(struct seq_file *m, void *v); 241 void *ima_policy_start(struct seq_file *m, loff_t *pos); 242 void *ima_policy_next(struct seq_file *m, void *v, loff_t *pos); 243 void ima_policy_stop(struct seq_file *m, void *v); 244 int ima_policy_show(struct seq_file *m, void *v);
|
/security/keys/ |
D | proc.c | 19 static int proc_keys_show(struct seq_file *m, void *v); 31 static int proc_key_users_show(struct seq_file *m, void *v); 151 static int proc_keys_show(struct seq_file *m, void *v) in proc_keys_show() argument 165 .cred = m->file->f_cred, in proc_keys_show() 224 seq_printf(m, "%08x %c%c%c%c%c%c%c %5d %4s %08x %5d %5d %-9.9s ", in proc_keys_show() 236 from_kuid_munged(seq_user_ns(m), key->uid), in proc_keys_show() 237 from_kgid_munged(seq_user_ns(m), key->gid), in proc_keys_show() 243 key->type->describe(key, m); in proc_keys_show() 244 seq_putc(m, '\n'); in proc_keys_show() 301 static int proc_key_users_show(struct seq_file *m, void *v) in proc_key_users_show() argument [all …]
|
D | request_key_auth.c | 65 struct seq_file *m) in request_key_auth_describe() argument 72 seq_puts(m, "key:"); in request_key_auth_describe() 73 seq_puts(m, key->description); in request_key_auth_describe() 75 seq_printf(m, " pid:%d ci:%zu", rka->pid, rka->callout_len); in request_key_auth_describe()
|
D | user_defined.c | 158 void user_describe(const struct key *key, struct seq_file *m) in user_describe() argument 160 seq_puts(m, key->description); in user_describe() 162 seq_printf(m, ": %u", key->datalen); in user_describe()
|
D | big_key.c | 339 void big_key_describe(const struct key *key, struct seq_file *m) in big_key_describe() argument 343 seq_puts(m, key->description); in big_key_describe() 346 seq_printf(m, ": %zu [%s]", in big_key_describe()
|
D | keyring.c | 80 static void keyring_describe(const struct key *keyring, struct seq_file *m); 437 static void keyring_describe(const struct key *keyring, struct seq_file *m) in keyring_describe() argument 440 seq_puts(m, keyring->description); in keyring_describe() 442 seq_puts(m, "[anon]"); in keyring_describe() 446 seq_printf(m, ": %lu", keyring->keys.nr_leaves_on_tree); in keyring_describe() 448 seq_puts(m, ": empty"); in keyring_describe()
|
/security/smack/ |
D | smackfs.c | 1080 struct smk_net4addr *m; in smk_net4addr_insert() local 1088 m = list_entry_rcu(smk_net4addr_list.next, in smk_net4addr_insert() 1092 if (new->smk_masks > m->smk_masks) { in smk_net4addr_insert() 1097 list_for_each_entry_rcu(m, &smk_net4addr_list, list) { in smk_net4addr_insert() 1098 if (list_is_last(&m->list, &smk_net4addr_list)) { in smk_net4addr_insert() 1099 list_add_rcu(&new->list, &m->list); in smk_net4addr_insert() 1102 m_next = list_entry_rcu(m->list.next, in smk_net4addr_insert() 1105 list_add_rcu(&new->list, &m->list); in smk_net4addr_insert() 1134 unsigned int m; in smk_write_net4addr() local 1174 m = BEBITS; in smk_write_net4addr() [all …]
|
D | smack_access.c | 489 unsigned char m; in smk_netlbl_mls() local 499 for (m = 0x80; m != 0; m >>= 1, cat++) { in smk_netlbl_mls() 500 if ((m & *cp) == 0) in smk_netlbl_mls()
|
D | smack.h | 509 struct vfsmount *m) in smk_ad_setfield_u_fs_path_mnt() argument
|
/security/ |
D | device_cgroup.c | 259 static void set_majmin(char *str, unsigned m) in set_majmin() argument 261 if (m == ~0) in set_majmin() 264 sprintf(str, "%u", m); in set_majmin() 267 static int devcgroup_seq_show(struct seq_file *m, void *v) in devcgroup_seq_show() argument 269 struct dev_cgroup *devcgroup = css_to_devcgroup(seq_css(m)); in devcgroup_seq_show() 284 seq_printf(m, "%c %s:%s %s\n", type_to_char(DEVCG_DEV_ALL), in devcgroup_seq_show() 291 seq_printf(m, "%c %s:%s %s\n", type_to_char(ex->type), in devcgroup_seq_show()
|
D | commoncap.c | 340 static __u32 sansflags(__u32 m) in sansflags() argument 342 return m & ~VFS_CAP_FLAGS_EFFECTIVE; in sansflags()
|
D | security.c | 847 int security_sb_show_options(struct seq_file *m, struct super_block *sb) in security_sb_show_options() argument 849 return call_int_hook(sb_show_options, 0, m, sb); in security_sb_show_options()
|
/security/apparmor/ |
D | file.c | 27 u32 m = mask & PERMS_CHRS_MASK; in map_mask_to_chr_mask() local 30 m |= MAY_READ; in map_mask_to_chr_mask() 32 m |= MAY_WRITE; in map_mask_to_chr_mask() 34 return m; in map_mask_to_chr_mask()
|
/security/selinux/ |
D | hooks.c | 1078 static int show_sid(struct seq_file *m, u32 sid) in show_sid() argument 1089 seq_putc(m, '='); in show_sid() 1091 seq_putc(m, '\"'); in show_sid() 1092 seq_escape(m, context, "\"\n\\"); in show_sid() 1094 seq_putc(m, '\"'); in show_sid() 1100 static int selinux_sb_show_options(struct seq_file *m, struct super_block *sb) in selinux_sb_show_options() argument 1112 seq_putc(m, ','); in selinux_sb_show_options() 1113 seq_puts(m, FSCONTEXT_STR); in selinux_sb_show_options() 1114 rc = show_sid(m, sbsec->sid); in selinux_sb_show_options() 1119 seq_putc(m, ','); in selinux_sb_show_options() [all …]
|
/security/selinux/ss/ |
D | avtab.c | 38 static const u32 m = 5; in avtab_hash() local 50 hash = hash * m + n; \ in avtab_hash()
|