Harden our copy of Glance's policy
Harden our copy of Glance's policy

Most of Glance's current checks are implemented in the API controllers
but in Kilo, Glance added the ability to actually define meaningful
policy rules around images and image members. In an effort to harden
our default config as best as we can, we should check to see if the
user trying to perform some of these actions are either an admin or the
owner of the image.

Change-Id: I2dcf4d828c9be88143174de30a6b59d655ab0539
Closes-bug: 1408363

sigmavirus24/os-ansible-deployment,miguelgrinberg/os-ansible-deployment,AlphaStaxLLC/os-ansible-deployment,bunchc/openstack-ansible,stackforge/os-ansible-deployment,major/openstack-ansible,BjoernT/openstack-ansible,Logan2211/openstack-ansible,open-switch/infra_openstack-ansible,wenhuizhang/os-ansible-deployment,weezer/openstack-ansible,yanyao/newton,yanyao/openstack-ansible,dhanunjaya/os-ansible-deployment,pombredanne/os-ansible-deployment,dhanunjaya/os-ansible-deployment,cloudnull/os-ansible-deployment,yanyao/newton,mancdaz/openstack-ansible,AlphaStaxLLC/os-ansible-deployment,sacharya/os-ansible-deployment,sacharya/os-ansible-deployment,major/os-ansible-deployment,jpmontez/openstack-ansible,manuelfelipe/openstack-ansible,miguelgrinberg/os-ansible-deployment,major/os-ansible-deployment,mrda/openstack-ansible,cloudnull/os-ansible-deployment,sigmavirus24/openstack-ansible,achekunov/openstack-ansible,sti-jans/openstack-ansible,sigmavirus24/openstack-ansible,BjoernT/os-ansible-deployment,yanyao/openstack-ansible,shane-c/openstack-ansible,stackforge/os-ansible-deployment,robb-romans/openstack-ansible,Logan2211/openstack-ansible,antonym/openstack-ansible,bunchc/openstack-ansible,jpmontez/os-ansible-deployment,sti-jans/openstack-ansible,pombredanne/os-ansible-deployment,d34dh0r53/os-ansible-deployment,jpmontez/openstack-ansible,open-switch/infra_openstack-ansible,git-harry/os-ansible-deployment,sigmavirus24/os-ansible-deployment,shane-c/openstack-ansible,robb-romans/openstack-ansible,sti-jans/openstack-ansible,BjoernT/os-ansible-deployment,yanyao/openstack-deployment-liberty,cfarquhar/openstack-ansible,antonym/openstack-ansible,jpmontez/os-ansible-deployment,BjoernT/openstack-ansible,d34dh0r53/os-ansible-deployment,wenhuizhang/os-ansible-deployment,manuelfelipe/openstack-ansible,BjoernT/os-ansible-deployment,mrda/openstack-ansible,openstack/openstack-ansible,manuelfelipe/openstack-ansible,achekunov/openstack-ansible,achekunov/openstack-ansible,jpmontez/os-ansible-deployment,jpmontez/openstack-ansible,git-harry/os-ansible-deployment,shane-c/openstack-ansible,AlphaStaxLLC/os-ansible-deployment,antonym/openstack-ansible,pombredanne/os-ansible-deployment,open-switch/infra_openstack-ansible,yanyao/openstack-deployment-liberty,cfarquhar/openstack-ansible,yanyao/openstack-deployment-liberty,git-harry/os-ansible-deployment,os-cloud/os-ansible-deployment,mancdaz/openstack-ansible,weezer/openstack-ansible,mrda/openstack-ansible,openstack/openstack-ansible,os-cloud/os-ansible-deployment,major/openstack-ansible