mirror of https://github.com/xemu-project/xemu.git
89 lines
3.1 KiB
Plaintext
89 lines
3.1 KiB
Plaintext
QA output created by fuse-allow-other
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=65536
|
|
|
|
=== Test permissions ===
|
|
|
|
--- allow-other=off ---
|
|
{'execute': 'qmp_capabilities'}
|
|
{"return": {}}
|
|
{'execute': 'block-export-add',
|
|
'arguments': {
|
|
'type': 'fuse',
|
|
'id': 'export',
|
|
'node-name': 'node-format',
|
|
'mountpoint': 'TEST_DIR/fuse-export',
|
|
'allow-other': 'off'
|
|
} }
|
|
{"return": {}}
|
|
(Removing all permissions)
|
|
Permissions post-chmod: 0
|
|
(Granting u+r)
|
|
Permissions post-chmod: 400
|
|
(Granting read permissions for everyone)
|
|
chmod: changing permissions of 'TEST_DIR/fuse-export': Operation not permitted
|
|
Permissions post-chmod: 400
|
|
Doing operations as nobody:
|
|
cat: fuse-export: Permission denied
|
|
stat: cannot statx 'fuse-export': Permission denied
|
|
cat: fuse-export: Permission denied
|
|
stat: cannot statx 'fuse-export': Permission denied
|
|
{'execute': 'quit'}
|
|
{"return": {}}
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export"}}
|
|
|
|
--- allow-other=on ---
|
|
{'execute': 'qmp_capabilities'}
|
|
{"return": {}}
|
|
{'execute': 'block-export-add',
|
|
'arguments': {
|
|
'type': 'fuse',
|
|
'id': 'export',
|
|
'node-name': 'node-format',
|
|
'mountpoint': 'TEST_DIR/fuse-export',
|
|
'allow-other': 'on'
|
|
} }
|
|
{"return": {}}
|
|
(Removing all permissions)
|
|
Permissions post-chmod: 0
|
|
(Granting u+r)
|
|
Permissions post-chmod: 400
|
|
(Granting read permissions for everyone)
|
|
Permissions post-chmod: 444
|
|
Doing operations as nobody:
|
|
Permissions seen by nobody: 444
|
|
cat: fuse-export: Permission denied
|
|
Permissions seen by nobody: 440
|
|
{'execute': 'quit'}
|
|
{"return": {}}
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export"}}
|
|
|
|
--- allow-other=auto ---
|
|
{'execute': 'qmp_capabilities'}
|
|
{"return": {}}
|
|
{'execute': 'block-export-add',
|
|
'arguments': {
|
|
'type': 'fuse',
|
|
'id': 'export',
|
|
'node-name': 'node-format',
|
|
'mountpoint': 'TEST_DIR/fuse-export',
|
|
'allow-other': 'auto'
|
|
} }
|
|
{"return": {}}
|
|
(Removing all permissions)
|
|
Permissions post-chmod: 0
|
|
(Granting u+r)
|
|
Permissions post-chmod: 400
|
|
(Granting read permissions for everyone)
|
|
Permissions post-chmod: 444
|
|
Doing operations as nobody:
|
|
Permissions seen by nobody: 444
|
|
cat: fuse-export: Permission denied
|
|
Permissions seen by nobody: 440
|
|
{'execute': 'quit'}
|
|
{"return": {}}
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export"}}
|
|
*** done
|