Bug 985856
Summary: | Can't set acl value for a specified user with 'acl-set-file' | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | bfan |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | leiwang, wshi |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.22.4-2.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 985269 | Environment: | |
Last Closed: | 2014-06-13 10:15:45 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: | |||
Bug Depends On: | 985269 | ||
Bug Blocks: |
Description
bfan
2013-07-18 11:34:29 UTC
Verified with libguestfs-1.22.6-17.el7.x86_64 # cat test.sh guestfish -x -N fs:ext4 -m /dev/sda1:/:acl <<EOF mkdir /testdir touch /testfile acl-set-file /testdir access u::rwx,g::rwx,o::rwx,m::rwx,u:500:rwx acl-set-file /testfile access u::rwx,g::rwx,o::rwx,m::rwx,u:500:rwx acl-set-file /testdir access u::rwx,g::rwx,o::rwx,m::rwx,u:root:rwx acl-set-file /testfile access u::rwx,g::rwx,o::rwx,m::rwx,u:root:rwx # notauser doesn't exist, so we expect a real error. -acl-set-file /testdir access u:notauser:rwx,g::rwx,o::rwx EOF # bash test.sh == Output == libguestfs: trace: acl_set_file "/testdir" "access" "u::rwx,g::rwx,o::rwx,m::rwx,u:500:rwx" libguestfs: trace: acl_set_file = 0 libguestfs: trace: acl_set_file "/testfile" "access" "u::rwx,g::rwx,o::rwx,m::rwx,u:500:rwx" libguestfs: trace: acl_set_file = 0 libguestfs: trace: acl_set_file "/testdir" "access" "u::rwx,g::rwx,o::rwx,m::rwx,u:root:rwx" libguestfs: trace: acl_set_file = 0 libguestfs: trace: acl_set_file "/testfile" "access" "u::rwx,g::rwx,o::rwx,m::rwx,u:root:rwx" libguestfs: trace: acl_set_file = 0 libguestfs: trace: acl_set_file "/testdir" "access" "u:notauser:rwx,g::rwx,o::rwx" libguestfs: trace: acl_set_file = -1 (error) *stdin*:11: libguestfs: error: acl_set_file: could not parse acl string: u:notauser:rwx,g::rwx,o::rwx: acl_from_text: Success libguestfs: trace: shutdown libguestfs: trace: internal_autosync libguestfs: trace: internal_autosync = 0 libguestfs: trace: shutdown = 0 libguestfs: trace: close And also updated document of command "acl-set-file" This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |