Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:56:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_nnp_nosuid
Proto:static int check_nnp_nosuid(const struct linux_binprm *bprm, const struct task_security_struct *old_tsec, const struct task_security_struct *new_tsec)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct linux_binprm * | bprm | |
const struct task_security_struct * | old_tsec | |
const struct task_security_struct * | new_tsec |
2280 | nosuid = Not mnt_may_suid(mnt) |
2287 | If current SID == current SID Then Return 0 |
2296 | If selinux_policycap_nnp_nosuid_transition() Then |
2297 | av = 0 |
2298 | If nnp Then av |= PROCESS2__NNP_TRANSITION |
2300 | If nosuid Then av |= PROCESS2__NOSUID_TRANSITION |
2305 | If Not rc Then Return 0 |
2314 | rc = security_bounded_transition( & selinux_state, current SID , current SID ) |
2316 | If Not rc Then Return 0 |
2326 | Return -EACCES |
Name | Describe |
---|---|
selinux_bprm_set_creds |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |