Skip to contentSkip to conversation

Some questions about pseudo files

DISCUSSION Marcel Hilzinger 2 participants 2 messages Jun 9, 2004

lore
Share & tools
lore
#0 lore raw

To change the permissions of a filesystem object without chmod one can use

echo 0777 > my_object/metas/rwx

This works great for directory objects, but if I want to change the permissions of a simple file from 744 to 644, then I can't change it any more without chmod, as the file lacks the x bit, so I can't chdir to metas and I can't read rwx.

Is reiser4 designed for keeping the execution bit for each file? If yes, isn't this a security problem (e.g. worms and viruses)?

*************
my_object/metas/nlink lists the object hard links. In case of directories it's some time a dozen or even more. As there are no hard links in this directory, what does nlink list?

Thanks,
Marcel

Signature · 2 lines
Üdvözlettel -- Mit freundlichen Grüssen,
Marcel Hilzinger
#1 lore raw
Quoted 3 lines · Marcel Hilzinger

Is reiser4 designed for keeping the execution bit for each file? If yes, isn't this a security problem (e.g. worms and viruses)?

I think this calls for someone drilling an appropriate hole into VFS or something. I gathered from some earlier discussions that it's impossible to do metadata access without the execution bit.

This is not a real issue with some favorite features like crypto and fibration, but I really want to be able to add arbitrary metadata, ascii text or xml (big difference there ;) to any old file and that becomes difficult.

The simplest of kludges would be to store the file's metadata in the parent directory object's stat data, but that's not the purpose of the design, imo.

Signature · 1 line
mjt