函数源码 |
Source File:security\selinux\selinuxfs.c |
Create Date:2022-07-27 20:35:49 |
首页 | Copyright©Brick |
439 440 441 442 443 444 445 446 447 448 449 450 451 452 | static ssize_t sel_read_policy( struct file *filp, char __user *buf, size_t count, loff_t *ppos) { struct policy_load_memory *plm = filp->private_data; int ret; ret = avc_has_perm(&selinux_state, current_sid(), SECINITSID_SECURITY, SECCLASS_SECURITY, SECURITY__READ_POLICY, NULL); if (ret) return ret; return simple_read_from_buffer(buf, count, ppos, plm->data, plm->len); } |