Bug 1161358
Summary: | [ACL] polkit: wrong attribute name 'interface_mac' for network interface in the documentation | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | vivian zhang <vivianzhang> |
Component: | libvirt | Assignee: | Pavel Hrdina <phrdina> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | dyuan, eblake, mzhan, phrdina, rbalakri, ydu, zhwang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.8-9.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 07:47:10 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
vivian zhang
2014-11-07 01:50:19 UTC
Fix upstream: commit d53d52d4c0299f5161bdeeccc925169d68ac990f Author: Luyao Huang <lhuang> Date: Fri Nov 7 17:35:33 2014 +0800 doc: fix mismatched ACL attribute name As documented in https://bugzilla.redhat.com/show_bug.cgi?id=1161358, the ACL attribute should be named: interface_macaddr Signed-off-by: Luyao Huang <lhuang> Signed-off-by: Eric Blake <eblake> As the commit in comment 2 shows there is wrong attribute name in the documentation so it should be 'interface_macaddr' instead of 'interface_mac' so the polkit behaves correctly. I've updated the bug summary and will backport the patch to fix the documentation. I can reproduce this issue with comment0's steps with libvirt-1.2.8-5.el7.x86_64, and the issue has gone while update the libvirt to libvirt-1.2.8-9.el7. however i have another doubt that why we change the error info in rhel7.1 while the user didn't have permision to excute one api, i found it more readable in rhel7.0, I'm a little confused about it, can you give us some explanation? thanks The following was an example while user didn't have permission to edit the guest's xml (need 3 permissions: write+save+read-secureļ¼; From the rhel7.0's error info we could know which specific permission the user need while the user fail to operate the api, however the rhel7.1 isn't as clear as the rhel7.0 In rhel7.0, we will have 3 different errors info while fail to edit the guest's xml 2014-12-01 07:23:11.730+0000: 29336: error : virAccessDriverPolkitCheck:177 : access denied: Policy kit denied action org.libvirt.api.domain.read-secure from 5437,522450,1008: exit status 1 2014-12-01 07:23:11.730+0000: 29336: error : virAccessManagerSanitizeError:203 : access denied 2014-12-01 07:23:11.730+0000: 29336: error : virAccessManagerSanitizeError:203 : access denied 2014-12-01 07:23:43.957+0000: 29344: error : virAccessDriverPolkitCheck:177 : access denied: Policy kit denied action org.libvirt.api.domain.write from 5437,522450,1008: exit status 1 2014-12-01 07:23:43.957+0000: 29344: error : virAccessManagerSanitizeError:203 : access denied 2014-12-01 07:23:43.957+0000: 29344: error : virAccessManagerSanitizeError:203 : access denied 2014-12-01 07:24:07.936+0000: 29339: error : virAccessDriverPolkitCheck:177 : access denied: Policy kit denied action org.libvirt.api.domain.save from 5437,522450,1008: exit status 1 2014-12-01 07:24:07.936+0000: 29339: error : virAccessManagerSanitizeError:203 : access denied 2014-12-01 07:24:07.936+0000: 29339: error : virAccessManagerSanitizeError:203 : access denied In rhel7.1, it will only report the following 2 errors while user didn't have permission to operate that api 2014-12-01 06:58:52.597+0000: 27140: error : virDomainGetXMLDescEnsureACL:2925 : access denied 2014-12-01 07:09:07.534+0000: 27146: error : virDomainDefineXMLEnsureACL:2131 : access denied I could see more details about the acl permission deny while set the log_level=1, please ignore the comment6's issue, since all issues in this bug has been fixed, so mark this bug verifed Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0323.html |