]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Fixed several bugs in policies related to IP Addresses.
authorJohn Gibson <jgibson@mitre.org>
Sun, 24 Dec 2017 20:44:54 +0000 (15:44 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Sun, 7 Jan 2018 10:12:55 +0000 (05:12 -0500)
commit9f7aeb4bd52bbdaef4ffd0127b38c3084e95a706
treedb3084c268eea566e8dbeac57a25701c02fbee25
parent5fbb50c1880b0dafc64892e0c23d188c2eccbec7
rgw: Fixed several bugs in policies related to IP Addresses.

Comparisons of two individual IP addresses caused an assertion error.
The text conversion of IPv4 addresses was using raw byte values instead of
the converted number.
NotIpAddress condition now works with multiple values.

http://tracker.ceph.com/issues/20991

Signed-off-by: John Gibson <jgibson@mitre.org>
(cherry picked from commit ca21596c95aa3871d14ac9112840d3b1101a8635)
src/rgw/rgw_iam_policy.cc
src/rgw/rgw_iam_policy.h