Lines Matching refs:selinux_state
106 struct selinux_state selinux_state; variable
275 if (selinux_state.initialized && in __inode_security_revalidate()
466 rc = avc_has_perm(&selinux_state, in may_context_mount_sb_relabel()
472 rc = avc_has_perm(&selinux_state, in may_context_mount_sb_relabel()
484 rc = avc_has_perm(&selinux_state, in may_context_mount_inode_relabel()
490 rc = avc_has_perm(&selinux_state, in may_context_mount_inode_relabel()
633 int rc = security_context_str_to_sid(&selinux_state, s, in parse_sid()
662 if (!selinux_state.initialized) { in selinux_set_mnt_opts()
768 rc = security_fs_use(&selinux_state, sb); in selinux_set_mnt_opts()
792 rc = security_transition_sid(&selinux_state, in selinux_set_mnt_opts()
931 if (!selinux_state.initialized) in selinux_sb_clone_mnt_opts()
961 rc = security_fs_use(&selinux_state, newsb); in selinux_sb_clone_mnt_opts()
1082 rc = security_sid_to_context(&selinux_state, sid, in show_sid()
1106 if (!selinux_state.initialized) in selinux_sb_show_options()
1357 rc = security_genfs_sid(&selinux_state, sb->s_type->name, in selinux_genfs_get_sid()
1412 rc = security_context_to_sid_default(&selinux_state, context, rc, sid, in inode_doinit_use_xattr()
1519 rc = security_transition_sid(&selinux_state, task_sid, sid, in inode_doinit_with_dentry()
1654 rc = avc_has_perm_noaudit(&selinux_state, in cred_has_capability()
1657 int rc2 = avc_audit(&selinux_state, in cred_has_capability()
1684 return avc_has_perm(&selinux_state, in inode_has_perm()
1758 rc = avc_has_perm(&selinux_state, in file_has_perm()
1801 return security_transition_sid(&selinux_state, tsec->sid, in selinux_determine_inode_label()
1829 rc = avc_has_perm(&selinux_state, in may_create()
1841 rc = avc_has_perm(&selinux_state, in may_create()
1846 return avc_has_perm(&selinux_state, in may_create()
1876 rc = avc_has_perm(&selinux_state, in may_link()
1897 rc = avc_has_perm(&selinux_state, in may_link()
1922 rc = avc_has_perm(&selinux_state, in may_rename()
1927 rc = avc_has_perm(&selinux_state, in may_rename()
1933 rc = avc_has_perm(&selinux_state, in may_rename()
1944 rc = avc_has_perm(&selinux_state, in may_rename()
1951 rc = avc_has_perm(&selinux_state, in may_rename()
1972 return avc_has_perm(&selinux_state, in superblock_has_perm()
2050 return avc_has_perm(&selinux_state, in selinux_binder_set_context_mgr()
2064 rc = avc_has_perm(&selinux_state, in selinux_binder_transaction()
2071 return avc_has_perm(&selinux_state, in selinux_binder_transaction()
2082 return avc_has_perm(&selinux_state, in selinux_binder_transfer_binder()
2102 rc = avc_has_perm(&selinux_state, in selinux_binder_transfer_file()
2121 return avc_has_perm(&selinux_state, in selinux_binder_transfer_file()
2133 return avc_has_perm(&selinux_state, in selinux_ptrace_access_check()
2136 return avc_has_perm(&selinux_state, in selinux_ptrace_access_check()
2142 return avc_has_perm(&selinux_state, in selinux_ptrace_traceme()
2150 return avc_has_perm(&selinux_state, in selinux_capget()
2160 return avc_has_perm(&selinux_state, in selinux_capset()
2221 return avc_has_perm(&selinux_state, in selinux_syslog()
2228 return avc_has_perm(&selinux_state, in selinux_syslog()
2234 return avc_has_perm(&selinux_state, in selinux_syslog()
2302 rc = avc_has_perm(&selinux_state, in check_nnp_nosuid()
2314 rc = security_bounded_transition(&selinux_state, old_tsec->sid, in check_nnp_nosuid()
2367 rc = security_transition_sid(&selinux_state, old_tsec->sid, in selinux_bprm_set_creds()
2386 rc = avc_has_perm(&selinux_state, in selinux_bprm_set_creds()
2393 rc = avc_has_perm(&selinux_state, in selinux_bprm_set_creds()
2399 rc = avc_has_perm(&selinux_state, in selinux_bprm_set_creds()
2407 rc = avc_has_perm(&selinux_state, in selinux_bprm_set_creds()
2420 rc = avc_has_perm(&selinux_state, in selinux_bprm_set_creds()
2435 rc = avc_has_perm(&selinux_state, in selinux_bprm_set_creds()
2528 rc = avc_has_perm(&selinux_state, in selinux_bprm_committing_creds()
2569 rc = avc_has_perm(&selinux_state, in selinux_bprm_committed_creds()
2873 return security_sid_to_context(&selinux_state, newsid, (char **)ctx, in selinux_dentry_init_security()
2928 if (!selinux_state.initialized || !(sbsec->flags & SBLABEL_MNT)) in selinux_inode_init_security()
2935 rc = security_sid_to_context_force(&selinux_state, newsid, in selinux_inode_init_security()
3011 return avc_has_perm(&selinux_state, in selinux_inode_follow_link()
3027 rc = slow_avc_audit(&selinux_state, in audit_inode_permission()
3066 rc = avc_has_perm_noaudit(&selinux_state, in selinux_inode_permission()
3158 rc = avc_has_perm(&selinux_state, in selinux_inode_setxattr()
3164 rc = security_context_to_sid(&selinux_state, value, size, &newsid, in selinux_inode_setxattr()
3191 rc = security_context_to_sid_force(&selinux_state, value, in selinux_inode_setxattr()
3197 rc = avc_has_perm(&selinux_state, in selinux_inode_setxattr()
3203 rc = security_validate_transition(&selinux_state, isec->sid, newsid, in selinux_inode_setxattr()
3208 return avc_has_perm(&selinux_state, in selinux_inode_setxattr()
3230 rc = security_context_to_sid_force(&selinux_state, value, size, in selinux_inode_post_setxattr()
3350 error = security_sid_to_context_force(&selinux_state, in selinux_inode_getsecurity()
3354 error = security_sid_to_context(&selinux_state, isec->sid, in selinux_inode_getsecurity()
3385 rc = security_context_to_sid(&selinux_state, value, size, &newsid, in selinux_inode_setsecurity()
3474 rc = security_context_to_sid(&selinux_state, context, clen, &parent_sid, in selinux_kernfs_init_security()
3489 rc = security_transition_sid(&selinux_state, tsec->sid, in selinux_kernfs_init_security()
3496 rc = security_sid_to_context_force(&selinux_state, newsid, in selinux_kernfs_init_security()
3536 fsec->pseqno == avc_policy_seqno(&selinux_state)) in selinux_file_permission()
3571 rc = avc_has_perm(&selinux_state, in ioctl_has_perm()
3584 rc = avc_has_extended_perms(&selinux_state, in ioctl_has_perm()
3654 rc = avc_has_perm(&selinux_state, in file_map_prot_check()
3685 rc = avc_has_perm(&selinux_state, in selinux_mmap_addr()
3708 if (selinux_state.checkreqprot) in selinux_mmap_file()
3722 if (selinux_state.checkreqprot) in selinux_file_mprotect()
3730 rc = avc_has_perm(&selinux_state, in selinux_file_mprotect()
3737 rc = avc_has_perm(&selinux_state, in selinux_file_mprotect()
3830 return avc_has_perm(&selinux_state, in selinux_file_send_sigiotask()
3857 fsec->pseqno = avc_policy_seqno(&selinux_state); in selinux_file_open()
3876 return avc_has_perm(&selinux_state, in selinux_task_alloc()
3919 ret = avc_has_perm(&selinux_state, in selinux_kernel_act_as()
3944 ret = avc_has_perm(&selinux_state, in selinux_kernel_create_files_as()
3962 return avc_has_perm(&selinux_state, in selinux_kernel_module_request()
3977 return avc_has_perm(&selinux_state, in selinux_kernel_module_from_file()
3988 rc = avc_has_perm(&selinux_state, in selinux_kernel_module_from_file()
3995 return avc_has_perm(&selinux_state, in selinux_kernel_module_from_file()
4032 return avc_has_perm(&selinux_state, in selinux_task_setpgid()
4039 return avc_has_perm(&selinux_state, in selinux_task_getpgid()
4046 return avc_has_perm(&selinux_state, in selinux_task_getsid()
4058 return avc_has_perm(&selinux_state, in selinux_task_setnice()
4065 return avc_has_perm(&selinux_state, in selinux_task_setioprio()
4072 return avc_has_perm(&selinux_state, in selinux_task_getioprio()
4088 return avc_has_perm(&selinux_state, in selinux_task_prlimit()
4103 return avc_has_perm(&selinux_state, in selinux_task_setrlimit()
4112 return avc_has_perm(&selinux_state, in selinux_task_setscheduler()
4119 return avc_has_perm(&selinux_state, in selinux_task_getscheduler()
4126 return avc_has_perm(&selinux_state, in selinux_task_movememory()
4145 return avc_has_perm(&selinux_state, in selinux_task_kill()
4417 err = security_net_peersid_resolve(&selinux_state, nlbl_sid, in selinux_skb_peerlbl_sid()
4446 err = security_sid_mls_copy(&selinux_state, sk_sid, skb_sid, in selinux_conn_sid()
4464 return security_transition_sid(&selinux_state, tsec->sid, tsec->sid, in socket_sockcreate_sid()
4481 return avc_has_perm(&selinux_state, in sock_has_perm()
4502 return avc_has_perm(&selinux_state, in selinux_socket_create()
4632 err = avc_has_perm(&selinux_state, in selinux_socket_bind()
4672 err = avc_has_perm(&selinux_state, in selinux_socket_bind()
4771 err = avc_has_perm(&selinux_state, in selinux_socket_connect_helper()
4884 err = avc_has_perm(&selinux_state, in selinux_socket_unix_stream_connect()
4893 err = security_sid_mls_copy(&selinux_state, sksec_other->sid, in selinux_socket_unix_stream_connect()
4916 return avc_has_perm(&selinux_state, in selinux_socket_unix_may_send()
4932 err = avc_has_perm(&selinux_state, in selinux_inet_sys_rcv_skb()
4941 return avc_has_perm(&selinux_state, in selinux_inet_sys_rcv_skb()
4965 err = avc_has_perm(&selinux_state, in selinux_sock_rcv_skb_compat()
5031 err = avc_has_perm(&selinux_state, in selinux_socket_sock_rcv_skb()
5041 err = avc_has_perm(&selinux_state, in selinux_socket_sock_rcv_skb()
5067 err = security_sid_to_context(&selinux_state, peer_sid, &scontext, in selinux_socket_getpeersec_stream()
5225 err = avc_has_perm(&selinux_state, in selinux_sctp_assoc_request()
5407 return avc_has_perm(&selinux_state, in selinux_secmark_relabel_packet()
5457 return avc_has_perm(&selinux_state, in selinux_tun_dev_create()
5466 return avc_has_perm(&selinux_state, in selinux_tun_dev_attach_queue()
5495 err = avc_has_perm(&selinux_state, in selinux_tun_dev_open()
5500 err = avc_has_perm(&selinux_state, in selinux_tun_dev_open()
5532 if (!enforcing_enabled(&selinux_state) || in selinux_nlmsg_perm()
5533 security_get_allow_unknown(&selinux_state)) in selinux_nlmsg_perm()
5592 if (avc_has_perm(&selinux_state, in selinux_ip_forward()
5705 if (avc_has_perm(&selinux_state, in selinux_ip_postroute_compat()
5829 if (avc_has_perm(&selinux_state, in selinux_ip_postroute()
5840 if (avc_has_perm(&selinux_state, in selinux_ip_postroute()
5847 if (avc_has_perm(&selinux_state, in selinux_ip_postroute()
5907 return avc_has_perm(&selinux_state, in ipc_has_perm()
5930 rc = avc_has_perm(&selinux_state, in selinux_msg_queue_alloc_security()
5947 return avc_has_perm(&selinux_state, in selinux_msg_queue_associate()
5961 return avc_has_perm(&selinux_state, in selinux_msg_queue_msgctl()
6002 rc = security_transition_sid(&selinux_state, sid, isec->sid, in selinux_msg_queue_msgsnd()
6012 rc = avc_has_perm(&selinux_state, in selinux_msg_queue_msgsnd()
6017 rc = avc_has_perm(&selinux_state, in selinux_msg_queue_msgsnd()
6022 rc = avc_has_perm(&selinux_state, in selinux_msg_queue_msgsnd()
6045 rc = avc_has_perm(&selinux_state, in selinux_msg_queue_msgrcv()
6049 rc = avc_has_perm(&selinux_state, in selinux_msg_queue_msgrcv()
6069 rc = avc_has_perm(&selinux_state, in selinux_shm_alloc_security()
6086 return avc_has_perm(&selinux_state, in selinux_shm_associate()
6101 return avc_has_perm(&selinux_state, in selinux_shm_shmctl()
6154 rc = avc_has_perm(&selinux_state, in selinux_sem_alloc_security()
6171 return avc_has_perm(&selinux_state, in selinux_sem_associate()
6186 return avc_has_perm(&selinux_state, in selinux_sem_semctl()
6274 error = avc_has_perm(&selinux_state, in selinux_getprocattr()
6302 error = security_sid_to_context(&selinux_state, sid, value, &len); in selinux_getprocattr()
6324 error = avc_has_perm(&selinux_state, in selinux_setprocattr()
6328 error = avc_has_perm(&selinux_state, in selinux_setprocattr()
6332 error = avc_has_perm(&selinux_state, in selinux_setprocattr()
6336 error = avc_has_perm(&selinux_state, in selinux_setprocattr()
6340 error = avc_has_perm(&selinux_state, in selinux_setprocattr()
6354 error = security_context_to_sid(&selinux_state, value, size, in selinux_setprocattr()
6377 &selinux_state, in selinux_setprocattr()
6401 error = avc_has_perm(&selinux_state, mysid, sid, in selinux_setprocattr()
6417 error = security_bounded_transition(&selinux_state, in selinux_setprocattr()
6424 error = avc_has_perm(&selinux_state, in selinux_setprocattr()
6434 error = avc_has_perm(&selinux_state, in selinux_setprocattr()
6462 return security_sid_to_context(&selinux_state, secid, in selinux_secid_to_secctx()
6468 return security_context_to_sid(&selinux_state, secdata, seclen, in selinux_secctx_to_secid()
6564 return avc_has_perm(&selinux_state, in selinux_key_permission()
6575 rc = security_sid_to_context(&selinux_state, ksec->sid, in selinux_key_getsecurity()
6601 return avc_has_perm(&selinux_state, in selinux_ib_pkey_access()
6616 err = security_ib_endport_sid(&selinux_state, dev_name, port_num, in selinux_ib_endport_manage_subnet()
6626 return avc_has_perm(&selinux_state, in selinux_ib_endport_manage_subnet()
6660 ret = avc_has_perm(&selinux_state, in selinux_bpf()
6665 ret = avc_has_perm(&selinux_state, in selinux_bpf()
6706 ret = avc_has_perm(&selinux_state, in bpf_fd_pass()
6714 ret = avc_has_perm(&selinux_state, in bpf_fd_pass()
6729 return avc_has_perm(&selinux_state, in selinux_bpf_map()
6740 return avc_has_perm(&selinux_state, in selinux_bpf_prog()
7039 memset(&selinux_state, 0, sizeof(selinux_state)); in selinux_init()
7040 enforcing_set(&selinux_state, selinux_enforcing_boot); in selinux_init()
7041 selinux_state.checkreqprot = selinux_checkreqprot_boot; in selinux_init()
7042 selinux_ss_init(&selinux_state.ss); in selinux_init()
7043 selinux_avc_init(&selinux_state.avc); in selinux_init()
7195 int selinux_disable(struct selinux_state *state) in selinux_disable()