search for: iomem_has_perm

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

2011 Nov 21
0
[PATCH] xsm/flask: fix resource list range checks
...ns(+), 82 deletions(-) diff --git a/xen/xsm/flask/hooks.c b/xen/xsm/flask/hooks.c index e70feda..de7f249 100644 --- a/xen/xsm/flask/hooks.c +++ b/xen/xsm/flask/hooks.c @@ -664,42 +664,47 @@ static int irq_has_perm(struct domain *d, uint8_t pirq, uint8_t access) return rc; } -static int iomem_has_perm(struct domain *d, unsigned long mfn, uint8_t access) -{ +struct iomem_has_perm_data { + struct domain_security_struct *ssec, *tsec; u32 perm; - u32 rsid; - int rc = -EPERM; +}; - struct domain_security_struct *ssec, *tsec; +static int _iomem_has_perm(void *v, u32 sid, unsigned lo...