I am developing a filesystem module for linux as a project. I want the files to be protected passwords. I want that open() accepts a password in addition to the filepath and mode. But I cannot find clear documentation on how to do it.
Asked
Active
Viewed 32 times
-1
1 Answers
0
Create own open function which accept password, check the password and then call system open.
Romeo Ninov
- 16,541
- 5
- 32
- 44
-
Password checking is not a user level task. It must be done by kernel with the help of some data stored in inode. Basically inode is required to authenticate the password. – Mahek Shamsukha Feb 18 '23 at 13:00
-
1@MahekShamsukha, this is your task. I give you idea how to have one more parameter. About the rest better ask here: https://stackoverflow.com/ – Romeo Ninov Feb 18 '23 at 13:05