]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix the condition of authenticated user's permit check 6562/head
authorZengran Zhang <zhangzengran@h3c.com>
Mon, 1 Feb 2016 04:58:58 +0000 (23:58 -0500)
committerZengran Zhang <zhangzengran@h3c.com>
Mon, 1 Feb 2016 04:58:58 +0000 (23:58 -0500)
commit3e469f6d337d1046f34af5dd00ae3d3dfcc375bf
tree30dd6a5f9a4a057201e11c70fbe895f42f308ca8
parent64fbda8371b424f6681b6cb2c8884c37f06780bf
rgw: fix the condition of authenticated user's permit check

before fix:
put a bucket under one user with authenticated-read permit
> ./s3curl.pl http://myobs.com/mybucket --put --H "x-amz-acl: authenticated-read"
GET the bucket with anonymous user
> curl http://myobs.com/mybucket -X GET

> successed!

after fix:
anonymous cant GET the authenticated-read bucket
other users who authenticated could GET it

Signed-off-by: Zengran Zhang <zhangzengran@h3c.com>
src/rgw/rgw_acl.cc