| /f-stack/freebsd/security/mac/ |
| H A D | mac_priv.c | 63 MAC_CHECK_PROBE_DEFINE2(priv_check, "struct ucred *", "int"); 74 MAC_POLICY_CHECK_NOSLEEP(priv_check, cred, priv); in mac_priv_check_impl() 75 MAC_CHECK_PROBE2(priv_check, error, cred, priv); in mac_priv_check_impl()
|
| H A D | mac_framework.c | 134 FPFLAG(priv_check); 422 { .offset = FPO(priv_check), .flag = &mac_priv_check_fp_flag },
|
| /f-stack/freebsd/kern/ |
| H A D | kern_priv.c | 98 SDT_PROBE_DEFINE1(priv, kernel, priv_check, priv__ok, "int"); 99 SDT_PROBE_DEFINE1(priv, kernel, priv_check, priv__err, "int"); 139 SDT_PROBE1(priv, kernel, priv_check, priv__err, priv); in priv_check_cred_post() 141 SDT_PROBE1(priv, kernel, priv_check, priv__ok, priv); in priv_check_cred_post() 271 priv_check(struct thread *td, int priv) in priv_check() function
|
| H A D | sysv_ipc.c | 133 error = priv_check(td, PRIV_IPC_ADMIN); in ipcperm() 139 error = priv_check(td, PRIV_IPC_READ); in ipcperm() 145 error = priv_check(td, PRIV_IPC_WRITE); in ipcperm()
|
| H A D | kern_loginclass.c | 215 error = priv_check(td, PRIV_PROC_SETLOGINCLASS); in sys_setloginclass()
|
| H A D | kern_prot.c | 1632 error = priv_check(td, PRIV_SCHED_DIFFCRED); in p_cansched() 1686 if ((error = priv_check(td, PRIV_DEBUG_UNPRIV))) in p_candebug() 1735 error = priv_check(td, PRIV_DEBUG_DIFFCRED); in p_candebug() 1741 error = priv_check(td, PRIV_DEBUG_SUGID); in p_candebug() 1765 error = priv_check(td, PRIV_DEBUG_DENIED); in p_candebug() 2375 error = priv_check(td, PRIV_PROC_SETLOGIN); in sys_setlogin()
|
| H A D | kern_resource.c | 279 if (n < p->p_nice && priv_check(td, PRIV_SCHED_SETPRIORITY) != 0) in donice() 356 error = priv_check(td, PRIV_SCHED_RTPRIO); in sys_rtprio_thread() 446 error = priv_check(td, PRIV_SCHED_RTPRIO); in sys_rtprio() 681 if ((error = priv_check(td, PRIV_PROC_SETRLIMIT))) { in kern_proc_setrlimit()
|
| H A D | kern_rctl.c | 1627 error = priv_check(td, PRIV_RCTL_GET_RACCT); in sys_rctl_get_racct() 1722 error = priv_check(td, PRIV_RCTL_GET_RULES); in sys_rctl_get_rules() 1807 error = priv_check(td, PRIV_RCTL_GET_LIMITS); in sys_rctl_get_limits() 1887 error = priv_check(td, PRIV_RCTL_ADD_RULE); in sys_rctl_add_rule() 1932 error = priv_check(td, PRIV_RCTL_REMOVE_RULE); in sys_rctl_remove_rule()
|
| H A D | kern_environment.c | 150 error = priv_check(td, PRIV_KENV_SET); 156 error = priv_check(td, PRIV_KENV_UNSET);
|
| H A D | tty.c | 318 if (tp->t_flags & TF_EXCLUDE && priv_check(td, PRIV_TTY_EXCLUSIVE)) { in ttydev_open() 872 error = priv_check(td, PRIV_TTY_SETA); in ttyil_ioctl() 1911 error = priv_check(td, PRIV_TTY_DRAINWAIT); in tty_generic_ioctl() 1918 error = priv_check(td, PRIV_TTY_CONSOLE); in tty_generic_ioctl() 1967 if ((fflag & FREAD) == 0 && priv_check(td, PRIV_TTY_STI)) in tty_generic_ioctl() 1970 priv_check(td, PRIV_TTY_STI)) in tty_generic_ioctl()
|
| H A D | p1003_1b.c | 240 error = priv_check(td, PRIV_SCHED_SET);
|
| H A D | kern_ntptime.c | 360 error = priv_check(td, PRIV_NTP_ADJTIME); in kern_ntp_adjtime() 1001 error = priv_check(td, PRIV_ADJTIME); in kern_adjtime()
|
| H A D | subr_firmware.c | 302 if (priv_check(td, PRIV_FIRMWARE_LOAD) != 0 || in firmware_get_flags()
|
| /f-stack/freebsd/security/audit/ |
| H A D | audit_syscalls.c | 79 error = priv_check(td, PRIV_AUDIT_SUBMIT); in sys_audit() 181 error = priv_check(td, PRIV_AUDIT_CONTROL); in sys_auditon() 600 error = priv_check(td, PRIV_AUDIT_GETAUDIT); in sys_getauid() 658 error = priv_check(td, PRIV_AUDIT_GETAUDIT); in sys_getaudit() 725 error = priv_check(td, PRIV_AUDIT_GETAUDIT); in sys_getaudit_addr() 787 error = priv_check(td, PRIV_AUDIT_CONTROL); in sys_auditctl()
|
| /f-stack/freebsd/netinet/ |
| H A D | raw_ip.c | 699 error = priv_check(curthread, PRIV_NETINET_MROUTE); in rip_ctloutput() 753 error = priv_check(curthread, PRIV_NETINET_MROUTE); in rip_ctloutput() 760 error = priv_check(curthread, PRIV_NETINET_MROUTE); in rip_ctloutput() 768 error = priv_check(curthread, PRIV_NETINET_MROUTE); in rip_ctloutput() 787 error = priv_check(curthread, PRIV_NETINET_MROUTE); in rip_ctloutput() 889 error = priv_check(td, PRIV_NETINET_RAW); in rip_attach()
|
| /f-stack/freebsd/net/ |
| H A D | if.c | 2580 error = priv_check(td, PRIV_NET_SETIFFIB); in ifhwioctl() 2628 error = priv_check(td, PRIV_NET_SETIFCAP); in ifhwioctl() 2647 error = priv_check(td, PRIV_NET_SETIFNAME); in ifhwioctl() 2712 error = priv_check(td, PRIV_NET_SETIFVNET); in ifhwioctl() 2728 error = priv_check(td, PRIV_NET_SETIFPHYS); in ifhwioctl() 2742 error = priv_check(td, PRIV_NET_SETIFMTU); in ifhwioctl() 2772 error = priv_check(td, PRIV_NET_ADDMULTI); in ifhwioctl() 2774 error = priv_check(td, PRIV_NET_DELMULTI); in ifhwioctl() 2818 error = priv_check(td, PRIV_NET_HWIOCTL); in ifhwioctl() 2843 error = priv_check(td, PRIV_NET_SETLLADDR); in ifhwioctl() [all …]
|
| H A D | raw_usrreq.c | 165 error = priv_check(td, PRIV_NET_RAW); in raw_uattach()
|
| H A D | if_gif.c | 645 if ((error = priv_check(curthread, PRIV_NET_GIF)) != 0) in gif_ioctl() 658 if ((error = priv_check(curthread, PRIV_NET_GIF)) != 0) in gif_ioctl()
|
| H A D | rss_config.c | 509 error = priv_check(req->td, PRIV_NETINET_HASHKEY); in sysctl_rss_key()
|
| H A D | if_gre.c | 292 if ((error = priv_check(curthread, PRIV_NET_GRE)) != 0) in gre_ioctl() 302 if ((error = priv_check(curthread, PRIV_NET_GRE)) != 0) in gre_ioctl()
|
| /f-stack/freebsd/sys/ |
| H A D | priv.h | 537 int priv_check(struct thread *td, int priv);
|
| /f-stack/freebsd/ddb/ |
| H A D | db_capture.c | 184 error = priv_check(req->td, PRIV_DDB_CAPTURE); in sysctl_debug_ddb_capture_data()
|
| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_freebsd.c | 87 return (priv_check(curthread, PRIV_NET80211_VAP_GETKEY)); in ieee80211_priv_check_vap_getkey() 95 return (priv_check(curthread, PRIV_NET80211_VAP_MANAGE)); in ieee80211_priv_check_vap_manage() 103 return (priv_check(curthread, PRIV_NET80211_VAP_SETMAC)); in ieee80211_priv_check_vap_setmac() 111 return (priv_check(curthread, PRIV_NET80211_CREATE_VAP)); in ieee80211_priv_check_create_vap()
|
| /f-stack/freebsd/netinet6/ |
| H A D | send.c | 90 error = priv_check(td, PRIV_NETINET_RAW); in send_attach()
|
| /f-stack/freebsd/amd64/linux/ |
| H A D | linux_machdep.c | 166 if ((error = priv_check(td, PRIV_IO)) != 0) in linux_iopl()
|