Skip to content

Conversation

@ungeskriptet
Copy link

Ramdisks can contain character device inside the cpio archive, which can cause issues when running dumpyara as root, since cpio will extract character devices as well when it has elevated permissions.

Here's a log snippet with these changes:

[file_util.py:113 DEBUG] copy_file: not copying /tmp/tmpf_042mtu/ramdisk/dev/null (file is character device)
[file_util.py:113 DEBUG] copy_file: not copying /tmp/tmpf_042mtu/ramdisk/dev/console (file is character device)
[file_util.py:113 DEBUG] copy_file: not copying /tmp/tmpf_042mtu/ramdisk/dev/urandom (file is character device)
[file_util.py:113 DEBUG] copy_file: not copying /tmp/tmpf_042mtu/ramdisk/dev/kmsg (file is character device)

Ramdisks can contain character device inside the cpio archive, which can
cause issues when running dumpyara as root, since cpio will extract
character devices as well when it has elevated permissions.

Signed-off-by: David Wronek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant