Lines Matching refs:avc_has_perm
429 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
434 rc = avc_has_perm(tsec->sid, sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
445 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_inode_relabel()
450 rc = avc_has_perm(sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_inode_relabel()
1669 return avc_has_perm(sid, isec->sid, isec->sclass, perms, adp); in inode_has_perm()
1742 rc = avc_has_perm(sid, fsec->sid, in file_has_perm()
1813 rc = avc_has_perm(sid, dsec->sid, SECCLASS_DIR, in may_create()
1824 rc = avc_has_perm(sid, newsid, tclass, FILE__CREATE, &ad); in may_create()
1828 return avc_has_perm(newsid, sbsec->sid, in may_create()
1857 rc = avc_has_perm(sid, dsec->sid, SECCLASS_DIR, av, &ad); in may_link()
1877 rc = avc_has_perm(sid, isec->sid, isec->sclass, av, &ad); in may_link()
1901 rc = avc_has_perm(sid, old_dsec->sid, SECCLASS_DIR, in may_rename()
1905 rc = avc_has_perm(sid, old_isec->sid, in may_rename()
1910 rc = avc_has_perm(sid, old_isec->sid, in may_rename()
1920 rc = avc_has_perm(sid, new_dsec->sid, SECCLASS_DIR, av, &ad); in may_rename()
1926 rc = avc_has_perm(sid, new_isec->sid, in may_rename()
1946 return avc_has_perm(sid, sbsec->sid, SECCLASS_FILESYSTEM, perms, ad); in superblock_has_perm()
2020 return avc_has_perm(current_sid(), cred_sid(mgr), SECCLASS_BINDER, in selinux_binder_set_context_mgr()
2033 rc = avc_has_perm(mysid, fromsid, SECCLASS_BINDER, in selinux_binder_transaction()
2039 return avc_has_perm(fromsid, tosid, in selinux_binder_transaction()
2046 return avc_has_perm(cred_sid(from), cred_sid(to), in selinux_binder_transfer_binder()
2066 rc = avc_has_perm(sid, fsec->sid, in selinux_binder_transfer_file()
2084 return avc_has_perm(sid, isec->sid, isec->sclass, file_to_av(file), in selinux_binder_transfer_file()
2095 return avc_has_perm(sid, csid, SECCLASS_FILE, FILE__READ, in selinux_ptrace_access_check()
2098 return avc_has_perm(sid, csid, SECCLASS_PROCESS, PROCESS__PTRACE, in selinux_ptrace_access_check()
2104 return avc_has_perm(task_sid_obj(parent), task_sid_obj(current), in selinux_ptrace_traceme()
2111 return avc_has_perm(current_sid(), task_sid_obj(target), in selinux_capget()
2120 return avc_has_perm(cred_sid(old), cred_sid(new), SECCLASS_PROCESS, in selinux_capset()
2187 return avc_has_perm(current_sid(), SECINITSID_KERNEL, in selinux_syslog()
2193 return avc_has_perm(current_sid(), SECINITSID_KERNEL, in selinux_syslog()
2198 return avc_has_perm(current_sid(), SECINITSID_KERNEL, in selinux_syslog()
2265 rc = avc_has_perm(old_tsec->sid, new_tsec->sid, in check_nnp_nosuid()
2346 rc = avc_has_perm(old_tsec->sid, isec->sid, in selinux_bprm_creds_for_exec()
2352 rc = avc_has_perm(old_tsec->sid, new_tsec->sid, in selinux_bprm_creds_for_exec()
2357 rc = avc_has_perm(new_tsec->sid, isec->sid, in selinux_bprm_creds_for_exec()
2364 rc = avc_has_perm(old_tsec->sid, new_tsec->sid, in selinux_bprm_creds_for_exec()
2376 rc = avc_has_perm(ptsid, new_tsec->sid, in selinux_bprm_creds_for_exec()
2390 rc = avc_has_perm(old_tsec->sid, new_tsec->sid, in selinux_bprm_creds_for_exec()
2482 rc = avc_has_perm(new_tsec->osid, new_tsec->sid, SECCLASS_PROCESS, in selinux_bprm_committing_creds()
2521 rc = avc_has_perm(osid, sid, SECCLASS_PROCESS, PROCESS__SIGINH, NULL); in selinux_bprm_committed_creds()
2994 return avc_has_perm(tsec->sid, in selinux_inode_init_security_anon()
3064 return avc_has_perm(sid, isec->sid, isec->sclass, FILE__READ, &ad); in selinux_inode_follow_link()
3204 rc = avc_has_perm(sid, isec->sid, isec->sclass, in selinux_inode_setxattr()
3244 rc = avc_has_perm(sid, newsid, isec->sclass, in selinux_inode_setxattr()
3254 return avc_has_perm(newsid, in selinux_inode_setxattr()
3663 rc = avc_has_perm(ssid, fsec->sid, in ioctl_has_perm()
3771 rc = avc_has_perm(sid, sid, SECCLASS_PROCESS, in file_map_prot_check()
3801 rc = avc_has_perm(sid, sid, SECCLASS_MEMPROTECT, in selinux_mmap_addr()
3849 rc = avc_has_perm(sid, sid, SECCLASS_PROCESS, in selinux_file_mprotect()
3853 rc = avc_has_perm(sid, sid, SECCLASS_PROCESS, in selinux_file_mprotect()
3945 return avc_has_perm(fsec->fown_sid, sid, in selinux_file_send_sigiotask()
3990 return avc_has_perm(sid, sid, SECCLASS_PROCESS, PROCESS__FORK, NULL); in selinux_task_alloc()
4032 ret = avc_has_perm(sid, secid, in selinux_kernel_act_as()
4056 ret = avc_has_perm(sid, isec->sid, in selinux_kernel_create_files_as()
4073 return avc_has_perm(current_sid(), SECINITSID_KERNEL, SECCLASS_SYSTEM, in selinux_kernel_module_request()
4087 return avc_has_perm(sid, sid, SECCLASS_SYSTEM, in selinux_kernel_module_from_file()
4097 rc = avc_has_perm(sid, fsec->sid, SECCLASS_FD, FD__USE, &ad); in selinux_kernel_module_from_file()
4103 return avc_has_perm(sid, isec->sid, SECCLASS_SYSTEM, in selinux_kernel_module_from_file()
4141 return avc_has_perm(current_sid(), task_sid_obj(p), SECCLASS_PROCESS, in selinux_task_setpgid()
4147 return avc_has_perm(current_sid(), task_sid_obj(p), SECCLASS_PROCESS, in selinux_task_getpgid()
4153 return avc_has_perm(current_sid(), task_sid_obj(p), SECCLASS_PROCESS, in selinux_task_getsid()
4169 return avc_has_perm(current_sid(), task_sid_obj(p), SECCLASS_PROCESS, in selinux_task_setnice()
4175 return avc_has_perm(current_sid(), task_sid_obj(p), SECCLASS_PROCESS, in selinux_task_setioprio()
4181 return avc_has_perm(current_sid(), task_sid_obj(p), SECCLASS_PROCESS, in selinux_task_getioprio()
4196 return avc_has_perm(cred_sid(cred), cred_sid(tcred), in selinux_task_prlimit()
4210 return avc_has_perm(current_sid(), task_sid_obj(p), in selinux_task_setrlimit()
4218 return avc_has_perm(current_sid(), task_sid_obj(p), SECCLASS_PROCESS, in selinux_task_setscheduler()
4224 return avc_has_perm(current_sid(), task_sid_obj(p), SECCLASS_PROCESS, in selinux_task_getscheduler()
4230 return avc_has_perm(current_sid(), task_sid_obj(p), SECCLASS_PROCESS, in selinux_task_movememory()
4248 return avc_has_perm(secid, task_sid_obj(p), SECCLASS_PROCESS, perm, NULL); in selinux_task_kill()
4268 return avc_has_perm(sid, sid, SECCLASS_USER_NAMESPACE, in selinux_userns_create()
4589 return avc_has_perm(current_sid(), sksec->sid, sksec->sclass, perms, in sock_has_perm()
4609 return avc_has_perm(tsec->sid, newsid, secclass, SOCKET__CREATE, NULL); in selinux_socket_create()
4745 err = avc_has_perm(sksec->sid, sid, in selinux_socket_bind()
4784 err = avc_has_perm(sksec->sid, sid, in selinux_socket_bind()
4882 err = avc_has_perm(sksec->sid, sid, sksec->sclass, perm, &ad); in selinux_socket_connect_helper()
4992 err = avc_has_perm(sksec_sock->sid, sksec_other->sid, in selinux_socket_unix_stream_connect()
5021 return avc_has_perm(ssec->sid, osec->sid, osec->sclass, SOCKET__SENDTO, in selinux_socket_unix_may_send()
5036 err = avc_has_perm(peer_sid, if_sid, in selinux_inet_sys_rcv_skb()
5044 return avc_has_perm(peer_sid, node_sid, in selinux_inet_sys_rcv_skb()
5064 err = avc_has_perm(sk_sid, skb->secmark, SECCLASS_PACKET, in selinux_sock_rcv_skb_compat()
5124 err = avc_has_perm(sk_sid, peer_sid, SECCLASS_PEER, in selinux_socket_sock_rcv_skb()
5133 err = avc_has_perm(sk_sid, skb->secmark, SECCLASS_PACKET, in selinux_socket_sock_rcv_skb()
5314 err = avc_has_perm(sksec->peer_sid, asoc->peer_secid, in selinux_sctp_process_new_assoc()
5550 return avc_has_perm(tsid, sid, SECCLASS_PACKET, PACKET__RELABELTO, in selinux_secmark_relabel_packet()
5599 return avc_has_perm(sid, sid, SECCLASS_TUN_SOCKET, TUN_SOCKET__CREATE, in selinux_tun_dev_create()
5607 return avc_has_perm(current_sid(), tunsec->sid, SECCLASS_TUN_SOCKET, in selinux_tun_dev_attach_queue()
5635 err = avc_has_perm(sid, tunsec->sid, SECCLASS_TUN_SOCKET, in selinux_tun_dev_open()
5639 err = avc_has_perm(sid, sid, SECCLASS_TUN_SOCKET, in selinux_tun_dev_open()
5690 if (avc_has_perm(peer_sid, skb->secmark, in selinux_ip_forward()
5767 if (avc_has_perm(sksec->sid, skb->secmark, in selinux_ip_postroute_compat()
5889 if (avc_has_perm(peer_sid, skb->secmark, in selinux_ip_postroute()
5899 if (avc_has_perm(peer_sid, if_sid, in selinux_ip_postroute()
5905 if (avc_has_perm(peer_sid, node_sid, in selinux_ip_postroute()
5990 return avc_has_perm(sid, isec->sid, isec->sclass, perms, &ad); in ipc_has_perm()
6016 return avc_has_perm(sid, isec->sid, SECCLASS_MSGQ, in selinux_msg_queue_alloc_security()
6031 return avc_has_perm(sid, isec->sid, SECCLASS_MSGQ, in selinux_msg_queue_associate()
6043 return avc_has_perm(current_sid(), SECINITSID_KERNEL, in selinux_msg_queue_msgctl()
6092 rc = avc_has_perm(sid, isec->sid, SECCLASS_MSGQ, in selinux_msg_queue_msgsnd()
6096 rc = avc_has_perm(sid, msec->sid, SECCLASS_MSG, in selinux_msg_queue_msgsnd()
6100 rc = avc_has_perm(msec->sid, isec->sid, SECCLASS_MSGQ, in selinux_msg_queue_msgsnd()
6122 rc = avc_has_perm(sid, isec->sid, in selinux_msg_queue_msgrcv()
6125 rc = avc_has_perm(sid, msec->sid, in selinux_msg_queue_msgrcv()
6143 return avc_has_perm(sid, isec->sid, SECCLASS_SHM, in selinux_shm_alloc_security()
6158 return avc_has_perm(sid, isec->sid, SECCLASS_SHM, in selinux_shm_associate()
6171 return avc_has_perm(current_sid(), SECINITSID_KERNEL, in selinux_shm_shmctl()
6221 return avc_has_perm(sid, isec->sid, SECCLASS_SEM, in selinux_sem_alloc_security()
6236 return avc_has_perm(sid, isec->sid, SECCLASS_SEM, in selinux_sem_associate()
6250 return avc_has_perm(current_sid(), SECINITSID_KERNEL, in selinux_sem_semctl()
6337 error = avc_has_perm(current_sid(), __tsec->sid, in selinux_getprocattr()
6386 error = avc_has_perm(mysid, mysid, SECCLASS_PROCESS, in selinux_setprocattr()
6389 error = avc_has_perm(mysid, mysid, SECCLASS_PROCESS, in selinux_setprocattr()
6392 error = avc_has_perm(mysid, mysid, SECCLASS_PROCESS, in selinux_setprocattr()
6395 error = avc_has_perm(mysid, mysid, SECCLASS_PROCESS, in selinux_setprocattr()
6398 error = avc_has_perm(mysid, mysid, SECCLASS_PROCESS, in selinux_setprocattr()
6459 error = avc_has_perm(mysid, sid, in selinux_setprocattr()
6480 error = avc_has_perm(tsec->sid, sid, SECCLASS_PROCESS, in selinux_setprocattr()
6489 error = avc_has_perm(ptsid, sid, SECCLASS_PROCESS, in selinux_setprocattr()
6642 return avc_has_perm(sid, ksec->sid, SECCLASS_KEY, perm, NULL); in selinux_key_permission()
6666 return avc_has_perm(sid, ksec->sid, SECCLASS_KEY, KEY__VIEW, NULL); in selinux_watch_key()
6688 return avc_has_perm(sec->sid, sid, in selinux_ib_pkey_access()
6712 return avc_has_perm(sec->sid, sid, in selinux_ib_endport_manage_subnet()
6745 ret = avc_has_perm(sid, sid, SECCLASS_BPF, BPF__MAP_CREATE, in selinux_bpf()
6749 ret = avc_has_perm(sid, sid, SECCLASS_BPF, BPF__PROG_LOAD, in selinux_bpf()
6789 ret = avc_has_perm(sid, bpfsec->sid, SECCLASS_BPF, in bpf_fd_pass()
6796 ret = avc_has_perm(sid, bpfsec->sid, SECCLASS_BPF, in bpf_fd_pass()
6810 return avc_has_perm(sid, bpfsec->sid, SECCLASS_BPF, in selinux_bpf_map()
6820 return avc_has_perm(sid, bpfsec->sid, SECCLASS_BPF, in selinux_bpf_prog()
6895 return avc_has_perm(sid, sid, SECCLASS_PERF_EVENT, in selinux_perf_event_open()
6926 return avc_has_perm(sid, perfsec->sid, in selinux_perf_event_read()
6935 return avc_has_perm(sid, perfsec->sid, in selinux_perf_event_write()
6950 return avc_has_perm(current_sid(), cred_sid(new), in selinux_uring_override_creds()
6964 return avc_has_perm(sid, sid, in selinux_uring_sqpoll()
6986 return avc_has_perm(current_sid(), isec->sid, in selinux_uring_cmd()