search for: ioport_has_perm

Displaying 1 result from an estimated 1 matches for "ioport_has_perm".

2011 Nov 21
0
[PATCH] xsm/flask: fix resource list range checks
...+ return security_iterate_iomem_sids(start, end, _iomem_has_perm, &data); } static int flask_perfcontrol(void) @@ -736,45 +741,49 @@ static int flask_shadow_control(struct domain *d, uint32_t op) return domain_has_perm(current->domain, d, SECCLASS_SHADOW, perm); } -static int ioport_has_perm(struct domain *d, uint32_t ioport, uint8_t access) -{ +struct ioport_has_perm_data { + struct domain_security_struct *ssec, *tsec; u32 perm; - u32 rsid; - int rc = -EPERM; +}; +static int _ioport_has_perm(void *v, u32 sid, unsigned long start, unsigned long end) +{ + struct iopor...