Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable RENAME_SWAP #523

Open
marius-enlock opened this issue Jun 25, 2024 · 1 comment
Open

How to disable RENAME_SWAP #523

marius-enlock opened this issue Jun 25, 2024 · 1 comment

Comments

@marius-enlock
Copy link

Hello,

Is there a way to disable the kernel init RENAME_SWAP ?

I think the last flag here:

CAP_READDIRPLUS | CAP_NO_OPEN_SUPPORT | CAP_PARALLEL_DIROPS | CAP_MAX_PAGES | CAP_RENAME_SWAP)

Simply removing the flag from the bit and operation didn't help, there were still requests to rename with the swap flag.

I got the following reply when I was trying to figure out if I can disable it from macFUSE: macfuse/macfuse#1027 (comment)

@marius-enlock
Copy link
Author

marius-enlock commented Jun 25, 2024

It seems that if I remove the CAP_RENAME_SWAP / use the value of 0x00000002, when rename is called by higher-order apps, it is no longer using the SWAP flag, however the parameters passed to the Rename functions are wrong:

old-name= new-name="��������������<0x00><0x00><0x00><0x00><0x00><0x00><0x00>why.txt<0x00>�why.txt.sb-025cd525-2yhoWY" flags=0

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

No branches or pull requests

1 participant