• Home
  • Raw
  • Download

Lines Matching refs:state

79 	struct selinux_state *state;  member
93 fsi->state = &selinux_state; in selinux_fs_info_create()
129 enforcing_enabled(fsi->state)); in sel_read_enforce()
139 struct selinux_state *state = fsi->state; in sel_write_enforce() local
161 old_value = enforcing_enabled(state); in sel_write_enforce()
176 enforcing_set(state, new_value); in sel_write_enforce()
178 avc_ss_reset(state->avc, 0); in sel_write_enforce()
180 selinux_status_update_setenforce(state, new_value); in sel_write_enforce()
203 struct selinux_state *state = fsi->state; in sel_read_handle_unknown() local
208 security_get_reject_unknown(state) : in sel_read_handle_unknown()
209 !security_get_allow_unknown(state); in sel_read_handle_unknown()
223 struct page *status = selinux_kernel_status_page(fsi->state); in sel_open_handle_status()
301 enforcing = enforcing_enabled(fsi->state); in sel_write_disable()
302 length = selinux_disable(fsi->state); in sel_write_disable()
359 security_mls_enabled(fsi->state)); in sel_read_mls()
376 struct selinux_state *state = fsi->state; in sel_open_policy() local
399 if (i_size_read(inode) != security_policydb_len(state)) { in sel_open_policy()
401 i_size_write(inode, security_policydb_len(state)); in sel_open_policy()
405 rc = security_read_policy(state, &plm->data, &plm->len); in sel_open_policy()
564 length = security_load_policy(fsi->state, data, count); in sel_write_load()
595 struct selinux_state *state = fsi->state; in sel_write_context() local
606 length = security_context_to_sid(state, buf, size, &sid, GFP_KERNEL); in sel_write_context()
610 length = security_sid_to_context(state, sid, &canon, &len); in sel_write_context()
635 length = scnprintf(tmpbuf, TMPBUFLEN, "%u", fsi->state->checkreqprot); in sel_read_checkreqprot()
669 fsi->state->checkreqprot = new_value ? 1 : 0; in sel_write_checkreqprot()
686 struct selinux_state *state = fsi->state; in sel_write_validatetrans() local
732 rc = security_context_str_to_sid(state, oldcon, &osid, GFP_KERNEL); in sel_write_validatetrans()
736 rc = security_context_str_to_sid(state, newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans()
740 rc = security_context_str_to_sid(state, taskcon, &tsid, GFP_KERNEL); in sel_write_validatetrans()
744 rc = security_validate_transition_user(state, osid, nsid, tsid, tclass); in sel_write_validatetrans()
815 struct selinux_state *state = fsi->state; in sel_write_access() local
842 length = security_context_str_to_sid(state, scon, &ssid, GFP_KERNEL); in sel_write_access()
846 length = security_context_str_to_sid(state, tcon, &tsid, GFP_KERNEL); in sel_write_access()
850 security_compute_av_user(state, ssid, tsid, tclass, &avd); in sel_write_access()
866 struct selinux_state *state = fsi->state; in sel_write_create() local
933 length = security_context_str_to_sid(state, scon, &ssid, GFP_KERNEL); in sel_write_create()
937 length = security_context_str_to_sid(state, tcon, &tsid, GFP_KERNEL); in sel_write_create()
941 length = security_transition_sid_user(state, ssid, tsid, tclass, in sel_write_create()
946 length = security_sid_to_context(state, newsid, &newcon, &len); in sel_write_create()
970 struct selinux_state *state = fsi->state; in sel_write_relabel() local
999 length = security_context_str_to_sid(state, scon, &ssid, GFP_KERNEL); in sel_write_relabel()
1003 length = security_context_str_to_sid(state, tcon, &tsid, GFP_KERNEL); in sel_write_relabel()
1007 length = security_change_sid(state, ssid, tsid, tclass, &newsid); in sel_write_relabel()
1011 length = security_sid_to_context(state, newsid, &newcon, &len); in sel_write_relabel()
1031 struct selinux_state *state = fsi->state; in sel_write_user() local
1060 length = security_context_str_to_sid(state, con, &sid, GFP_KERNEL); in sel_write_user()
1064 length = security_get_user_sids(state, sid, user, &sids, &nsids); in sel_write_user()
1071 rc = security_sid_to_context(state, sids[i], &newcon, &len); in sel_write_user()
1096 struct selinux_state *state = fsi->state; in sel_write_member() local
1125 length = security_context_str_to_sid(state, scon, &ssid, GFP_KERNEL); in sel_write_member()
1129 length = security_context_str_to_sid(state, tcon, &tsid, GFP_KERNEL); in sel_write_member()
1133 length = security_member_sid(state, ssid, tsid, tclass, &newsid); in sel_write_member()
1137 length = security_sid_to_context(state, newsid, &newcon, &len); in sel_write_member()
1191 cur_enforcing = security_get_bool_value(fsi->state, index); in sel_read_bool()
1301 length = security_set_bools(fsi->state, fsi->bool_num, in sel_commit_bools_write()
1355 ret = security_get_bools(fsi->state, &num, &names, &values); in sel_make_bools()
1381 ret = security_genfs_sid(fsi->state, "selinuxfs", page, in sel_make_bools()
1419 struct selinux_state *state = fsi->state; in sel_read_avc_cache_threshold() local
1424 avc_get_cache_threshold(state->avc)); in sel_read_avc_cache_threshold()
1434 struct selinux_state *state = fsi->state; in sel_write_avc_cache_threshold() local
1461 avc_set_cache_threshold(state->avc, new_value); in sel_write_avc_cache_threshold()
1473 struct selinux_state *state = fsi->state; in sel_read_avc_hash_stats() local
1481 length = avc_get_hash_stats(state->avc, page); in sel_read_avc_hash_stats()
1493 struct selinux_state *state = fsi->state; in sel_read_sidtab_hash_stats() local
1501 length = security_sidtab_hash_stats(state, page); in sel_read_sidtab_hash_stats()
1673 ret = security_sid_to_context(fsi->state, sid, &con, &len); in sel_read_initcon()
1769 value = security_policycap_supported(fsi->state, i_ino & SEL_INO_MASK); in sel_read_policycap()
1787 rc = security_get_permissions(fsi->state, objclass, &perms, &nperms); in sel_make_perm_files()
1861 rc = security_get_classes(fsi->state, &classes, &nclasses); in sel_make_classes()