vramfs icon indicating copy to clipboard operation
vramfs copied to clipboard

Permissions Issue on Debian

Open wh1t3h47 opened this issue 9 months ago • 2 comments

Repro: When used in Kali Linux (Debian):

./bin/vramfs /tmp/vramfs 2GB -d 0 -f
allocating vram...
Ignoring invalid max threads value 4294967295 > max (100000).
mounted.

ls /tmp -lh | grep vramfs
d????????? ? ?    ?       ?            ? vramfs
                                                                                                                      
ls /tmp/vramfs    
ls: cannot access '/tmp/vramfs': Permission denied

cat /etc/debian_version 
kali-rolling

uname -a
Linux debian 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 GNU/Linux

wh1t3h47 avatar Apr 27 '24 03:04 wh1t3h47

I solved the issue by running as root

Maybe implement a root check?

wh1t3h47 avatar Apr 27 '24 03:04 wh1t3h47

And then, how did you verify the vramfs effect after enabling swap space (e.g., ./bin/vramfs /tmp/vramfs 2GB -d 0 -f)to solve the shortage of GPU memory space on Debian 6.6.9?

leemgs avatar Jun 19 '24 09:06 leemgs